From: Remita Amine Date: Wed, 27 Mar 2019 17:01:51 +0000 (+0100) Subject: [cwtv] fix episode number extraction(closes #20461) X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=de74ef83b786daad1b3df738734ca81ce3344667;p=youtube-dl [cwtv] fix episode number extraction(closes #20461) --- diff --git a/youtube_dl/extractor/cwtv.py b/youtube_dl/extractor/cwtv.py index f9bd535f6..73382431b 100644 --- a/youtube_dl/extractor/cwtv.py +++ b/youtube_dl/extractor/cwtv.py @@ -79,7 +79,7 @@ class CWTVIE(InfoExtractor): season = str_or_none(video_data.get('season')) episode = str_or_none(video_data.get('episode')) if episode and season: - episode = episode.lstrip(season) + episode = episode[len(season):] return { '_type': 'url_transparent',