GTKplayYT lightweight youtube-dl shell

Audio editors, music players, video players, burning software, etc.
Message
Author
User avatar
solo
Posts: 389
Joined: Thu 14 Nov 2013, 20:33

#21 Post by solo »

You need to update youtube-dl on a regular basis.

Go to terminal and type

Code: Select all

youtube-dl -U
See if that works.
User avatar
Semme
Posts: 8399
Joined: Sun 07 Aug 2011, 20:07
Location: World_Hub

#22 Post by Semme »

WOW! Solo.. TOTALLY forgot about that. Thank you!

Code: Select all

sh-4.1# youtube-dl -U
Updating to version 2016.01.15 ...
Updated youtube-dl. Restart youtube-dl to use the new version.
The video took some time to get going before eventually loading.

All good. Thanks again..
>>> Living with the immediacy of death helps you sort out your priorities. It helps you live a life less trivial <<<
User avatar
Semme
Posts: 8399
Joined: Sun 07 Aug 2011, 20:07
Location: World_Hub

#23 Post by Semme »

Thump!
>>> Living with the immediacy of death helps you sort out your priorities. It helps you live a life less trivial <<<
mow9902
Posts: 187
Joined: Wed 26 Nov 2008, 08:29

two Minor Modifications

#24 Post by mow9902 »

Thanks very much for sharing this little app TecnoGuy.

I hope you don't mind, but I have made a couple of minor enhancements to your script for my own usage. I don't know if anyone else feels they are useful

(a) I wanted to be able to see what formats were available for a YT file before I downloaded it

(b) I wanted a clickable button to make sure I remembered to update the YT downloader regularly.

I made minor changes to your chooserYT3.sh script to add in both of these options. Added script lines are indicated by comments in the top of the script.

I created a new script called getYTFORMAT.sh to do the actual format query.

I am not an expert GTK coder and I realize that you might also not be happy with the alignment of labels, icon etc ...but these of course are easily changed.

I have attached my modified version of your chooserYT3 script, my getFORMAT.sh script, and my 'updater' icon.

Late Note: I have also just amended the getYT3.sh script to enable the user to graphically 'pick' the folder the downloaded file should be saved to.
Attachments
getYT3.tar
(4.5 KiB) Downloaded 184 times
GTKPlay_mods.tar
my modified version of your chooserYT3 script, my getFORMAT.sh script, and my 'updater' icon.
(8.5 KiB) Downloaded 146 times
Last edited by mow9902 on Mon 11 Jul 2016, 03:47, edited 1 time in total.
User avatar
caiosama
Posts: 104
Joined: Fri 02 Jan 2015, 14:54
Location: Concepcion, Chile

#25 Post by caiosama »

Guys, i'm having a trouble in my Precise 5.7.1

Why keep me sending this error?

And the other hand, i downloaded and made a curl of the youtube-dl, it is now in /usr/local/bin. Is that OK?

Thank you :D
Attachments
erroryoutube.jpg
(46.91 KiB) Downloaded 295 times
[i]Pupjibaro 1.0.4 2015 / LxpupTahr 15.05.2 - Live USB - Dell D630
Precise 5.7.1 - Full installation - Asus EeePC 701 4G (2 GB RAM)
Carolina Vanguard Frugal /Arch Linux Antergos - Lenovo G4070[/i]
keniv
Posts: 583
Joined: Tue 06 Oct 2009, 21:00
Location: Scotland

#26 Post by keniv »

Can I ask if this thead is dormant? If not then I hope someone can help me. I am having the same problem as in the previous post. I'm running lucid 5287 002 (or sulu2). In a previous post it was said to work with GTKplayYT. I have tried with many urls and always get the same output (attached). I also cannot get it to update. Any help appreciated.

Regards,

Ken.
Attachments
image-1.jpg
(63.54 KiB) Downloaded 217 times
User avatar
LazY Puppy
Posts: 1934
Joined: Fri 21 Nov 2014, 18:14
Location: Germany

#27 Post by LazY Puppy »

There's a plugin for firefox and opera available to download from youtube, facebook, vimeo plus many more.

I'm using this in firefox 45.0.1 frequently when I need/want to download to watch offline.

Search the web for 'save from net helper' (or similar).

Probably this may be available or work also for other browsers?
RSH

"you only wanted to work your Puppies in German", "you are a separatist in that you want Germany to secede from Europe" (musher0) :lol:

