]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[cwtv] fix episode number extraction(closes #20461)
authorRemita Amine <remitamine@gmail.com>
Wed, 27 Mar 2019 17:01:51 +0000 (18:01 +0100)
committerRemita Amine <remitamine@gmail.com>
Wed, 27 Mar 2019 17:01:51 +0000 (18:01 +0100)
youtube_dl/extractor/cwtv.py

index f9bd535f6d228b137b78e90a765f1042c0f5c925..73382431b7c8dccf35d118b5506bfb38b29a9804 100644 (file)
@@ -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',