YouTube.com 0.7 - GUI for youtube-dl

Discuss and share scripts and script files...
klownboy
Posts: 3024
Joined: 28 Feb 2012 19:27

Re: Youtube.com XY+VLC 0.5.1 (HOTFIX)

Post by klownboy » 22 May 2013 00:41

Hi 40k,
The patch works. I was able to download the video I had issues with earlier. I was looking for the video afterwards though. The youtube.ini file has my video download folder as PathDownloads=D:\Downloads, yet the downloaded mp4 and webm files ended up in my root directory of D:\ I didn't notice this prior to the patch.
Thanks for your hard work keeping this working and up to date.
Ken

40k
Posts: 234
Joined: 09 Dec 2011 21:25

Re: Youtube.com XY+VLC 0.5.1 (HOTFIX)

Post by 40k » 22 May 2013 09:12

klownboy wrote:Hi 40k,
The patch works. I was able to download the video I had issues with earlier. I was looking for the video afterwards though. The youtube.ini file has my video download folder as PathDownloads=D:\Downloads, yet the downloaded mp4 and webm files ended up in my root directory of D:\ I didn't notice this prior to the patch.
Thanks for your hard work keeping this working and up to date.
Ken
Hi Ken!

Please delete your Youtube.ini file just once. I have made some changes to the configuration file but the script can not yet detect if an existing configuration file is up to date. It just checks if it exists.
I develop scripts that integrate media functionality into Xyplorer.
Hash - Twitch.tv in VLC (NEW 2.0!) - FFmpeg GUI - Youtube downloading
XYplorer for Linux! Tutorial

klownboy
Posts: 3024
Joined: 28 Feb 2012 19:27

Re: Youtube.com XY+VLC 0.5.1 (HOTFIX)

Post by klownboy » 22 May 2013 13:48

Thanks 40k, I deleted the ini file, the script asked for the folder location and version 0.5.1 downloaded fine.
Ken

40k
Posts: 234
Joined: 09 Dec 2011 21:25

Re: Youtube.com XY+VLC 0.5.1 (HOTFIX)

Post by 40k » 27 May 2013 19:34

Anyone else found any videos that make version 0.5.1 crash?
It seems the new code is working nicely but at this stage I pretty much need beta testers because you guys always find stuff that I overlooked.
I develop scripts that integrate media functionality into Xyplorer.
Hash - Twitch.tv in VLC (NEW 2.0!) - FFmpeg GUI - Youtube downloading
XYplorer for Linux! Tutorial

Flora_RMC
Posts: 227
Joined: 28 Dec 2012 09:50

Re: Youtube.com XY+VLC 0.5.1 (HOTFIX)

Post by Flora_RMC » 29 May 2013 04:03

No crash here :wink:
I downloaded yesterday a few small videos (2 or 3 mins.) with the new 0.5.1 version, and it works perfectly fine.
Your efforts in maintaining up to date this amazing script are really appreciated. Thank you so much! :appl: :appl:

klownboy
Posts: 3024
Joined: 28 Feb 2012 19:27

Re: Youtube.com XY+VLC 0.5.1 (HOTFIX)

Post by klownboy » 29 May 2013 14:03

Hi 40k, I purposely looked for some video titles which have some very odd or unusual formatting (e.g., [ Tag n°24 ] Nouveau Roomtour ! ( Update 2013 ) !.mp4) not because I was at all interested in the video but just to test to see if it would download and they did. Thanks again for all your hard work.
Ken

40k
Posts: 234
Joined: 09 Dec 2011 21:25

Re: Youtube.com 0.6 - Line up downloads and walk away

Post by 40k » 04 Jun 2013 18:50

Updated to 0.6.5
I develop scripts that integrate media functionality into Xyplorer.
Hash - Twitch.tv in VLC (NEW 2.0!) - FFmpeg GUI - Youtube downloading
XYplorer for Linux! Tutorial

40k
Posts: 234
Joined: 09 Dec 2011 21:25

Re: Youtube.com 0.6.5 - More Batch download improvement

Post by 40k » 24 Jun 2013 18:22

