Skip to content

Commit

Permalink
[extractor/cbc:gem] Update _VALID_URL (yt-dlp#6499)
Browse files Browse the repository at this point in the history
Authored by: makeworld-the-better-one
Closes yt-dlp#6395
  • Loading branch information
makew0rld authored and elyse0 committed Mar 12, 2023
1 parent c222f6c commit 96f5d29
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion yt_dlp/extractor/cbc.py
Expand Up @@ -202,7 +202,7 @@ def _real_extract(self, url):

class CBCGemIE(InfoExtractor):
IE_NAME = 'gem.cbc.ca'
_VALID_URL = r'https?://gem\.cbc\.ca/media/(?P<id>[0-9a-z-]+/s[0-9]+[a-z][0-9]+)'
_VALID_URL = r'https?://gem\.cbc\.ca/(?:media/)?(?P<id>[0-9a-z-]+/s[0-9]+[a-z][0-9]+)'
_TESTS = [{
# This is a normal, public, TV show video
'url': 'https://gem.cbc.ca/media/schitts-creek/s06e01',
Expand Down Expand Up @@ -245,6 +245,9 @@ class CBCGemIE(InfoExtractor):
},
'params': {'format': 'bv'},
'skip': 'Geo-restricted to Canada',
}, {
'url': 'https://gem.cbc.ca/nadiyas-family-favourites/s01e01',
'only_matching': True,
}]

_GEO_COUNTRIES = ['CA']
Expand Down

0 comments on commit 96f5d29

Please sign in to comment.