Re: Youtube Viewer

2019-05-31 Thread Raghav Gururajan
> Tobias has been keeping youtube-viewer updated, and in commit 0dd8da from 
> early January I made sure the .desktop file is installed.  The later should 
> let you launch the program from an icon in your desktop environment, if 
> that's what you mean. :)

No No, not that. When I click play inside youtube-viewer GUI, the media never
automatically opens up in a media player (mpv or vlc), even though I configure
to do so. But now, it works.



Re: Youtube Viewer

2019-05-31 Thread Eric Bavier
Tobias has been keeping youtube-viewer updated, and in commit 0dd8da from early 
January I made sure the .desktop file is installed.  The later should let you 
launch the program from an icon in your desktop environment, if that's what you 
mean. :)

- On May 27, 2019, at 6:38 PM, Raghav Gururajan r...@disroot.org wrote:

> Was there any patch done to the youtube-viewer package? I just made a fresh
> re-install of Guix System, and the player opens up from GUI automatically now.
> :)

-- 
`~Eric



Re: Youtube Viewer

2019-05-27 Thread Raghav Gururajan
Was there any patch done to the youtube-viewer package? I just made a fresh 
re-install of Guix System, and the player opens up from GUI automatically now. 
:)



Re: Youtube Viewer

2019-05-21 Thread Raghav Gururajan
Anyway, please find the configs attached with this email.

Not sure if all "PATH"s are generated correctly as guix's directories are 
different from other distros.
#!/usr/bin/perl

# GTK YouTube Viewer 3.5.4 - configuration file

our $CONFIG = {
  active_channel_type_combobox=> 0,
  active_more_options_expander=> 0,
  active_panel_account_combobox   => 0,
  active_resolution_combobox  => 0,
  active_safeSearch_combobox  => 1,
  active_subscriptions_order_combobox => 0,
  audio_only  => 0,
  auto_captions   => 0,
  cache_dir   => "/home/rg/.cache/youtube-viewer",
  captions_dir=> "/tmp",
  clear_search_list   => 1,
  clear_text_entries_on_click => 0,
  comments_order  => "time",
  comments_width  => 80,
  dash_mp4_audio  => 1,
  dash_support=> 1,
  debug   => 0,
  default_notebook_page   => 1,
  downloads_dir   => ".",
  entry_completion_limit  => 10,
  env_proxy   => 1,
  fullscreen  => 0,
  get_captions=> 1,
  history => 1,
  history_file=> 
"/home/rg/.config/youtube-viewer/history.txt",
  history_limit   => 1,
  hl  => "en_US",
  hpaned_position => 772,
  hpaned_width=> 250,
  http_proxy  => undef,
  mainw_centered  => 0,
  mainw_fullscreen=> 0,
  mainw_maximized => 1,
  mainw_size  => "1280x736",
  maxResults  => 10,
  prefer_fork => 0,
  prefer_mp4  => 0,
  publishedAfter  => undef,
  publishedBefore => undef,
  regionCode  => undef,
  resolution  => "original",
  save_titles_to_history  => 0,
  show_thumbs => 1,
  srt_languages   => ["en", "es"],
  terminal=> 
"/run/current-system/profile/bin/gnome-terminal",
  terminal_exec   => "-e '%s'",
  thousand_separator  => ",",
  thumbnail_type  => "medium",
  video_player_selected   => "mpv",
  video_players   => {
   mplayer => {
 arg   => "-prefer-ipv4 
-really-quiet -title *TITLE*",
 audio => "-audiofile *AUDIO*",
 cmd   => "mplayer",
 fs=> "-fs",
 srt   => "-sub *SUB*",
   },
   mpv => {
 arg   => "--really-quiet --title 
*TITLE* --no-ytdl",
 audio => "--audio-file *AUDIO*",
 cmd   => 
"/home/rg/.guix-profile/bin/mpv",
 fs=> "--fullscreen",
 srt   => "--sub-file *SUB*",
   },
   smplayer => {
 arg => "-close-at-end -media-title 
*TITLE* *URL*",
 cmd => "smplayer",
 fs  => "-fullscreen",
 srt => "-sub *SUB*",
   },
   vlc => {
 arg   => "--quiet --play-and-exit 
--no-video-title-show --input-title-format *TITLE*",
 audio => "--input-slave *AUDIO*",
 cmd   => "vlc",
 fs=> "--fullscreen",
 srt   => "--sub-file *SUB*",
   },
 },
  videoDimension  => undef,
  videoEmbeddable => undef,
  videoLicense=> undef,
  videoSyndicated => undef,
  web_browser => undef,
  youtube_channel_url => "https://www.youtube.com/channel/%s;,
  youtube_playlist_url=> 

Re: Youtube Viewer

2019-05-21 Thread Tobias Geerinckx-Rice

Pierre Neidhardt wrote:

As far as I know, youtube-dl is used as a backend for mpv.


Yup.  (It's even an absolute store reference now.)


Not sure about youtube-viewer.


It doesn't refer to ytdl, and the pure environment, at least, 
doesn't propagate ytdl, so I don't *think* it's used here.


Kind regards,

T G-R


signature.asc
Description: PGP signature


Re: Youtube Viewer

2019-05-21 Thread Raghav Gururajan
> yes but the config file for the GTK version is
> .config/youtube-viewer/gtk-youtube-viewer.conf
> 
> Raghav can you please check that it contains
> 
> --8<---cut here---start->8---
> 
> video_player_selected => "mpv",
> 
> --8<---cut here---end--->8---
> 
> I'm using both GUI and CLI and I had to configure both, they both start
> mvp "on click"

Yes, it contains that. :-(



Re: Youtube Viewer

2019-05-21 Thread Raghav Gururajan
Actually, without the pure environment, youtube-viewer works just fine in CUI 
mode. The media open automatically in mpv. 

But the issue is, in GUI mode, when I play a video, it doesn't open.



Re: Youtube Viewer

2019-05-21 Thread Giovanni Biscuolo
Hi

"Raghav Gururajan"  writes:

[...]

>> Anyway, both the GTK and CLI versions invoke MPV just fine here.

yes but the config file for the GTK version is
.config/youtube-viewer/gtk-youtube-viewer.conf

Raghav can you please check that it contains

--8<---cut here---start->8---

  video_player_selected   => "mpv",

--8<---cut here---end--->8---

I'm using both GUI and CLI and I had to configure both, they both start
mvp "on click"

>> Could you try running both in a pure environment?
>
> Yes. Please find the following error.
>
> address@hidden ~ [env]$ gtk-youtube-viewer
> No protocol specified
> Gtk-WARNING **: cannot open display: :1 at 
> /gnu/store/zy4mnhidqcnfdf1ci4dsafxyd14ck1in-perl-gtk2-1.24992/lib/perl5/site_perl/5.28.0/x86_64-linux-thread-multi/Gtk2.pm
>  line 126.
>

cannot open display: that should be related to the environment

[...]

HTH! Gio'.

-- 
Giovanni Biscuolo

Xelera IT Infrastructures


signature.asc
Description: PGP signature


Re: Youtube Viewer

2019-05-21 Thread Raghav Gururajan
> Right. My bad. Seems that --pure is a bit too pure for the GTK
> version.
> 
> What does the regular ‘youtube-viewer’ say when run in that pure
> environment?

Please find the error inside this output.

=>> Search for YouTube videos (:h for help)
> test

 1. What's Your True Spirit Animal? Personality Test (by BRIGHT SIDE) [10:43]
 2. A Color Test That Can Tell Your Mental Age (by BRIGHT SIDE) [07:37]
 3. Who Is Secretly In Love With You? (Personality Test) (by BRIGHT SIDE) 
[08:12]
 4. Hack PUBG Mobile PC 19h 21/5/2019 - Test Nhảy Xuyên Tường, Cắt Dù Nhanh, Xe 
Bay (by PT Hack) [LIVE]
 5. What type of person are you really? This pick one personality test will 
reveal who you truly are (by 90 Second IQ Boosters) [08:30]
 6. A Simple Test Will Reveal Your Deepest Fear (by BRIGHT SIDE) [11:26]
 7. What Is Your Soul Element? Cool Personality Test (by BRIGHT SIDE) [11:13]
 8. If You Can Pass This Test, You Have Unique Eyesight. Can You? (by BRIGHT 
SIDE) [15:06]
 9. ¿Cuántas letras tiene el nombre del amor de tu vida? • Test (by El Ratón 
Curioso) [04:59]
10. MENTAL AGE TEST  - Personality Test | Mister Test (by Mister Test) [06:17]
11. This Test Will Tell You What Animal You Are! (by IQ Tests | Personality 
Tests | Funny Test Videos) [08:44]
12. 7 Riddles That Will Test Your Brain Power (by BRIGHT SIDE) [08:06]
13. Idiot Test - 90% fail (by Thomas8april) [02:36]
14. BRAIN TEASERS AND TRIVIA TO TEST YOUR BRAIN SPEED (by 7-Second Riddles) 
[13:28]
15. How Good Are Your Eyes? Cool and Quick Test (by BRIGHT SIDE) [08:12]
16. Only the Most Attentive 4% Will Pass This Test (by BRIGHT SIDE) [12:57]
17. Las 10 Preguntas Mas DIFÍCILES del Mundo | Test de personalidad (by 
Facilitops) [04:07]
18. FUNNIEST Kid Test Answers!  (by Infinite) [16:04]
19. What ANIMAL Are You? (Personality Test With Animals) (by Alpha Tests) 
[05:53]
20. What Is Your Mental Age? (Quick Test) (by BRIGHT SIDE) [13:59]

=>> Select one or more videos to play (:h for help)
> 2
Can't exec "stty": No such file or directory at 
/gnu/store/h8i0268m8p8l3d6j9jyp38mz5cph5s70-youtube-viewer-3.5.4/bin/.youtube-viewer-real
 line 1610,  line 2.
Use of uninitialized value in split at 
/gnu/store/h8i0268m8p8l3d6j9jyp38mz5cph5s70-youtube-viewer-3.5.4/bin/.youtube-viewer-real
 line 1610,  line 2.

=>> Description

A lot of the times your brain “feels” way younger or older than you
are. That's called mental age. Do you wanna know yours? Lucky for you,
Bright Side put together a simple test that will help you figure out if
you're a carefree child, an old and wise sage or just exactly as
mentally “old” as you are. Just answer our questions, write down your
points for every answer, add them all up and get your results! But
enough talking, let's begin! 

If you got 7-12 points, mentally you're just under 20 years old. It
doesn't matter what your passport says – you’re a carefree teenager at
heart! If you're way older than 20, congratulations – you've managed to
carry this constant feeling of enthusiasm and love for life through all
these years. Keep shining!

If your result is 13–20 points, you are 20–29 years old. You are
active, creative, and full of life, but you can already call yourself
an adult. Childhood and teenage years are over, but you took the best
from them and left all the unnecessary stuff behind. It doesn't mean
that you're not having fun though – your life is just as exciting as it
was.

If all of your points added up to 21–28 points, your mental age is
30–39 years. You’re still active and curious about new things and
ideas, but you are already responsible and thoughtful. If you think
about it, that's the perfect balance between the children's joy for
life and adults' independence. The golden mean at its best! 

If your total number of points is 29–35, you are 40–49 years old.
You're mature and experienced, and you know exactly how to live your
life. You have no time for nonsense – you're determined and
hardworking. You know what you want and how to get it. Continue to be a
true inspiration for everyone around!

36–40 points mean that your mental age is over 50 years. And that's not
a bad thing at all! On the contrary, you are wise and calm. You get
what life is all about, and you highly appreciate comfort. You're the
person everyone goes for advice, plus you can always be trusted. These
are some rare qualities today, so your friends must protect you at all
costs.

So what’s your mental age and how close is it to your real age?

#colortest #guessage #mentalage

Subscribe to Bright Side : https://goo.gl/rQTJZz

---
-
Our Social Media:

Facebook: https://www.facebook.com/brightside/
Instagram: https://www.instagram.com/brightgram/

SMART Youtube: https://goo.gl/JTfP6L

5-Minute Crafts Youtube: https://www.goo.gl/8JVmuC

Have you ever seen a talking slime? Here he is – Slick Slime Sam:

Re: Youtube Viewer

2019-05-21 Thread Tobias Geerinckx-Rice

Raghav Gururajan wrote:

Yes. Please find the following error.


Right.  My bad.  Seems that --pure is a bit too pure for the GTK 
version.


What does the regular ‘youtube-viewer’ say when run in that pure 
environment?


Kind regards,

T G-R


signature.asc
Description: PGP signature


Re: Youtube Viewer

2019-05-21 Thread Raghav Gururajan
> You might need to update youtube-dl. It seems that Youtube breaks its
> API once in a while.

youtube-viewer and youtube-dl are different applications right?



Re: Youtube Viewer

2019-05-21 Thread Raghav Gururajan
> Please run the entire command (also the part after --) on one line
> (see my follow-up mail).

> Anyway, both the GTK and CLI versions invoke MPV just fine here.
> Could you try running both in a pure environment?

Yes. Please find the following error.

address@hidden ~ [env]$ gtk-youtube-viewer
No protocol specified
Gtk-WARNING **: cannot open display: :1 at 
/gnu/store/zy4mnhidqcnfdf1ci4dsafxyd14ck1in-perl-gtk2-1.24992/lib/perl5/site_perl/5.28.0/x86_64-linux-thread-multi/Gtk2.pm
 line 126.



Re: Youtube Viewer

2019-05-21 Thread Tobias Geerinckx-Rice

Raghav Gururajan wrote:

guix environment --pure --ad-hoc youtube-viewer mpv --
youtube-viewer


I did this and I was led to "hidden@address ~ [env]$". Anyway, I 
never used command-line for this app.


Please run the entire command (also the part after --) on one line 
(see my follow-up mail).


I am using the GUI. Yes, GUI is installed by default. In my 
GNOME Dash, it appears as "GTK Youtube Viewer" with a "blue 
camel" in the icon.


Oh.  I don't use a desktop menu.  Today I learnt that 
‘gtk-youtube-viewer’ exists :-)


Anyway, both the GTK and CLI versions invoke MPV just fine here. 
Could you try running both in a pure environment?


Kind regards,

T G-R


signature.asc
Description: PGP signature


Re: Youtube Viewer

2019-05-21 Thread Raghav Gururajan
> I can't reproduce this (as it happens, I have both youtube-viewer
> and mpv installed in my regular profile):
> 
>  Terminal Time
> =
> ~ λ grep video_player_selected
> .config/youtube-viewer/youtube-viewer.conf
> video_player_selected => "mpv",
> ~ λ youtube-viewer
> 
> =>> Search for YouTube videos (:h for help)
>> guix
> 
> 1. My crush on GNU Guix (by DebConf Videos) [46:35]
> […snipped…]
> 
> =>> Select one or more videos to play (:h for help)
>> 1
> 
> =>> Description
> […]
> = MPV opens in a new window
> 
> 
> Are both youtube-viewer and mpv installed to the same profile?
> Which profile is that? Could you try the command

Yes, they are both in my user profile.

> 
> guix environment --pure --ad-hoc youtube-viewer mpv --
> youtube-viewer

I did this and I was led to "hidden@address ~ [env]$". Anyway, I never used 
command-line for this app.

> to see if removing any possible sources of confusion helps? (That
> command also works for me, but I don't *need* it.)

> I'm also a bit confused by your phrasing, ‘under preferences…’ and
> ‘…click play’. For me, youtube-viewer is a CLI tool and I've
> always used it as such. Are you saying there's a gooey?

I am using the GUI. Yes, GUI is installed by default. In my GNOME Dash, it 
appears as "GTK Youtube Viewer" with a "blue camel" in the icon.



Re: Youtube Viewer

2019-05-21 Thread Tobias Geerinckx-Rice

Tobias Geerinckx-Rice wrote:

 guix environment --pure --ad-hoc youtube-viewer mpv -- \
 youtube-viewer


My line breaks were off.  That's one command on one line.

Kind regards,

T G-R


signature.asc
Description: PGP signature


Re: Youtube Viewer

2019-05-21 Thread Tobias Geerinckx-Rice

Raghav,

Raghav Gururajan wrote:
I have both youtube-viewer and mpv installed. Under preferences 
of

youtube-viewer, there is "video_player_selected   =>
"mpv",". But when I click play in youtube-viewer, the media is 
not

opening in mpv. What should I do to make this work?


I can't reproduce this (as it happens, I have both youtube-viewer 
and mpv installed in my regular profile):


 Terminal Time 
=
~ λ grep video_player_selected 
.config/youtube-viewer/youtube-viewer.conf

 video_player_selected => "mpv",
~ λ youtube-viewer 


=>> Search for YouTube videos (:h for help)

guix


1. My crush on GNU Guix (by DebConf Videos) [46:35]
[…snipped…]

=>> Select one or more videos to play (:h for help)

1


=>> Description
   […]
= MPV opens in a new window 



Are both youtube-viewer and mpv installed to the same profile? 
Which profile is that?  Could you try the command


 guix environment --pure --ad-hoc youtube-viewer mpv -- 
 youtube-viewer


to see if removing any possible sources of confusion helps?  (That 
command also works for me, but I don't *need* it.)


I'm also a bit confused by your phrasing, ‘under preferences…’ and 
‘…click play’.  For me, youtube-viewer is a CLI tool and I've 
always used it as such.  Are you saying there's a gooey?


Kind regards,

T G-R


signature.asc
Description: PGP signature