I discovered that deleting your chosen "Downloads" folder will cause the script to malfunction. If you deleted the folder please edit the path in Youtube.ini to reflect a new download path. Alternatively, delete Youtube.ini to reconfigure the script using the automated wizard.
I develop scripts that integrate media functionality into Xyplorer.
Hash - Twitch.tv in VLC (NEW 2.0!) - FFmpeg GUI - Youtube downloading
XYplorer for Linux! Tutorial

40k
Posts: 234
Joined: 09 Dec 2011 21:25

Re: Youtube.com 0.6.5 - More Batch download improvement

Post by 40k » 13 Jul 2013 13:18

Because of the way the script currently handles batch downloading through VLC I have discovered there are some limitations imposed by windows.

Before Windows XP the maximum command line length was 2000 characters.
Windows XP increased that to 8191 characters.
Windows 7 reportedly improved to over 32000 characters.

As such, depending on which version of Windows you have, it is possible that downloading a LOT of video files in batch (We're talking 50+ videos in one batch) may cause the command line to overflow. If this happens the script simply does not run your download.

This is because currently I'm using the VLC playlist to queue your files in one go. In the next version I will make the script queue downloads in VLC in smaller batches of 10, which will avoid this problem. This does not affect the amount of videos you can batch download, it's purely an internal change. You can still download all of Youtube if you wanted to :)
I develop scripts that integrate media functionality into Xyplorer.
Hash - Twitch.tv in VLC (NEW 2.0!) - FFmpeg GUI - Youtube downloading
XYplorer for Linux! Tutorial

40k
Posts: 234
Joined: 09 Dec 2011 21:25

Re: Youtube.com 0.6.5 - More Batch download improvement

Post by 40k » 15 Jul 2013 11:15

New feature coming up in 0.7 will be "Play in <insert your media player>".
The script will allow you to play your chosen video directly in your favorite media playe, as long as it supports streaming video via http. VLC, MPC, Windows Media Player, Quicktime, ... are just a few popular players that support this.

In case you use VLC you will also be able to queue up videos in a playlist. Pick your favorite videos from Youtube and let VLC play them for you while you work on other things on your computer.

In my secret test lab I'm developing a new feature that will automatically keep tabs on Youtube channels you want to monitor, if new videos appear the script will be able to indicate this to you. But that is still in really early stages of development :)

Here's a little bonus for you who actually read all this stuff.
Add this code into your Youtube.xys file to enable playing video directly in VLC :)

Code: Select all

"Play in VLC"
 {
 global $g_YoutubeSourceUrl;
 global $g_YoutubeSourceContent;
 
 $g_YoutubeSourceUrl = "<clipboard>";
 sub "_Youtube-Get-SourceData";

 global $g_MetaTitle;
 global $g_MetaDescription; 
 sub "_SourceData-Get-MetaData";
 
 global $g_StreamMap; 
 sub "_SourceData-Get-StreamMap";
 sub "_StreamMap-Decode";
 
 global $g_Itags;
 sub "_StreamMap-Get-Versions";

 global $g_VersionsMenuList;
 global $g_VersionsMenuChoice;
 sub "_Versions-Get-Choice";
 
 global $g_PlayableUrl;
 sub "_Choice-Create-PlayableUrl";
 
 global $g_Vlc; 
 global $g_ExecutionFile;
 
 $VlcCmd = '"'.$g_Vlc.'" "'.$g_PlayableUrl.'"';
 writefile ($g_ExecutionFile, $VlcCmd."<crlf>del ".'"'.$g_ExecutionFile.'"', o, t);
 run ($VlcCmd, , 0, 0);
 }
I develop scripts that integrate media functionality into Xyplorer.
Hash - Twitch.tv in VLC (NEW 2.0!) - FFmpeg GUI - Youtube downloading
XYplorer for Linux! Tutorial

40k
Posts: 234
Joined: 09 Dec 2011 21:25

Re: Youtube.com 0.6.5 - More Batch download improvement

Post by 40k » 07 Dec 2013 21:03

