Fails download of SVT Play video (Traden Berattar S01E05)
See original GitHub issuePlease follow the guide below
- You will be asked some questions and requested to provide some information, please read them carefully and answer honestly
- Put an
x
into all the boxes [ ] relevant to your issue (like that [x]) - Use Preview tab to see how your issue will actually look like
Make sure you are using the latest version: run youtube-dl --version
and ensure your version is 2016.06.16. If it’s not read this FAQ entry and update. Issues with outdated version will be rejected.
- [x ] I’ve verified and I assure that I’m running youtube-dl 2016.06.16
Before submitting an issue make sure you have:
- [ x] At least skimmed through README and most notably FAQ and BUGS sections
- [ x] Searched the bugtracker for similar issues including closed ones
What is the purpose of your issue?
- [ x] Bug report (encountered problems with youtube-dl)
- Site support request (request for adding support for a new site)
- Feature request (request for a new functionality)
- Question
- Other
The following sections concretize particular purposed issues, you can erase any section (the contents between triple —) not applicable to your issue
If the purpose of this issue is a bug report, site support request or you are not completely sure provide the full verbose output as follows:
Add -v
flag to your command line you run youtube-dl with, copy the whole output and insert it here. It should look similar to one below (replace it with your log inserted between triple ```):
c:\temp>youtube-dl.exe -v http://www.svtplay.se/video/9170389/traden-berattar/traden-berattar-sasong-1-avsnitt-5/
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['-v', 'http://www.svtplay.se/video/9170389/traden-berattar/traden-berattar-sasong-1-avsnitt-5/']
[debug] Encodings: locale cp1252, fs mbcs, out cp850, pref cp1252
[debug] youtube-dl version 2016.06.16
[debug] Python version 3.4.4 - Windows-10-10.0.14366
[debug] exe versions: none
[debug] Proxy map: {}
[SVTPlay] 9170389: Downloading JSON metadata
ERROR: 9170389: Failed to parse JSON (caused by ValueError('Expecting value: line 1 column 1 (char 0)',)); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type youtube-dl -U to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpxzf4ix2_\build\youtube_dl\extractor\common.py", line 544, in _parse_json
File "C:\Python\Python34\lib\json\__init__.py", line 318, in loads
File "C:\Python\Python34\lib\json\decoder.py", line 343, in decode
File "C:\Python\Python34\lib\json\decoder.py", line 361, in raw_decode
ValueError: Expecting value: line 1 column 1 (char 0)
Traceback (most recent call last):
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpxzf4ix2_\build\youtube_dl\extractor\common.py", line 544, in _parse_json
File "C:\Python\Python34\lib\json\__init__.py", line 318, in loads
File "C:\Python\Python34\lib\json\decoder.py", line 343, in decode
File "C:\Python\Python34\lib\json\decoder.py", line 361, in raw_decode
ValueError: Expecting value: line 1 column 1 (char 0)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpxzf4ix2_\build\youtube_dl\YoutubeDL.py", line 676, in extract_info
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpxzf4ix2_\build\youtube_dl\extractor\common.py", line 342, in extract
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpxzf4ix2_\build\youtube_dl\extractor\svt.py", line 124, in _real_extract
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpxzf4ix2_\build\youtube_dl\extractor\svt.py", line 14, in _extract_video
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpxzf4ix2_\build\youtube_dl\extractor\common.py", line 538, in _download_json
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpxzf4ix2_\build\youtube_dl\extractor\common.py", line 548, in _parse_json
youtube_dl.utils.ExtractorError: 9170389: Failed to parse JSON (caused by ValueError('Expecting value: line 1 column 1 (char 0)',)); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type youtube-dl -U to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
If the purpose of this issue is a site support request please provide all kinds of example URLs support for which should be included (replace following example URLs by yours):
- Single video: http://www.svtplay.se/video/9170389/traden-berattar/traden-berattar-sasong-1-avsnitt-5/
- Single video: http://www.svtplay.se/video/9026535/traden-berattar/traden-berattar-sasong-1-avsnitt-4 (this URL week ago)
Description of your issue, suggested solution and other information
Failed to parse JSON
Issue Analytics
- State:
- Created 7 years ago
- Comments:5
Top Results From Across the Web
SVT Play is broken #26428 - ytdl-org/youtube-dl - GitHub
[SVTPlay] 27782111: Downloading webpage ERROR: Unable to extract video id; please report this issue on https://yt-dl.org/bug .
Read more >SVT Play on the App Store - Apple
Read reviews, compare customer ratings, see screenshots and learn more about SVT Play. Download SVT Play and enjoy it on your iPhone, iPad...
Read more >SVT Play - Apps on Google Play
With SVT Play, you can see the SVT programs and broadcasts when and where it suits you best. With the app you can:...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hi,
Created a and attached a patch (sorry I am not familiar with pull requests) that at least handles:
% youtube-dl -v http://www.svtplay.se/video/8169480/bron/bron-sasong-1-avsnitt-1.
Regards, Johan W svt.patch.zip
Thanks @johan-westin-private I’ve adapted your patch and SVTPlay should be fixed in the next version.