1
0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2025-02-05 01:29:48 +00:00

remove show name from URL

CBS no longer uses the show name after `shows` in the URL. Format is:

cbs.com/shows/video/ID
This is the current season of Big Brother episode 24:
https://www.cbs.com/shows/video/GdZlRWQ9xaxkOmx573U_ZhuSl_nfBqFw/
This commit is contained in:
Brad Terpstra 2022-08-31 14:51:47 -04:00
parent ed5c44e7b7
commit e2bc44054a

View File

@ -27,7 +27,7 @@ class CBSBaseIE(ThePlatformFeedIE):
class CBSIE(CBSBaseIE):
_VALID_URL = r'(?:cbs:|https?://(?:www\.)?(?:(?:cbs|paramountplus)\.com/shows/[^/]+/video|colbertlateshow\.com/(?:video|podcasts))/)(?P<id>[\w-]+)'
_VALID_URL = r'(?:cbs:|https?://(?:www\.)?(?:(?:cbs|paramountplus)\.com/shows/video|colbertlateshow\.com/(?:video|podcasts))/)(?P<id>[\w-]+)'
_TESTS = [{
'url': 'http://www.cbs.com/shows/garth-brooks/video/_u7W953k6la293J7EPTd9oHkSPs6Xn6_/connect-chat-feat-garth-brooks/',