Tiny Core Extensions > TCE News
get_youtube-dl.tcz
(1/1)
nitram:
New get_youtube-dl.tcz for TC7 x86, simple script to create latest youtube-dl.tcz. Script output provides mediaplayer stream example plus links to youtube-dl homepage, supported sites, README. Re-run 'get_youtube-dl' for subsequent update checks, updates typically released weekly, but only required if youtube.com or your favourite site stops working.
Note get_youtube-dl.tcz tested on only one system, please PM regarding bugs or problems, thanks.
Compiling MPlayer natively on the target system along with using youtube-dl seems an unbeatable performance combination. Was thinking of submitting a custom compile mplayer script that would download latest source, allow user to select from the most important compile options, create sane default config, etc ... or not :)
nitram:
Updated get_youtube-dl.tcz for TC7 x86, several changes, should work more efficiently.
Run get_youtube-dl.sh to create or update youtube-dl.tcz extension.
Thanks Misalf for the feedback.
Update process example:
--- Code: ---get_youtube-dl (v201612) creates youtube-dl.tcz from yt-dl.org.
youtube-dl homepage: https://rg3.github.io/youtube-dl/
Supported sites: https://rg3.github.io/youtube-dl/supportedsites.html
Detailed usage: https://github.com/rg3/youtube-dl/blob/master/README.md
Streaming example (copy all including dashes):
youtube-dl -f 36 -o - https://www.youtube.com/watch?v=_v94XqFW4Qw | mplayer -
Press Enter to update check existing youtube-dl.tcz, (q)uit exits:
* Checking network connection and yt-dl.org availability.
* Retrieving latest youtube-dl from yt-dl.org.
* System youtube-dl md5sum: a936828e9a717a24d0368b9c35b81912
* Latest youtube-dl md5sum: 13f9dee96c8ef31f0e62a1241a3a633b
* Newer youtube-dl available, updating.
* Dependency python.tcz already installed.
* Creating youtube-dl.tcz, dependency and md5sum files.
* Moving files to /etc/sysconfig/tcedir/optional/upgrade/.
Add youtube-dl.tcz to (b)oot, (o)ndemand or (n)o change: n
* Release notes: https://github.com/rg3/youtube-dl/releases
* Reboot to complete youtube-dl.tcz update, exiting..
--- End code ---
CNK:
I've updated this script and added features as well as support for x86_64 and PiCore.
Changes
* Launch youtube-dl with "python2" command instead of the missing "python" command.
* Add options for downloading latest daily build of youtube-dl, yt-dlp, or custom download URL.
* Add support for PiCore and x86_64.
* Check for ca-certificates.tcz and warn + use --no-check-certificate if not found.
* Run non-interactively when started with a command line argument.
* Use /bin/ping to avoid permissions problem when inetutils.tcz is loaded.
* Various minor optimisations.
From the revised info file:
--- Code: ---Comments: Run 'get_youtube-dl.sh' to get the latest version of
youtube-dl or yt-dlp and create a youtube-dl.tcz extension.
If run without arguments, it will prompt for the release
type you want to install (listed below), and to add
youtube-dl.tcz to onboot.lst or OnDemand.
If run with one of these arguments, the script will
download the specified release type and not prompt for
user input:
youtube-dl -- Latest official release
youtube-dl_daily -- Latest daily dev. build
yt-dlp -- Youtube-dl fork (Python 3)
[custom URL] -- User-provided link to youtube-dl
executable download (eg. older
version)
Examples:
get_youtube-dl.sh youtube-dl_daily
get_youtube-dl.sh https://github.com/ytdl-patched/youtube-dl/releases/download/2023.05.18.810/youtube-dl
Re-run 'get_youtube-dl.sh' for subsequent update checks.
Script output provides mediaplayer stream example plus
links to youtube-dl homepage, supported sites, README.
Youtube-dl is a rich commandline media downloader, works
on numerous websites, licenced with http://unlicense.org.
https://rg3.github.io/youtube-dl/
--- End code ---
I've tested it on TC 14.0 x86 and x86_64 platforms, and PiCore 13.1.0 on a Raspberry Pi Zero W (the downloader script runs fine on the Zero, but youtube-dl/yt-dlp themselves start up really slowly on the under-powered hardware (faster Pis should be better)). The current version is attached.
If there are no objections, I'll submit an updated extension for the x86 repo, and ask for it to be added to the x86_64 and PiCore repos now as well.
CNK:
OK, nobody's objected, or even downloaded the script, so I guess everybody's fine (or maybe more likely indifferent) with that.
Extension submitted.
Navigation
[0] Message Index
Go to full version