Page MenuHomePureOS Tracker

youtube-dl out-of-date and non-functional
Open, NormalPublic

Description

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$

Event Timeline

todd created this task.Dec 15 2019, 10:11
jeremiah.foster triaged this task as Normal priority.Dec 15 2019, 13:39

youtube-dl version 2019.09.28 available in Debian testing solves this issue:

https://packages.debian.org/bullseye/all/youtube-dl/download

Meaning that the package in PureOS byzantium should fix it.

joao@librem:~$ youtube-dl --version 
2019.09.28

joao@librem:~$ youtube-dl "ytsearch: The Revolution will not be televised"
[youtube:search] query " The Revolution will not be televised": Downloading page 1
[download] Downloading playlist:  The Revolution will not be televised
[youtube:search] playlist  The Revolution will not be televised: Collected 1 video ids (downloading 1 of them)
[download] Downloading video 1 of 1
[youtube] qGaoXAwl9kw: Downloading webpage
[youtube] qGaoXAwl9kw: Downloading video info webpage
WARNING: Requested formats are incompatible for merge and will be merged into mkv.
[download] Destination: Gil Scott-Heron - The Revolution Will Not Be Televised (Full Band Version)-qGaoXAwl9kw.f135.mp4
[download] 100% of 4.43MiB in 00:00
[download] Destination: Gil Scott-Heron - The Revolution Will Not Be Televised (Full Band Version)-qGaoXAwl9kw.f251.webm
[download] 100% of 2.99MiB in 00:00
[ffmpeg] Merging formats into "Gil Scott-Heron - The Revolution Will Not Be Televised (Full Band Version)-qGaoXAwl9kw.mkv"
Deleting original file Gil Scott-Heron - The Revolution Will Not Be Televised (Full Band Version)-qGaoXAwl9kw.f135.mp4 (pass -k to keep)
Deleting original file Gil Scott-Heron - The Revolution Will Not Be Televised (Full Band Version)-qGaoXAwl9kw.f251.webm (pass -k to keep)
[download] Finished downloading playlist:  The Revolution will not be televised

joao@librem:~$ mpv https://www.invidio.us/watch?v=EjKGJqWx6LY
Playing: https://www.invidio.us/watch?v=EjKGJqWx6LY
 (+) Video --vid=1 (*) (vp9 480x480 10.000fps)
 (+) Audio --aid=1 --alang=eng (*) 'tiny' (opus 2ch 48000Hz) (external)
AO: [pulse] 48000Hz stereo 2ch float
VO: [gpu] 480x480 yuv420p
AV: 00:03:05 / 00:03:06 (99%) A-V:  0.000 Cache:  0s
This comment was removed by joao.azevedo.