[tvplayhome] Fix episode metadata extraction (closes #19190)
authorSergey M․ <dstftw@gmail.com>
Sun, 10 Feb 2019 21:39:23 +0000 (04:39 +0700)
committerSergey M․ <dstftw@gmail.com>
Sun, 10 Feb 2019 21:39:23 +0000 (04:39 +0700)
youtube_dl/extractor/tvplay.py

index 8f1ff3b761d8bd6e21ee4f122e1ed62fbabd2d78..7c07b26bc0ef3f3dda987ef32296145cf203870c 100644 (file)
@@ -537,8 +537,9 @@ class TVPlayHomeIE(InfoExtractor):
             r'(\d+)(?:[.\s]+sezona|\s+HOOAEG)', season or '', 'season number',
             default=None))
         episode = self._search_regex(
-            r'(["\'])(?P<value>(?:(?!\1).)+)\1', webpage, 'episode',
-            default=None, group='value')
+            (r'\bepisode\s*:\s*(["\'])(?P<value>(?:(?!\1).)+)\1',
+             r'data-subtitle\s*=\s*(["\'])(?P<value>(?:(?!\1).)+)\1'), webpage,
+            'episode', default=None, group='value')
         episode_number = int_or_none(self._search_regex(
             r'(?:S[eē]rija|Osa)\s+(\d+)', episode or '', 'episode number',
             default=None))