1
0
Fork 0
mirror of https://gitlab.com/dstftw/youtube-dl.git synced 2020-11-16 09:42:26 +00:00

[cwtv] fix episode number extraction(closes #20461)

This commit is contained in:
Remita Amine 2019-03-27 18:01:51 +01:00
parent 8cb10807ed
commit de74ef83b7

View file

@ -79,7 +79,7 @@ class CWTVIE(InfoExtractor):
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',