yt-dlp: CBC Gem updated and now download is broken
DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE
- I understand that I will be blocked if I intentionally remove or skip any mandatory* field
Checklist
- I’m reporting a broken site
- I’ve verified that I’m running yt-dlp version 2023.02.17 (update instructions) or later (specify commit)
- I’ve checked that all provided URLs are playable in a browser with the same IP and same login details
- I’ve checked that all URLs and arguments with special characters are properly quoted or escaped
- I’ve searched known issues and the bugtracker for similar issues including closed ones. DO NOT post duplicates
- I’ve read the guidelines for opening an issue
- I’ve read about sharing account credentials and I’m willing to share it if required
Region
Canada
Provide a description that is worded well enough to be understood
I was able to download videos from CBC Gem a couple of days ago, but they’ve very recently (possibly only today) updated the website and how it displays the videos. As far as I can tell the URLs remain the same but the video will no longer download.
I tried downloading URLs I knew worked before and trying completely new URLs.
Provide verbose output that clearly demonstrates the problem
- Run your yt-dlp command with -vU flag added (
yt-dlp -vU <your command line>
) - If using API, add
'verbose': True
toYoutubeDL
params instead - Copy the WHOLE output (starting with
[debug] Command-line config
) and insert it below
Complete Verbose Output
[debug] Command-line config: ['--username', 'PRIVATE', '--password', 'PRIVATE', '--embed-subs', '--embed-metadata', '--embed-thumbnail', '-i', '-vU', 'https://gem.cbc.ca/nadiyas-family-favourites/s01e01']
[debug] Encodings: locale cp1252, fs utf-8, pref cp1252, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version 2023.02.17 [a0a7c01] (pip)
[debug] Python 3.10.0 (CPython AMD64 64bit) - Windows-10-10.0.19044-SP0 (OpenSSL 1.1.1l 24 Aug 2021)
[debug] exe versions: ffmpeg 2021-10-28-git-e84c83ef98-full_build-www.gyan.dev (setts), ffprobe 2021-10-28-git-e84c83ef98-full_build-www.gyan.dev
[debug] Optional libraries: Cryptodome-3.11.0, brotli-1.0.9, certifi-2021.10.08, mutagen-1.45.1, sqlite3-2.6.0, websockets-10.0
[debug] Proxy map: {}
[debug] Loaded 1782 extractors
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp/releases/latest
Latest version: 2023.02.17, Current version: 2023.02.17
yt-dlp is up to date (2023.02.17)
[generic] Extracting URL: https://gem.cbc.ca/nadiyas-family-favourites/s01e01
[generic] s01e01: Downloading webpage
WARNING: [generic] Falling back on generic information extractor
[generic] s01e01: Extracting information
[debug] Looking for embeds
WARNING: [generic] s01e01: Failed to parse JSON: Expecting property name enclosed in double quotes in '': line 1 column 2 (char 1)
ERROR: Unsupported URL: https://gem.cbc.ca/nadiyas-family-favourites/s01e01
Traceback (most recent call last):
File "C:\Users\XXX\AppData\Local\Programs\Python\Python310\lib\site-packages\yt_dlp\YoutubeDL.py", line 1502, in wrapper
return func(self, *args, **kwargs)
File "C:\Users\XXX\AppData\Local\Programs\Python\Python310\lib\site-packages\yt_dlp\YoutubeDL.py", line 1578, in __extract_info
ie_result = ie.extract(url)
File "C:\Users\XXX\AppData\Local\Programs\Python\Python310\lib\site-packages\yt_dlp\extractor\common.py", line 693, in extract
ie_result = self._real_extract(url)
File "C:\Users\XXX\AppData\Local\Programs\Python\Python310\lib\site-packages\yt_dlp\extractor\generic.py", line 2509, in _real_extract
raise UnsupportedError(url)
yt_dlp.utils.UnsupportedError: Unsupported URL: https://gem.cbc.ca/nadiyas-family-favourites/s01e01
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 16 (4 by maintainers)
Commits related to this issue
- [extractor/cbc:gem] Update `_VALID_URL` (#6499) Authored by: makeworld-the-better-one Closes #6395 — committed to yt-dlp/yt-dlp by makew0rld a year ago
- [extractor/cbc:gem] Update `_VALID_URL` (#6499) Authored by: makeworld-the-better-one Closes #6395 — committed to elyse0/yt-dlp by makew0rld a year ago
- Yt live from start range (#2) * [utils] Add hackish 'now' support for --download-sections * [utils] Add microseconds to unified_timestamp * [common] Extract start and end keys for Dash fragment... — committed to qa4FKm3mUr/yt-dlp by qa4FKm3mUr a year ago
The Nature of Things S62E08.
yt-dlp "https://cbcrcott-gem.akamaized.net/be7489d5-5f73-4cd8-b845-1178f98051e7/CBC_THE_NATURE_OF_THINGS_S62E08.ism/desktop_master.m3u8?hdnea=st=1677839512~exp=1677839632~acl=/be7489d5-5f73-4cd8-b845-1178f98051e7/cbc_the_nature_of_things_s62e08.ism/desktop*~hmac=78059e97cfdc35919f4e065929c865f600f71d653357920d70d818961c29e5bb" --downloader aria2c --console-title -o "The Nature of Things.S62E08.mp4"
It downloads 720p but chooses the audio described track so you have to specify-f -f "audio-English"
to download the .m4a stream and then mux with the video later or choose the video stream and audio stream like this3687+audio-English
The top command is all one string but somehow it doesn’t wrap nicely here.
@JinglingB Thanks for the catch, works like a bomb. I have to admit I wasn’t even aware the extractor could find subs in the past. I just had to use ffmpeg to extract them from the closed captions but I’ll try your CCExtractor option so thanks for that too.
Made PR: #6499
Ok fix looks very simple, it’s just that CBC’s URLs changed to no longer have the
/media/
part. Thanks for the tip @JinglingB. Will make a PR today or so.Just add
/media/
afterhttps://gem.cbc.ca/
. This works with my free account:The extractor cannot find subtitles any more, but you can use CCExtractor to get an SRT out of the embedded EIA subtitles. I add
--exec "\"C:\Program Files (x86)\CCExtractor\ccextractorwinfull.exe\" -autoprogram -trim --norollup"
to myyt-dlp
command-line to have them automatically extracted after download.@andelius Good idea to open a ticket. Everything is a mess to be honest. Metadata is not available anymore.
Thanks @cagenuts, appreciated!