No, but I gave my old drum kit away for free to a music store collecting instruments for refugees! :wink:
watchdog
Posts: 2021
Joined: Fri 28 Sep 2012, 18:04
Location: Italy

#28 Post by watchdog »

In firefox works:

https://addons.mozilla.org/it/firefox/a ... oadhelper/

My main browser is palemoon and video-download-helper does not work with it. You can install in palemoon an archived version of video-download-helper but it does not work with all sites. In puppy 4.31 and palemoon I'm using youtube-dl from precise and the following gui:

http://murga-linux.com/puppy/viewtopic.php?t=97155
User avatar
Semme
Posts: 8399
Joined: Sun 07 Aug 2011, 20:07
Location: World_Hub

#29 Post by Semme »

Aboard my 528, the older PlayYT, v2.3.2 works with an updated youtube-dl and VLC.
>>> Living with the immediacy of death helps you sort out your priorities. It helps you live a life less trivial <<<
User avatar
Indy
Posts: 73
Joined: Wed 01 Feb 2006, 10:52
Location: Sydney, Australia

#30 Post by Indy »

On my Tahrpup using mainly Pale Moon, the Firefox add-on "Download YouTube Videos as MP4 1.8.8" also works in Pale Moon for me:

https://addons.mozilla.org/en-US/firefo ... d-youtube/

(I just click the "Add to Firefox" button and let it install right into Pale Moon.)
User avatar
Semme
Posts: 8399
Joined: Sun 07 Aug 2011, 20:07
Location: World_Hub

#31 Post by Semme »

The issue I have is that these browser dwnldrs require Javascript to be enabled, effectively choking the life outta my CPU. Any of the recent FF's are also unusable, RAM gobbling pigs aboard Lucid. I'd rather be able to view YT pages without all their BS loading, grab the url I'm after and dump it straight into Toms getYT2.sh script. You can not only spec the available video format, you can choose your player.

In fact Keniv, the "getYT2" script and youtube-dl binary are all you need if videos are your main interest.
>>> Living with the immediacy of death helps you sort out your priorities. It helps you live a life less trivial <<<
keniv
Posts: 583
Joined: Tue 06 Oct 2009, 21:00
Location: Scotland

#32 Post by keniv »

Hello All

I am trying to do this on an old Toshiba laptop with 800MHz CPU and 320MB of ram. It's not up to big browsers. I use an old version of Opera and QtWeb. I don't have VLC installed but I have used it before. I'll install it and and try it with getYT3. Any idea of where I could get a copy of the earlier getYT2?

Regards,

Ken.
User avatar
Semme
Posts: 8399
Joined: Sun 07 Aug 2011, 20:07
Location: World_Hub

#33 Post by Semme »

Where is your copy of youtube-dl? Back it up somewhere for the time being and remove the current build of GTK_PlayYT. You shouldn't need VLC either.

When you're ready to go, I'll forward the pkg along with instructions..
>>> Living with the immediacy of death helps you sort out your priorities. It helps you live a life less trivial <<<
keniv
Posts: 583
Joined: Tue 06 Oct 2009, 21:00
Location: Scotland

#34 Post by keniv »

Semme, I found youtube-dl in /usr/local/bin but it contained 0 bytes. I transfered a copy I had on a flash drive to /usr/local/bin. Now when I try to download from youtube I get a message that it will be downloaded. It seems to start downloading then fails. Trying to update youtube-dl still fails. I have tried using both mplayer and vlc as the default mediaplayer but again without success. I have uninstalled GTKplayYT V 3.0 as you suggested.

Regards,

Ken.
User avatar
Semme
Posts: 8399
Joined: Sun 07 Aug 2011, 20:07
Location: World_Hub

#35 Post by Semme »

First things first. REMOVE your copy of youtube-dl.

GTK_PlayYT relies on finding youtube-dl in /root/my-applications/bin.

Dwnld the latest here right into this folder. No need to update.

Provided you've got a minimal Python install, my pet should go off without a hitch.

If it still fails, install the 2.6 Python pet in PPM.

Besides the URL, spec your destination directory and format.

In most cases, I'd say mp4's your best bet.

You can play while she dwnlds and know when it's complete when the movie no longer has a ".part" extension.
Attachments
GetYT2_Lucid.pet
(83.74 KiB) Downloaded 256 times
>>> Living with the immediacy of death helps you sort out your priorities. It helps you live a life less trivial <<<
keniv
Posts: 583
Joined: Tue 06 Oct 2009, 21:00
Location: Scotland

#36 Post by keniv »

