]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[animeondemand] Expand episode title regex (Closes #8875)
authorSergey M․ <dstftw@gmail.com>
Thu, 17 Mar 2016 17:43:14 +0000 (23:43 +0600)
committerSergey M․ <dstftw@gmail.com>
Thu, 17 Mar 2016 17:43:14 +0000 (23:43 +0600)
youtube_dl/extractor/animeondemand.py

index a7d8daf7b4788bbaff020ccfca1ed7ba46e5d6f8..3dbbe2a6246da44b25b7b51b0abf9ee365ee60cc 100644 (file)
@@ -93,7 +93,7 @@ class AnimeOnDemandIE(InfoExtractor):
 
         for episode_html in re.findall(r'(?s)<h3[^>]+class="episodebox-title".+?>Episodeninhalt<', webpage):
             m = re.search(
-                r'class="episodebox-title"[^>]+title="Episode (?P<number>\d+) - (?P<title>.+?)"', episode_html)
+                r'class="episodebox-title"[^>]+title="(?:Episode|Film)\s*(?P<number>\d+)\s*-\s*(?P<title>.+?)"', episode_html)
             if not m:
                 continue