VLC 2.1.1 Rincewind is producing some odd behavior. It will not play or download the CDN links that are generated by the script. But the same link will download fine using XYplorer and it will also play in stuff like Media Player or via direct access in Firefox or Chrome.
Not sure what is going on there. So if you need a surefire way to download your stuff, use the XYplorer function in the script.
I develop scripts that integrate media functionality into Xyplorer.
Hash - Twitch.tv in VLC (NEW 2.0!) - FFmpeg GUI - Youtube downloading
XYplorer for Linux! Tutorial

40k
Posts: 234
Joined: 09 Dec 2011 21:25

Re: Youtube.com 0.6.5 - Update to VLC 2.1.2

Post by 40k » 18 Dec 2013 10:19

VLC has updated to 2.1.2 and initial testing shows that whatever broke in the previous version was fixed. All functions of the script work like they used to again. :)
I develop scripts that integrate media functionality into Xyplorer.
Hash - Twitch.tv in VLC (NEW 2.0!) - FFmpeg GUI - Youtube downloading
XYplorer for Linux! Tutorial

RalphM
Posts: 1402
Joined: 27 Jan 2005 23:38
Location: Cairns, Australia

Re: Youtube.com 0.6.5 - Update to VLC 2.1.2

Post by RalphM » 15 Oct 2014 11:44

Updated to 0.6.5 but can't get a download to work with either XY single or VLC single options.
I get the following URL error:

Code: Select all

Download failed for URL:
http://r1---sn-uxanug5-coxe.googlevideo.com/videoplayback?mt=1413359467&upn=qOyqB3OkkUE&mv=m&ms=au&signaturenature=D9BD0DF7AA1A0EE6EF5DED1BF5640BE77B861CFB.77115206EBE2DDF674F7FB3F0D94B93378A1893B&id=o-AP_yd-ESUgZ84rbBVKsoH3TgIMsYddTtKGOW6q2jUMGC&fexp=901440%2C904844%2C916941%2C927622%2C930666%2C930672%2C931983%2C932404%2C934030%2C935684%2C939109%2C943908%2C946023%2C947209%2C947222%2C952302%2C952901&sparams=id%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Cmime%2Cmm%2Cms%2Cmv%2Cratebypass%2Csource%2Cupn%2Cexpire&sver=3&ratebypass=yes&mm=31&ip=1.120.144.173&source=youtube&initcwndbps=663750&mime=video%2Fmp4&key=yt5&expire=1413381118&ipbits=0&itag=22
Reason: URL not found. Error #403.
download
http://r1---sn-uxanug5-coxe.googlevideo.com/videoplayback?mt=1413359467&upn=qOyqB3OkkUE&mv=m&ms=au&signaturenature=D9BD0DF7AA1A0EE6EF5DED1BF5640BE77B861CFB.77115206EBE2DDF674F7FB3F0D94B93378A1893B&id=o-AP_yd-ESUgZ84rbBVKsoH3TgIMsYddTtKGOW6q2jUMGC&fexp=9014 [...]
C:\Users\Ralph\Downloads\Slow Motion FH.mp4
o
Any help?
Ralph :-)
(OS: W10 1909 Home x64 - XY: Current beta - Office 2019 32-bit)

highend
Posts: 9336
Joined: 06 Feb 2011 00:33

Re: Youtube.com 0.6.5 - Update to VLC 2.1.2

Post by highend » 15 Oct 2014 12:03

I've only tried your first link. It doesn't work in Firefox nor Chrome so the error message from the script should be what I would expect ;(
One of my scripts helped you out? Please donate via Paypal or paypal_donate (at) stdmail (dot) de

RalphM
Posts: 1402
Joined: 27 Jan 2005 23:38
Location: Cairns, Australia

Re: Youtube.com 0.6.5 - Update to VLC 2.1.2

Post by RalphM » 15 Oct 2014 16:41

The link I actually got in the clipboard is the following http://www.youtube.com/watch?v=ERBDJ9yvvKs
but when I start youtube.xys it's apparently converted to what is shown in the error message.
Ralph :-)
(OS: W10 1909 Home x64 - XY: Current beta - Office 2019 32-bit)

Post Reply