yt-dlp giving error not seen before

sofasurfer

Active Member
Joined
May 24, 2022
Messages
178
Reaction score
59
Credits
1,523
I have used yt-dlp for a long time with no problems. Now, however, I am getting this error when trying to download a video...
Code:
generic] Extracting URL: https://frankspeech.com/Video/you-will-crush-serpents-and-live-long-trees-isaiah-65-psalm-91-7-30-23
[generic] you-will-crush-serpents-and-live-long-trees-isaiah-65-psalm-91-7-30-23: Downloading webpage
WARNING: [generic] Falling back on generic information extractor
[generic] you-will-crush-serpents-and-live-long-trees-isaiah-65-psalm-91-7-30-23: Extracting information
[html5] you-will-crush-serpents-and-live-long-trees-isaiah-65-psalm-91-7-30-23: Downloading m3u8 information
ERROR: [generic] None: None: Failed to parse JSON (caused by JSONDecodeError('Extra data in \'_string"}}{"@context\': line 1 column 279 (char 278)')); please report this issue on  https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using  yt-dlp -U
Whats my problem? I tried upgrading using command line and I get this...
Code:
$ sudo yt-dlp -U
Available version: [email protected], Current version: [email protected]
ERROR: You installed yt-dlp with a package manager or setup.py; Use that to update

I searched in synaptic and it indicates I did not install it from synaptic.
 


AFAIK yt-dlp is only for downloading Youtube videos, if it was working before you might as well ask the project developers?
 
There are a couple of ways to update it - current version in Debian repos is 2023 03.04 if you want a later version you will need to uninstall this version first and then install yt-dlp through python3-pip
Code:
pip install yt-dlp -U
if you have python3-pip installed -
Code:
python3 -m pip install -U yt-dlp

your input code for yt-dlp should look like
Code:
yt-dlp -F https://frankspeech.com/Video/you-will-crush-serpents-and-live-long-trees-isaiah-65-psalm-91-7-30-23
you should get a return of
1.png

So I am thinking your input may be in error

You also get this error - ERROR: [generic] None: None: Failed to parse JSON
You can try to force it through yt-dlp by -
Code:
yt-dlp --force-generic -S "res:360" paste in web site
so it will look like
Code:
yt-dlp --force-generic -S "res:360" https://frankspeech.com/Video/you-will-crush-serpents-and-live-long-trees-isaiah-65-psalm-91-7-30-23

the 'res:360" is the quality - if you want say 720p - that would be - yt-dlp --force-generic -S "res:720"
be advised not all web videos support all qualities depends on how they uploaded it - most all do 360 some do 480, 540,720,or 1080p - this video as noted above is 720p capable

to download this video in 720p it would be
Code:
yt-dlp -f hls-975 https://frankspeech.com/Video/you-will-crush-serpents-and-live-long-trees-isaiah-65-psalm-91-7-30-23
 
Last edited by a moderator:
if you have python3-pip installed -
Code:
python3 -m pip install -U yt-dlp
If you installed "yt-dlp" using your system's package manager it's not a good idea to use pip to update it.
 
If you installed "yt-dlp" using your system's package manager it's not a good idea to use pip to update it.
if you want a later version you will need to uninstall this version first and then install yt-dlp through python3-pip
Code:
 

Members online


Top