all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Youtube Viewer
@ 2019-05-21 14:54 Raghav Gururajan
  2019-05-21 15:24 ` Tobias Geerinckx-Rice
  2019-05-21 15:33 ` Raghav Gururajan
  0 siblings, 2 replies; 19+ messages in thread
From: Raghav Gururajan @ 2019-05-21 14:54 UTC (permalink / raw)
  To: help-guix

Hello Guix!

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?

Regards,
RG.

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Youtube Viewer
  2019-05-21 14:54 Youtube Viewer Raghav Gururajan
@ 2019-05-21 15:24 ` Tobias Geerinckx-Rice
  2019-05-21 15:26   ` Tobias Geerinckx-Rice
  2019-05-21 15:33 ` Raghav Gururajan
  1 sibling, 1 reply; 19+ messages in thread
From: Tobias Geerinckx-Rice @ 2019-05-21 15:24 UTC (permalink / raw)
  To: help-guix, Raghav Gururajan

[-- Attachment #1: Type: text/plain, Size: 1479 bytes --]

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

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 227 bytes --]

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Youtube Viewer
  2019-05-21 15:24 ` Tobias Geerinckx-Rice
@ 2019-05-21 15:26   ` Tobias Geerinckx-Rice
  0 siblings, 0 replies; 19+ messages in thread
From: Tobias Geerinckx-Rice @ 2019-05-21 15:26 UTC (permalink / raw)
  To: help-guix, Raghav Gururajan

[-- Attachment #1: Type: text/plain, Size: 188 bytes --]

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

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 227 bytes --]

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Youtube Viewer
  2019-05-21 14:54 Youtube Viewer Raghav Gururajan
  2019-05-21 15:24 ` Tobias Geerinckx-Rice
@ 2019-05-21 15:33 ` Raghav Gururajan
  2019-05-21 15:43   ` Tobias Geerinckx-Rice
  2019-05-21 15:47   ` Raghav Gururajan
  1 sibling, 2 replies; 19+ messages in thread
From: Raghav Gururajan @ 2019-05-21 15:33 UTC (permalink / raw)
  To: Tobias Geerinckx-Rice, help-guix

> 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.

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Youtube Viewer
  2019-05-21 15:33 ` Raghav Gururajan
@ 2019-05-21 15:43   ` Tobias Geerinckx-Rice
  2019-05-21 15:49     ` Pierre Neidhardt
  2019-05-21 15:52     ` Raghav Gururajan
  2019-05-21 15:47   ` Raghav Gururajan
  1 sibling, 2 replies; 19+ messages in thread
From: Tobias Geerinckx-Rice @ 2019-05-21 15:43 UTC (permalink / raw)
  To: Raghav Gururajan; +Cc: help-guix

[-- Attachment #1: Type: text/plain, Size: 707 bytes --]

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

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 227 bytes --]

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Youtube Viewer
  2019-05-21 15:33 ` Raghav Gururajan
  2019-05-21 15:43   ` Tobias Geerinckx-Rice
@ 2019-05-21 15:47   ` Raghav Gururajan
  2019-05-21 15:56     ` Tobias Geerinckx-Rice
                       ` (6 more replies)
  1 sibling, 7 replies; 19+ messages in thread
From: Raghav Gururajan @ 2019-05-21 15:47 UTC (permalink / raw)
  To: Tobias Geerinckx-Rice; +Cc: help-guix

> 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.

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Youtube Viewer
  2019-05-21 15:43   ` Tobias Geerinckx-Rice
@ 2019-05-21 15:49     ` Pierre Neidhardt
  2019-05-21 15:52     ` Raghav Gururajan
  1 sibling, 0 replies; 19+ messages in thread
From: Pierre Neidhardt @ 2019-05-21 15:49 UTC (permalink / raw)
  To: Tobias Geerinckx-Rice, Raghav Gururajan; +Cc: help-guix

