gtk-youtube-viewer (for lots of pups)

Browsers, email, chat, etc.
Message
Author
hamoudoudou

my Puppypup !

#316 Post by hamoudoudou »

slitazpup :D Gtk YT works well on my Ubuntupup, my Debianpup, my devuanpup,
and my Puppypup !

User avatar
greengeek
Posts: 5789
Joined: Tue 20 Jul 2010, 09:34
Location: Republic of Novo Zelande

#317 Post by greengeek »

Is anyone else having trouble with this? It stopped working for me after I tried to download videos about the israeli attack on Syria.

cheers!

Code: Select all

> 20
ERROR: Signature extraction failed: Traceback (most recent call last):
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 1191, in _decrypt_signature
    video_id, player_url, s
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 1102, in _extract_signature_function
    res = self._parse_sig_js(code)
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 1163, in _parse_sig_js
    jscode, 'Initial JS player signature function name', group='sig')
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 808, in _search_regex
    raise RegexNotFoundError('Unable to extract %s' % _name)
RegexNotFoundError: Unable to extract Initial JS player signature function name; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
 (caused by RegexNotFoundError(u'Unable to extract \x1b[0;34mInitial JS player signature function name\x1b[0m; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.',)); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#318 Post by musher0 »

Hi.

It has nothing to do with any subject of the vids.

youtube-dl is funny that way: it'll stop working if you do not update it...

It may have worked ok for you at 11:43, but if a new version was uploaded at
11:44, it'll give you an error when you try using your "old" version at 11:45.

So do like it says in your error message, try

Code: Select all

youtube-dl -U
?

IHTH
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

User avatar
greengeek
Posts: 5789
Joined: Tue 20 Jul 2010, 09:34
Location: Republic of Novo Zelande

#319 Post by greengeek »

musher0 wrote:So do like it says in your error message, try

Code: Select all

youtube-dl -U
I did try that but no joy:

Code: Select all

# youtube-dl -U
bash: youtube-dl: command not found
#
I presume I just open a terminal in /root and type that command. No need to cd into a special directory first?

User avatar
fredx181
Posts: 4448
Joined: Wed 11 Dec 2013, 12:37
Location: holland

#320 Post by fredx181 »

Hi greengeek, not sure if it's about the yt-viewer cde package, if it is, see here:
http://murga-linux.com/puppy/viewtopic. ... 640#991640
For a part, youtube-viewer is depending on "youtube-dl".
However it was earlier included in the package, it couldn't be used by itself. Now it can, for example to update youtube-dl (and to download, see below):
Code:
./youtube-dl.cde -U
But I don't know if this will solve the problem though.

EDIT: Looking better at the error output you posted, I don't think it has to do with the cde package, but what did you use then ?

Fred

User avatar
greengeek
Posts: 5789
Joined: Tue 20 Jul 2010, 09:34
Location: Republic of Novo Zelande

#321 Post by greengeek »

Hi Fred, thanks for the links - yes it is the cde package i am using so that info appears to address my problem. I hope to work through that after work tonight.
cheers!

User avatar
greengeek
Posts: 5789
Joined: Tue 20 Jul 2010, 09:34
Location: Republic of Novo Zelande

#322 Post by greengeek »

fredx181 wrote: for example to update youtube-dl (and to download, see below):
Code:

Code: Select all

./youtube-dl.cde -U
But I don't know if this will solve the problem though.
Hi Fred,

I installed my cde pet then opened a terminal inside the /root/youtube-viewer directory and did the following:

Code: Select all

# ./youtube-dl.cde -U
bash: ./youtube-dl.cde: No such file or directory
# 
I can only assume that I must be using an older version of the pet that does not use youtube-dl

I will scan back through the thread.

cheers!

User avatar
fredx181
Posts: 4448
Joined: Wed 11 Dec 2013, 12:37
Location: holland

#323 Post by fredx181 »

Hi greengeek, sorry, I don't know which .pet you mean.
The youtube cde "package" is a tar.gz archive, when extracted you get folder "yt-viewer-3.1.5_youtube-dl".
In that folder open a terminal and update youtube-dl like this:

