I tried the latest beta version and managed to run into a bug so I will leave the script as it is for now.Enternal wrote:Congratulation! The script is now very capable without the limit. It's also great that you still have the option to use VLC if you need to use it.
If you are interested in taking a shot at the beta you can adapt the script in the following way to unlock unlimited downloads:
Code: Select all
"Download 1 Link - XY"
{
global $g_PathDownloads;
global $g_MetaTitle;
global $g_VersionsMenuChoiceExt;
global $g_PlayableUrl;
sub "_Return-Playable-Url-XY";
download ($g_PlayableUrl, "$g_PathDownloads\$g_MetaTitle$g_VersionsMenuChoiceExt", u);
}
Code: Select all
"Download Multiple Links - XY"
{
global $g_PathVlc;
global $g_PathDownloads;
global $g_YoutubeBATFile;
global $g_YoutubeSourceUrl;
global $g_MetaTitle;
global $g_VersionsMenuChoiceExt;
global $g_PlayableUrl;
$Urls = input ("Download Multiple Links - VLC", "Paste 1 Youtube link per line followed by Enter", , m, , , );
foreach ($a, $Urls, "<crlf>"){ //$a is intermediate, foreach loop does not accept uninitialized global?
$g_YoutubeSourceUrl = $a;
sub "_Return-Playable-Urls-XY";
download ($g_PlayableUrl, "$g_PathDownloads\$g_MetaTitle$g_VersionsMenuChoiceExt", u);
}
}