[-- Attachment #1: Type: text/plain, Size: 142 bytes --]

You might need to update youtube-dl.  It seems that Youtube breaks its
API once in a while.

-- 
Pierre Neidhardt
https://ambrevar.xyz/

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Youtube Viewer
  2019-05-21 15:43   ` Tobias Geerinckx-Rice
  2019-05-21 15:49     ` Pierre Neidhardt
@ 2019-05-21 15:52     ` Raghav Gururajan
  2019-05-21 16:16       ` Pierre Neidhardt
  1 sibling, 1 reply; 19+ messages in thread
From: Raghav Gururajan @ 2019-05-21 15:52 UTC (permalink / raw)
  To: Pierre Neidhardt, Tobias Geerinckx-Rice; +Cc: help-guix

> 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?

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Youtube Viewer
  2019-05-21 15:47   ` Raghav Gururajan
@ 2019-05-21 15:56     ` Tobias Geerinckx-Rice
  2019-05-21 16:15     ` Raghav Gururajan
                       ` (5 subsequent siblings)
  6 siblings, 0 replies; 19+ messages in thread
From: Tobias Geerinckx-Rice @ 2019-05-21 15:56 UTC (permalink / raw)
  To: Raghav Gururajan; +Cc: help-guix

[-- Attachment #1: Type: text/plain, Size: 258 bytes --]

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

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 227 bytes --]

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Youtube Viewer
  2019-05-21 15:47   ` Raghav Gururajan
  2019-05-21 15:56     ` Tobias Geerinckx-Rice
@ 2019-05-21 16:15     ` Raghav Gururajan
  2019-05-21 16:17     ` Giovanni Biscuolo
                       ` (4 subsequent siblings)
  6 siblings, 0 replies; 19+ messages in thread
From: Raghav Gururajan @ 2019-05-21 16:15 UTC (permalink / raw)
  To: Tobias Geerinckx-Rice; +Cc: help-guix

> 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, <FIN> line 2.
Use of uninitialized value in split at /gnu/store/h8i0268m8p8l3d6j9jyp38mz5cph5s70-youtube-viewer-3.5.4/bin/.youtube-viewer-real line 1610, <FIN> 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:
https://goo.gl/zarVZo

-----------------------------------------------------------------------
-----------------
For more videos and articles visit:
http://www.brightside.me/
--------------------------------------------------------------------------------
* URL: https://www.youtube.com/watch?v=iVbopWyBR5Y
--------------------------------------------------------------------------------
               =>> A Color Test That Can Tell Your Mental Age <<=

-> Channel   : BRIGHT SIDE
-> ChannelID : UC4rlAVgAK0SGk-yTfe48Qpw
-> Category  : Howto & Style
-> Definition: HD
-> Duration  : 07:37
-> Likes     : 270,605
-> Dislikes  : 41,628
-> Comments  : 118,692
-> Views     : 24,769,642
-> Published : 14 Feb 2018
--------------------------------------------------------------------------------
No protocol specified
No protocol specified
No protocol specified
error: XDG_RUNTIME_DIR not set in the environment.
No protocol specified
No protocol specified
No protocol specified
No protocol specified

 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)
> 

That is what happens.

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Youtube Viewer
  2019-05-21 15:52     ` Raghav Gururajan
@ 2019-05-21 16:16       ` Pierre Neidhardt
  2019-05-21 16:50         ` Tobias Geerinckx-Rice
  0 siblings, 1 reply; 19+ messages in thread
From: Pierre Neidhardt @ 2019-05-21 16:16 UTC (permalink / raw)
  To: Raghav Gururajan, Tobias Geerinckx-Rice; +Cc: help-guix

[-- Attachment #1: Type: text/plain, Size: 140 bytes --]

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

-- 
Pierre Neidhardt
https://ambrevar.xyz/

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Youtube Viewer
  2019-05-21 15:47   ` Raghav Gururajan
  2019-05-21 15:56     ` Tobias Geerinckx-Rice
  2019-05-21 16:15     ` Raghav Gururajan
@ 2019-05-21 16:17     ` Giovanni Biscuolo
  2019-05-21 16:19     ` Raghav Gururajan
                       ` (3 subsequent siblings)
  6 siblings, 0 replies; 19+ messages in thread
From: Giovanni Biscuolo @ 2019-05-21 16:17 UTC (permalink / raw)
  To: Raghav Gururajan, Tobias Geerinckx-Rice; +Cc: help-guix

[-- Attachment #1: Type: text/plain, Size: 1059 bytes --]

Hi

"Raghav Gururajan" <rvgn@disroot.org> 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

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Youtube Viewer
  2019-05-21 15:47   ` Raghav Gururajan
                       ` (2 preceding siblings ...)
  2019-05-21 16:17     ` Giovanni Biscuolo
@ 2019-05-21 16:19     ` Raghav Gururajan
  2019-05-21 16:32     ` Raghav Gururajan
                       ` (2 subsequent siblings)
  6 siblings, 0 replies; 19+ messages in thread
From: Raghav Gururajan @ 2019-05-21 16:19 UTC (permalink / raw)
  To: Tobias Geerinckx-Rice; +Cc: help-guix

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.

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Youtube Viewer
  2019-05-21 15:47   ` Raghav Gururajan
                       ` (3 preceding siblings ...)
  2019-05-21 16:19     ` Raghav Gururajan
@ 2019-05-21 16:32     ` Raghav Gururajan
  2019-05-21 16:50     ` Raghav Gururajan
  2019-05-27 18:38     ` Raghav Gururajan
  6 siblings, 0 replies; 19+ messages in thread
From: Raghav Gururajan @ 2019-05-21 16:32 UTC (permalink / raw)
  To: Giovanni Biscuolo, Tobias Geerinckx-Rice; +Cc: help-guix

> 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. :-(

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Youtube Viewer
  2019-05-21 16:16       ` Pierre Neidhardt
@ 2019-05-21 16:50         ` Tobias Geerinckx-Rice
  0 siblings, 0 replies; 19+ messages in thread
From: Tobias Geerinckx-Rice @ 2019-05-21 16:50 UTC (permalink / raw)
  To: Pierre Neidhardt; +Cc: help-guix

[-- Attachment #1: Type: text/plain, Size: 316 bytes --]

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

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 227 bytes --]

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Youtube Viewer
  2019-05-21 15:47   ` Raghav Gururajan
                       ` (4 preceding siblings ...)
  2019-05-21 16:32     ` Raghav Gururajan
@ 2019-05-21 16:50     ` Raghav Gururajan
  2019-05-27 18:38     ` Raghav Gururajan
  6 siblings, 0 replies; 19+ messages in thread
From: Raghav Gururajan @ 2019-05-21 16:50 UTC (permalink / raw)
  To: Giovanni Biscuolo, Tobias Geerinckx-Rice; +Cc: help-guix

[-- Attachment #1: Type: text/plain, Size: 166 bytes --]

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.

[-- Attachment #2: gtk-youtube-viewer.conf --]
[-- Type: text/plain, Size: 5139 bytes --]

#!/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                       => 10000,
  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                => "https://www.youtube.com/playlist?list=%s",
  youtube_users_file                  => "/home/rg/.config/youtube-viewer/youtube_users.txt",
  youtube_video_url                   => "https://www.youtube.com/watch?v=%s",
  youtube_viewer                      => "/home/rg/.guix-profile/bin/youtube-viewer",
  youtube_viewer_args                 => [],
}

[-- Attachment #3: youtube-viewer.conf --]
[-- Type: text/plain, Size: 3838 bytes --]

#!/usr/bin/perl

# Youtube Viewer 3.5.4 - configuration file

our $CONFIG = {
  auto_captions         => 0,
  autohide_watched      => 0,
  cache_dir             => "/home/rg/.cache/youtube-viewer",
  captions_dir          => "/tmp",
  clobber               => 0,
  colors                => 1,
  comments_order        => "time",
  confirm               => 0,
  convert_cmd           => "ffmpeg -i *IN* *OUT*",
  convert_to            => undef,
  copy_caption          => 0,
  custom_layout         => 0,
  custom_layout_format  => "*NO*. *TITLE* (*AUTHOR*) (*RATING*) [*TIME*]\\n",
  dash_mp4_audio        => 1,
  dash_support          => 1,
  debug                 => 0,
  download_and_play     => 0,
  download_in_parallel  => 0,
  download_with_wget    => 0,
  downloads_dir         => ".",
  env_proxy             => 1,
  fat32safe             => 0,
  ffmpeg_cmd            => "ffmpeg",
  fullscreen            => 0,
  get_captions          => 1,
  get_term_width        => 1,
  highlight_color       => "bold",
  highlight_watched     => 1,
  history               => 0,
  history_file          => "/home/rg/.config/youtube-viewer/history.txt",
  history_limit         => 10000,
  hl                    => "en_US",
  http_proxy            => undef,
  interactive           => 1,
  keep_original_video   => 0,
  maxResults            => 20,
  merge_into_mkv        => 0,
  merge_into_mkv_args   => "-loglevel warning -c:s srt -c:v copy -c:a copy -disposition:s forced",
  merge_with_captions   => 1,
  order                 => undef,
  page                  => 1,
  prefer_mp4            => 0,
  publishedAfter        => undef,
  publishedBefore       => undef,
  regionCode            => undef,
  remove_played_file    => 0,
  resolution            => "original",
  results_fixed_width   => 0,
  results_with_colors   => 0,
  results_with_details  => 0,
  safeSearch            => undef,
  skip_if_exists        => 1,
  srt_languages         => ["en", "es"],
  subscriptions_order   => "relevance",
  thousand_separator    => ",",
  video_filename_format => "*FTITLE* - *ID*.*FORMAT*",
  video_player_selected => "mpv",
  video_players         => {
                             mplayer => {
                               arg => "-prefer-ipv4 -really-quiet -title *TITLE*",
                               audio => "-audiofile *AUDIO*",
                               cmd => "mplayer",
                               fs => "-fs",
                               novideo => "-novideo",
                               srt => "-sub *SUB*",
                             },
                             mpv => {
                               arg => "--really-quiet --title *TITLE* --no-ytdl",
                               audio => "--audio-file *AUDIO*",
                               cmd => "/home/rg/.guix-profile/bin/mpv",
                               fs => "--fullscreen",
                               novideo => "--no-video",
                               srt => "--sub-file *SUB*",
                             },
                             vlc => {
                               arg => "--quiet --play-and-exit --no-video-title-show --input-title-format *TITLE*",
                               audio => "--input-slave *AUDIO*",
                               cmd => "vlc",
                               fs => "--fullscreen",
                               novideo => "--intf dummy --novideo",
                               srt => "--sub-file *SUB*",
                             },
                           },
  videoCaption          => undef,
  videoDefinition       => undef,
  videoDimension        => undef,
  videoDuration         => undef,
  videoLicense          => undef,
  videoSyndicated       => undef,
  wget_cmd              => "wget",
  youtube_video_url     => "https://www.youtube.com/watch?v=%s",
}

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Youtube Viewer
  2019-05-21 15:47   ` Raghav Gururajan
                       ` (5 preceding siblings ...)
  2019-05-21 16:50     ` Raghav Gururajan
@ 2019-05-27 18:38     ` Raghav Gururajan
  2019-05-31 14:23       ` Eric Bavier
  6 siblings, 1 reply; 19+ messages in thread
From: Raghav Gururajan @ 2019-05-27 18:38 UTC (permalink / raw)
  To: Giovanni Biscuolo, Tobias Geerinckx-Rice; +Cc: help-guix

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. :)

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Youtube Viewer
  2019-05-27 18:38     ` Raghav Gururajan
@ 2019-05-31 14:23       ` Eric Bavier
  2019-05-31 17:34         ` Raghav Gururajan
  0 siblings, 1 reply; 19+ messages in thread
From: Eric Bavier @ 2019-05-31 14:23 UTC (permalink / raw)
  To: Raghav Gururajan; +Cc: help-guix

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 rvgn@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

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Youtube Viewer
  2019-05-31 14:23       ` Eric Bavier
@ 2019-05-31 17:34         ` Raghav Gururajan
  0 siblings, 0 replies; 19+ messages in thread
From: Raghav Gururajan @ 2019-05-31 17:34 UTC (permalink / raw)
  To: Eric Bavier; +Cc: help-guix

> 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.

^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2019-05-31 17:35 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-21 14:54 Youtube Viewer Raghav Gururajan
2019-05-21 15:24 ` Tobias Geerinckx-Rice
2019-05-21 15:26   ` Tobias Geerinckx-Rice
2019-05-21 15:33 ` Raghav Gururajan
2019-05-21 15:43   ` Tobias Geerinckx-Rice
2019-05-21 15:49     ` Pierre Neidhardt
2019-05-21 15:52     ` Raghav Gururajan
2019-05-21 16:16       ` Pierre Neidhardt
2019-05-21 16:50         ` Tobias Geerinckx-Rice
2019-05-21 15:47   ` Raghav Gururajan
2019-05-21 15:56     ` Tobias Geerinckx-Rice
2019-05-21 16:15     ` Raghav Gururajan
2019-05-21 16:17     ` Giovanni Biscuolo
2019-05-21 16:19     ` Raghav Gururajan
2019-05-21 16:32     ` Raghav Gururajan
2019-05-21 16:50     ` Raghav Gururajan
2019-05-27 18:38     ` Raghav Gururajan
2019-05-31 14:23       ` Eric Bavier
2019-05-31 17:34         ` Raghav Gururajan

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.