Code: Select all

root@live:~/yt-viewer-3.1.5_youtube-dl# ./youtube-dl.cde -U
WARNING: Assuming --restrict-filenames since file system encoding cannot encode all characters. Set the LC_ALL environment variable to fix this.
Updating to version 2018.09.18 ...
Updated youtube-dl. Restart youtube-dl to use the new version.
Fred

User avatar
greengeek
Posts: 5789
Joined: Tue 20 Jul 2010, 09:34
Location: Republic of Novo Zelande

#324 Post by greengeek »

fredx181 wrote:The youtube cde "package" is a tar.gz archive, when extracted you get folder "yt-viewer-3.1.5_youtube-dl".
Thanks - I had made a pet of the previous version that you made. I have now downloaded the 315 version, untarred it, made a pet of it, loaded it, and run your syntax:

Code: Select all

# ./youtube-dl.cde -U 
Updating to version 2018.09.18 ...
Updated youtube-dl. Restart youtube-dl to use the new version.
# 
and now it works again.

Many thanks!

User avatar
Smithy
Posts: 1151
Joined: Mon 12 Dec 2011, 11:17

#325 Post by Smithy »

Could someone make a pet of this that looks and functions like Phil's picture on page one of this thread, or is that too sensible a request..

User avatar
fredx181
Posts: 4448
Joined: Wed 11 Dec 2013, 12:37
Location: holland

#326 Post by fredx181 »

Smithy wrote:Could someone make a pet of this that looks and functions like Phil's picture on page one of this thread, or is that too sensible a request..
Not sure if you mean: to run gtk-youtube-viewer ?
Yes, not a pet, but tar.gz:
https://dl.dropboxusercontent.com/s/kux ... ar.gz?dl=1
Same as i earlier shared Here (download at bottom of post)
Extract to someplace and click on "gtk-youtube-viewer.cde" inside folder "yt-viewer-3.1.5_youtube-dl"
(EDIT: greengeek mentioned above that he made a pet from this, maybe he wants to share?)

See pic, looks a bit different than Phil's picture but functions the same.

