mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-21 20:46:36 -05:00
[cwtv] fix episode number extraction(closes #20461)
This commit is contained in:
parent
8cb10807ed
commit
de74ef83b7
1 changed files with 1 additions and 1 deletions
|
@ -79,7 +79,7 @@ def _real_extract(self, url):
|
||||||
season = str_or_none(video_data.get('season'))
|
season = str_or_none(video_data.get('season'))
|
||||||
episode = str_or_none(video_data.get('episode'))
|
episode = str_or_none(video_data.get('episode'))
|
||||||
if episode and season:
|
if episode and season:
|
||||||
episode = episode.lstrip(season)
|
episode = episode[len(season):]
|
||||||
|
|
||||||
return {
|
return {
|
||||||
'_type': 'url_transparent',
|
'_type': 'url_transparent',
|
||||||
|
|
Loading…
Reference in a new issue