Hello Semme,
Thanks for the reply.
First things first. REMOVE your copy of youtube-dl
Done, also removed GTKplayYT 3.0
GTK_PlayYT relies on finding youtube-dl in /root/my-applications/bin.

Dwnld the latest here right into this folder.
Done, also installed your pet.
Provided you've got a minimal Python install, my pet should go off without a hitch
I've got the devx installed. python --version in terminal returns 2.6.5.
spec your destination directory and format
Set up /mnt/home/YTVid and set format as mp4. When I pressed OK nothing happened.
Uninstalled your pet and tried GTKplayYT 3.0 with new youtube-dl and got the output below.
Went to /usr/local/GTKplayYT/playYT3.sh line 99 but don't understand why youtube-dl is not found unless it's not where it's expected to be. Tried it in /usr/bin but still not found. Also tried switching mediaplayers but again no luck. I am wondering if it could be because I am relying on the devx for python. I might try uninstalling the devx and load python 2.6 but I'm getting to the limits of what I know. Is there anywhere else where I could place youtube-dl where the script would look for it.

Regads,

Ken.
Attachments
image.jpg
(83.58 KiB) Downloaded 323 times
User avatar
Semme
Posts: 8399
Joined: Sun 07 Aug 2011, 20:07
Location: World_Hub

#37 Post by Semme »

"Uninstalled your pet and tried GTKplayYT 3.0.." << LIKE IT MAY NOW MAGICALLY WORK?

Don't complicate things. You must have missed my link..

Direct Download >> https://yt-dl.org/downloads/latest/youtube-dl

If your browser fails to grab it the right way, you rt-clk and "save link as."

Stick it in /root/my-applications/bin.

Open a terminal and ask "which youtube-dl".. Should say the previous directory here.

Re-run GTK_GetYT, give it a URL and TELL ME WHAT I WANNA HEAR!
>>> Living with the immediacy of death helps you sort out your priorities. It helps you live a life less trivial <<<
User avatar
Semme
Posts: 8399
Joined: Sun 07 Aug 2011, 20:07
Location: World_Hub

#38 Post by Semme »

Problem?

To grab both dwnlds and plug a url took all but a minute.

You know, if you're baking cookies or something :D I'll understand..
>>> Living with the immediacy of death helps you sort out your priorities. It helps you live a life less trivial <<<
keniv
Posts: 583
Joined: Tue 06 Oct 2009, 21:00
Location: Scotland

#39 Post by keniv »

Hello Semme
Re-run GTK_GetYT, give it a URL and TELL ME WHAT I WANNA HEAR!
Sorry, I followed all your instructions but all that happens when I am setup to download video and press OK is that both the blank terminal box and the getYT2 dialog box dissapear. I wondered about python so I unloaded the devx and installed a python 2.6 pet. This made no difference. i downloaded a new copy of youtube-dl using your link. I think youtube-dl could be the problem in that it does not seem to be found in /root/my-applications/bin even although your pet put files in here. When i type

Code: Select all

which youtube-dl
In a terminal I get no output at all. I've tried

Code: Select all

youtube-dl --help
and get "youtube-dl command not found"
The url I'm using is https://www.youtube.com/watch?v=FBIxr8W7ECc though I have tried others. Could you do me a favour ond check it works for you so as I know it should work.
I have tried the format as mp4 (as you suggested) and 3gp (default)
As a directory I,ve tried two outside (/mnt/home/YTVid and /mnt/sda1/YTVid ) and one inside (/root/my-documents/YTVid) the savefile. When I tried a new directory I deleted the previous one. Am I doing something wrong in specing these directories?

Regards,

Ken.
User avatar
Semme
Posts: 8399
Joined: Sun 07 Aug 2011, 20:07
Location: World_Hub

#40 Post by Semme »

Confirm a response here: which python

If no go, stop'n post back. If good, continue..

Take ROX and navigate to /root/my-applications/bin. Make sure you're INSIDE bin.

Now rt-clk and >> Window >> "Terminal Here" and load this line:

Code: Select all

wget --no-check-certificate https://yt-dl.org/downloads/latest/youtube-dl
Run: ldconfig << Lowercase "L" Mate

If your system says it's not there it's because the devx isn't loaded.

Regardless, it should be instantaneously available.

Run: youtube-dl -U

.. And confirm whether it attempts to update..
Attachments
works_fine.jpg
(19.19 KiB) Downloaded 275 times
>>> Living with the immediacy of death helps you sort out your priorities. It helps you live a life less trivial <<<
Post Reply