EDIT: See here for a pet made for D-pup Stretch:
http://murga-linux.com/puppy/viewtopic. ... 065#988065
(but probably it doesn't work on other puppies)

Fred
Attachments
gtk-youtube-viewer.png
Gtk-youtube-viewer
(167.49 KiB) Downloaded 276 times

User avatar
greengeek
Posts: 5789
Joined: Tue 20 Jul 2010, 09:34
Location: Republic of Novo Zelande

#327 Post by greengeek »

fredx181 wrote:(EDIT: greengeek mentioned above that he made a pet from this, maybe he wants to share?)
Hi Fred, yes I will certainly share my pet - although I need to mention some cautions first:
- This is the CDE "terminal display" version and does not look anything like Phil's interface. (EDIT : See the note below about Gtk (Gui) method)
- This is only tested on Slacko 5.6 (although should be fine in many other systems)
- It is only intended for use with JWM as it makes minor modifications to the file /root/.config/rox.sourceforge.net/ROX-Filer/globicons so that the View and Download buttons have nice icons.
- I run with no persistence so this lets me test my .pets without ongoing risk to a savefile or to personal data (which I keep on another partition). Please take a savefile backup before testing my pets

HowTo:

- Install the pet
- Look inside the directory /root/youtube-viewer
- Use the Videoplay icon if you just want to view the YT video, or else click the Videodownload icon if you want to download the video (see pic below)
- You will see a terminal open up requesting the search terms for the video you want to locate (see pic below)
- Type the number of the video that matches your needs (and hit enter)
- The video will play (if you selected the videoplay icon) or download if you clicked the videodownload icon.
- Locate the downloaded video inside the /root/youtube-viewer/cde-root directory (see pic below)

....................................................................................
NOTE: - To run Gtk-youtube-viewer in GUI mode, just click on /root/youtube-viewer/gtk-youtube-viewer.cde
(You might find this simpler than using the text-based terminal method above)
....................................................................................

The pet can be downloaded here:
EDIT : Newer version of pet (includes auto updater script) available here:
http://www.murga-linux.com/puppy/viewto ... 73#1007673

original version archived here:
https://www.mediafire.com/file/m3n7upnp ... 0.5555.pet
Attachments
root_youtube-viewer_contents.jpg
(52.24 KiB) Downloaded 270 times
Download_Terminal_interface.jpg
(46.03 KiB) Downloaded 263 times
Downloaded_Vid_found_in_CDE-Root_Directory.jpg
(31.24 KiB) Downloaded 275 times
Last edited by greengeek on Fri 19 Oct 2018, 05:42, edited 5 times in total.

User avatar
fredx181
Posts: 4448
Joined: Wed 11 Dec 2013, 12:37
Location: holland

#328 Post by fredx181 »

@greengeek, thanks !
Your how-to is mostly focused on "youtube-viewer" command line program.
Added at the end: how to run gtk-youtube-viewer (GUI)
(I think that;s what Smithy asked for)

HowTo:

- Install the pet
- Look inside the directory /root/youtube-viewer
- Use the Videoplay icon if you just want to view the YT video, or else click the Videodownload icon if you want to download the video (see pic below)
- You will see a terminal open up requesting the search terms for the video you want to locate (see pic below)
- Type the number of the video that matches your needs (and hit enter)
- The video will play (if you selected the videoplay icon) or download if you clicked the videodownload icon.
- Locate the downloaded video inside the /root/youtube-viewer/cde-root directory (see pic below)
....................................................................................
- To run Gtk-youtube-viewer (GUI), just click on /root/youtube-viewer/gtk-youtube-viewer.cde
....................................................................................
The pet can be downloaded here:
https://www.mediafire.com/file/m3n7upnp ... 0.5555.pet

Fred

User avatar
greengeek
Posts: 5789
Joined: Tue 20 Jul 2010, 09:34
Location: Republic of Novo Zelande

#329 Post by greengeek »

fredx181 wrote:Added at the end: how to run gtk-youtube-viewer (GUI)
(I think that;s what Smithy asked for)
Thanks Fred - i have now edited my post to include your GTk viewer comment.
cheers!

User avatar
Smithy
Posts: 1151
Joined: Mon 12 Dec 2011, 11:17

#330 Post by Smithy »

Thanks fred and greengeek, I gave your fred version a go earlier, and whilst it searches and finds videos, when I right click to play, it does some internet activity and then something flashes like a quick terminal attempt and then nothing.
Same with download. I tried switching preferences to lxterm and mplayer but no joy.
It worked with Phil's version a few years ago and then that stopped lol.

Would be good to get this working as the state of browsers now is bad, FF 50's and 60's seems to disappear sometimes at the drop of a hat and warnings about " it seems you need to use pulse audio" total rubbish. And apulse is conflicting when one uses linux with lots of multimedia.
They do seem to be very intrusive now, but I do have a list of about:configs if you want to break 'em (fix 'em lol)

I don't think tint 2 is flaking out, but it will cause problems with shittily written apps like zynaddsubfx, but they belong as container plugins anyway imo. Yoshimi seems more solid.

I haven't had a working mpv yet so maybe that is a problem, but since your app is portable with all the libs etc it should just pick it up ok?

I will try greengeeks job see if I can get a vid to play.
I'm on Artful at the moment, thinking of trying Bionic at some point in the future. But it runs well, very very well in fact.

What you up to greengeek, a rudolph hess attempt? spark ignition.

User avatar
fredx181
Posts: 4448
Joined: Wed 11 Dec 2013, 12:37
Location: holland

#331 Post by fredx181 »

Smithy wrote:Thanks fred and greengeek, I gave your fred version a go earlier, and whilst it searches and finds videos, when I right click to play, it does some internet activity and then something flashes like a quick terminal attempt and then nothing.
I always double-click on one of the results and it plays in mpv (yes indeed mpv is included in the package) did you try that ?
It could be that you need to update youtube-dl first (gtk-youtube-viewer combined with mpv depends on it):
From terminal in directory "yt-viewer-3.1.5_youtube-dl" :

