The current version in PureOS of youtube-dl fails to download
purism@pureos:~/Music$ youtube-dl --verbose "https://www.youtube.com/watch?v=HGy9wdgCWEk" [debug] System config: [] [debug] User config: [] [debug] Custom config: [] [debug] Command-line args: ['--verbose', 'https://www.youtube.com/watch?v=HGy9wdgCWEk'] [debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8 [debug] youtube-dl version 2019.01.17 [debug] Python version 3.7.3 (CPython) - Linux-5.3.0-librem5-h1-aarch64-with-PureOS-9-amber [debug] exe versions: none [debug] Proxy map: {} [youtube] HGy9wdgCWEk: Downloading webpage [youtube] HGy9wdgCWEk: Downloading video info webpage ERROR: HGy9wdgCWEk: YouTube said: This video is unavailable. Traceback (most recent call last): File "/usr/lib/python3/dist-packages/youtube_dl/YoutubeDL.py", line 793, in extract_info ie_result = ie.extract(url) File "/usr/lib/python3/dist-packages/youtube_dl/extractor/common.py", line 508, in extract ie_result = self._real_extract(url) File "/usr/lib/python3/dist-packages/youtube_dl/extractor/youtube.py", line 1688, in _real_extract expected=True, video_id=video_id) youtube_dl.utils.ExtractorError: HGy9wdgCWEk: YouTube said: This video is unavailable. purism@pureos:~/Music$
Current version:
purism@pureos:~/Music$ dpkg -s youtube-dl Package: youtube-dl Status: install ok installed Priority: optional Section: web Installed-Size: 5481 Maintainer: Rogério Brito <rbrito@ime.usp.br> Architecture: all Version: 2019.01.17-1.1 Depends: python3-pkg-resources, python3:any Recommends: aria2 | wget | curl, ca-certificates, ffmpeg | libav-tools, mpv | mplayer, phantomjs, python3-pyxattr, rtmpdump Description: downloader of videos from YouTube and other sites youtube-dl is a small command-line program to download videos from YouTube.com and other sites that don't provide direct links to the videos served. . <snip> Homepage: https://rg3.github.com/youtube-dl/ purism@pureos:~/Music$
Current HEAD version works:
todd@librem-13v2:~/src$ git clone --depth=1 https://github.com/ytdl-org/youtube-dl.git Cloning into 'youtube-dl'... remote: Enumerating objects: 946, done. remote: Counting objects: 100% (946/946), done. remote: Compressing objects: 100% (936/936), done. remote: Total 946 (delta 24), reused 180 (delta 4), pack-reused 0 Receiving objects: 100% (946/946), 1.75 MiB | 7.69 MiB/s, done. Resolving deltas: 100% (24/24), done. todd@librem-13v2:~/src$ cd youtube-dl/ todd@librem-13v2:~/src/youtube-dl$ make pandoc -f markdown-smart -t plain README.md -o README.txt /usr/bin/env python devscripts/prepare_manpage.py youtube-dl.1.temp.md pandoc -s -f markdown-smart -t man youtube-dl.1.temp.md -o youtube-dl.1 rm -f youtube-dl.1.temp.md /usr/bin/env python devscripts/bash-completion.py /usr/bin/env python devscripts/zsh-completion.py /usr/bin/env python devscripts/fish-completion.py /usr/bin/env python devscripts/make_supportedsites.py docs/supportedsites.md todd@librem-13v2:~/src/youtube-dl$ ./youtube-dl "https://www.youtube.com/watch?v=HGy9wdgCWEk" [youtube] HGy9wdgCWEk: Downloading webpage [youtube] HGy9wdgCWEk: Downloading video info webpage [youtube] HGy9wdgCWEk: Downloading js player vfl7Ksmll [youtube] HGy9wdgCWEk: Downloading js player vfl7Ksmll [download] Destination: half•alive - aawake at night [VIDEO]-HGy9wdgCWEk.f313.webm [download] 100% of 206.91MiB in 00:19 [download] Destination: half•alive - aawake at night [VIDEO]-HGy9wdgCWEk.f251.webm [download] 100% of 3.06MiB in 00:00 [ffmpeg] Merging formats into "half•alive - aawake at night [VIDEO]-HGy9wdgCWEk.webm" Deleting original file half•alive - aawake at night [VIDEO]-HGy9wdgCWEk.f313.webm (pass -k to keep) Deleting original file half•alive - aawake at night [VIDEO]-HGy9wdgCWEk.f251.webm (pass -k to keep) todd@librem-13v2:~/src/youtube-dl$ date Sun 15 Dec 2019 10:10:47 AM PST todd@librem-13v2:~/src/youtube-dl$