Processed: Re: Bug#987226: youtube-dl: ERROR: Unable to extract yt initial data

2021-04-20 Thread Debian Bug Tracking System
Processing control commands:

> severity -1 important
Bug #987226 [youtube-dl] youtube-dl: ERROR: Unable to extract yt initial data
Severity set to 'important' from 'grave'

-- 
987226: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=987226
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems



Bug#987226: youtube-dl: ERROR: Unable to extract yt initial data

2021-04-20 Thread Holger Levsen
control: severity -1 important
thanks

hi Mike,

On Mon, Apr 19, 2021 at 09:39:55PM +, Mike Gabriel wrote:
> Package: youtube-dl
> Severity: grave

you didn't really describe why you thought the severity should be grave,
but anyway:

$ youtube-dl https://twitter.com/zemodancingto/status/1381937205787172867#m
[twitter] 1381937205787172867: Downloading guest token
[twitter] 1381937205787172867: Downloading JSON metadata
[twitter] 1381937205787172867: Downloading m3u8 information
[download] Destination: zemo dancing to - Rick Astley - Never Gonna Give You 
Up-1381937205787172867.mp4
[download] 100% of 3.00MiB in 00:01
$

so this clearly shows the package isn't broken for everyone.


-- 
cheers,
Holger

 ⢀⣴⠾⠻⢶⣦⠀
 ⣾⠁⢠⠒⠀⣿⡁  holger@(debian|reproducible-builds|layer-acht).org
 ⢿⡄⠘⠷⠚⠋⠀  OpenPGP: B8BF54137B09D35CF026FE9D 091AB856069AAA1C
 ⠈⠳⣄

In Germany we don‘t say „Happy Valentine‘s Day, I love you“, we say „ich werde
diesen vom Markt kreierten, konsumorientierten Trend des Kapitalismus nicht
unterstützen,“ and I think that’s beautiful. (Hazel Brugger)


signature.asc
Description: PGP signature


Bug#987226: youtube-dl: ERROR: Unable to extract yt initial data

2021-04-19 Thread Mike Gabriel

Package: youtube-dl
Severity: grave
Version: 2021.02.10-1

Dear maintainer,

when trying out youtube-dl from Debian testing (aka bullseye) I get  
this error for simple video or playlist based downloads:


ERROR: Unable to extract yt initial data; please report this issue on  
https://yt-dl.org/bug . Make sure you are using the latest version;  
see  https://yt-dl.org/update  on how to update. Be sure to call  
youtube-dl with the --verbose flag and include its complete output.


E.g. for a playlist:

```
[sunweaver@sunobo New-Song]$ youtube-dl --verbose  --extract-audio  
--audio-format mp3 -o "%(title)s.%(ext)s" ""

[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['--verbose', '--extract-audio',  
'--audio-format', 'mp3', '-o', '%(title)s.%(ext)s', '']

[debug] Encodings: locale UTF-8, fs utf-8, out utf-8, pref UTF-8
[debug] youtube-dl version 2021.02.10
[debug] Python version 3.9.2 (CPython) -  
Linux-5.10.0-5-amd64-x86_64-with-glibc2.31

[debug] exe versions: ffmpeg 4.3.2-0, ffprobe 4.3.2-0, rtmpdump 2.4
[debug] Proxy map: {}
[youtube:tab] OLAK5uy_m3-t4xLGBOHujynldlI3w-3Qp0WU62EAo: Downloading webpage
ERROR: Unable to extract yt initial data; please report this issue on  
https://yt-dl.org/bug . Make sure you are using the latest version;  
see  https://yt-dl.org/update  on how to update. Be sure to call  
youtube-dl with the --verbose flag and include its complete output.

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/youtube_dl/YoutubeDL.py", line  
806, in wrapper

return func(self, *args, **kwargs)
  File "/usr/lib/python3/dist-packages/youtube_dl/YoutubeDL.py", line  
827, in __extract_info

ie_result = ie.extract(url)
  File  
"/usr/lib/python3/dist-packages/youtube_dl/extractor/common.py", line  
532, in extract

ie_result = self._real_extract(url)
  File  
"/usr/lib/python3/dist-packages/youtube_dl/extractor/youtube.py", line  
2647, in _real_extract

data = self._extract_yt_initial_data(item_id, webpage)
  File  
"/usr/lib/python3/dist-packages/youtube_dl/extractor/youtube.py", line  
283, in _extract_yt_initial_data

self._search_regex(
  File  
"/usr/lib/python3/dist-packages/youtube_dl/extractor/common.py", line  
1010, in _search_regex

raise RegexNotFoundError('Unable to extract %s' % _name)
youtube_dl.utils.RegexNotFoundError: Unable to extract yt initial  
data; please report this issue on https://yt-dl.org/bug . Make sure  
you are using the latest version; see  https://yt-dl.org/update  on  
how to update. Be sure to call youtube-dl with the --verbose flag and  
include its complete output.


```

I then tried the latest youtube-dl release (2021-04-17) and all my  
download test succeed.


Unfortunately, that youtube-dl version contains tons of fixes and  
changes, so it may be a challenge enrolling the release team into  
allowing an upstream version bump here.


Unfortunately, I currently lack time for diving into this and finding  
the exact commit that fixes the above issue.


Greets,
Mike
--

DAS-NETZWERKTEAM
c\o Technik- und Ökologiezentrum Eckernförde
Mike Gabriel, Marienthaler Str. 17, 24340 Eckernförde
mobile: +49 (1520) 1976 148
landline: +49 (4351) 850 8940

GnuPG Fingerprint: 9BFB AEE8 6C0A A5FF BF22  0782 9AF4 6B30 2577 1B31
mail: mike.gabr...@das-netzwerkteam.de, http://das-netzwerkteam.de



pgpbOKwFZLULJ.pgp
Description: Digitale PGP-Signatur