]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[ivi] Fix episode number extraction
authorSergey M․ <dstftw@gmail.com>
Sun, 21 Aug 2016 20:34:27 +0000 (03:34 +0700)
committerSergey M․ <dstftw@gmail.com>
Sun, 21 Aug 2016 20:34:27 +0000 (03:34 +0700)
youtube_dl/extractor/ivi.py

index f5ab5f4af7d63f9dad52b8bd34fa130835d7ab17..7c8cb21c2c5619b4809f5daf8605958a808eccb9 100644 (file)
@@ -132,7 +132,7 @@ class IviIE(InfoExtractor):
             webpage, 'season number', default=None))
 
         episode_number = int_or_none(self._search_regex(
-            r'<meta[^>]+itemprop="episode"[^>]*>\s*<meta[^>]+itemprop="episodeNumber"[^>]+content="(\d+)',
+            r'[^>]+itemprop="episode"[^>]*>\s*<meta[^>]+itemprop="episodeNumber"[^>]+content="(\d+)',
             webpage, 'episode number', default=None))
 
         description = self._og_search_description(webpage, default=None) or self._html_search_meta(