aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2019-02-11 04:39:23 +0700
committerSergey M․ <dstftw@gmail.com>2019-02-11 04:39:23 +0700
commitd777f3e81c5f9f6c7be39586703f1f076a2025a9 (patch)
treebc3e745bffeba9c5854881d6164c95d66e722848
parent4c0e0dc9dc13d53a334f75f7d7b9073f79a2dfc0 (diff)
[tvplayhome] Fix episode metadata extraction (closes #19190)
-rw-r--r--youtube_dl/extractor/tvplay.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/youtube_dl/extractor/tvplay.py b/youtube_dl/extractor/tvplay.py
index 8f1ff3b76..7c07b26bc 100644
--- a/youtube_dl/extractor/tvplay.py
+++ b/youtube_dl/extractor/tvplay.py
@@ -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))