Code: Select all

./youtube-dl.cde -U
@greengeek, does video play in gtk-youtube-viewer work for you ?

Fred

User avatar
Smithy
Posts: 1151
Joined: Mon 12 Dec 2011, 11:17

#332 Post by Smithy »

Oh, that's done it, yes it updated and now it is running, with audio too.
Thanks very much!
Do you know the location where it puts the update?
And just wondering where I can tart it up a bit. The icons seem to be missing for a few buttons. Ah usr/share/icons seems a bit sparse with just a yad.png.
Attachments
Screenshot.png
(121.77 KiB) Downloaded 832 times

User avatar
greengeek
Posts: 5789
Joined: Tue 20 Jul 2010, 09:34
Location: Republic of Novo Zelande

#333 Post by greengeek »

fredx181 wrote:@greengeek, does video play in gtk-youtube-viewer work for you ?
Funny you should ask - I have not tried the gtk interface for a very long time (I had problems with it and stopped using it...).
However - I just tried it again now and yes, it works perfectly. No reason for me to avoid it now :-) (Using it straight from my pet - no additional update).
EDIT : - seems that the first search works fine, but subsequent searches don't. I have to close the gui and start all over again. Don't have the same problem with the terminal version.
EDIT 2 : Ok - it seems that the second search DOES work but does not clear the first search results out of the way. The second search results just appear below the first search results, in the "next page" section.

thanks for all the help!
Smithy wrote:What you up to greengeek, a rudolph hess attempt? spark ignition.
I'm looking at methods to ignite a petrol/air mixture in a turbine that has no interruptions to the flame front (unlike an Otto cycle engine). Not sure what Hess did, but, no - I don't think I'm following in his footsteps.

cheers!

User avatar
fredx181
Posts: 4448
Joined: Wed 11 Dec 2013, 12:37
Location: holland

#334 Post by fredx181 »

Smithy wrote:Oh, that's done it, yes it updated and now it is running, with audio too.
Thanks very much!
Do you know the location where it puts the update?
And just wondering where I can tart it up a bit. The icons seem to be missing for a few buttons. Ah usr/share/icons seems a bit sparse with just a yad.png.
Ok, nice !
The youtube-dl script replaces itself after updating (in cde-root/usr/local/bin)
See attached for the missing icons, just extract in cde-root/usr/share/icons (or cde-root/usr/share/pixmaps) and they should show in gtk-youtube-viewer.
BTW,I re-uploaded the cde-package with the missing icons included, see EDIT here:
http://murga-linux.com/puppy/viewtopic. ... 640#991640
greengeek wrote:fredx181 wrote:
@greengeek, does video play in gtk-youtube-viewer work for you ?
Funny you should ask - I have not tried the gtk interface for a very long time (I had problems with it and stopped using it...).
However - I just tried it again now and yes, it works perfectly. No reason for me to avoid it now Smile (Using it straight from my pet - no additional update).
Ah great, I was wondering already why you mentioned only youtube-viewer command line options in your how-to.

Fred
Attachments
gtk-youtube-viewer_missing-icons.tar.gz
Extract in cde-root/usr/share/icons
(5.81 KiB) Downloaded 158 times

User avatar
greengeek
Posts: 5789
Joined: Tue 20 Jul 2010, 09:34
Location: Republic of Novo Zelande

#335 Post by greengeek »

New version of my pet available - now includes the missing icons from Fredx above, and also adds an updater script & icon alongside the play and download scripts.

PLEASE REMEMBER : Backup your savefile before testing my pet.

https://www.mediafire.com/file/7elt2th7 ... g-0.75.pet
(HowTo posted on previous page)
Attachments
icons.jpg
(6.04 KiB) Downloaded 736 times
Last edited by greengeek on Fri 19 Oct 2018, 05:43, edited 1 time in total.

Post Reply