0
0
Fork 0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-11-26 02:55:17 +00:00

[tvplayhome] Fix episode metadata extraction (closes #19190)

This commit is contained in:
Sergey M․ 2019-02-11 04:39:23 +07:00
parent 4c0e0dc9dc
commit d777f3e81c
No known key found for this signature in database
GPG key ID: 2C393E0F18A9236D

View file

@ -537,8 +537,9 @@ def _real_extract(self, url):
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))