aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRemita Amine <remitamine@gmail.com>2019-03-27 18:01:51 +0100
committerRemita Amine <remitamine@gmail.com>2019-03-27 18:01:51 +0100
commitde74ef83b786daad1b3df738734ca81ce3344667 (patch)
tree063d170801369afda783bb86eebd12db2ee35d2a
parent8cb10807ed6c6aa8e0f316b3f1a31a91df46abdb (diff)
[cwtv] fix episode number extraction(closes #20461)
-rw-r--r--youtube_dl/extractor/cwtv.py2
1 files changed, 1 insertions, 1 deletions
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',