From de74ef83b786daad1b3df738734ca81ce3344667 Mon Sep 17 00:00:00 2001 From: Remita Amine Date: Wed, 27 Mar 2019 18:01:51 +0100 Subject: [cwtv] fix episode number extraction(closes #20461) --- youtube_dl/extractor/cwtv.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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', -- cgit v1.2.3