mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-12-16 00:02:43 +00:00
[tvplayhome] Fix episode metadata extraction (closes #19190)
This commit is contained in:
parent
4c0e0dc9dc
commit
d777f3e81c
1 changed files with 3 additions and 2 deletions
|
@ -537,8 +537,9 @@ class TVPlayHomeIE(InfoExtractor):
|
||||||
r'(\d+)(?:[.\s]+sezona|\s+HOOAEG)', season or '', 'season number',
|
r'(\d+)(?:[.\s]+sezona|\s+HOOAEG)', season or '', 'season number',
|
||||||
default=None))
|
default=None))
|
||||||
episode = self._search_regex(
|
episode = self._search_regex(
|
||||||
r'(["\'])(?P<value>(?:(?!\1).)+)\1', webpage, 'episode',
|
(r'\bepisode\s*:\s*(["\'])(?P<value>(?:(?!\1).)+)\1',
|
||||||
default=None, group='value')
|
r'data-subtitle\s*=\s*(["\'])(?P<value>(?:(?!\1).)+)\1'), webpage,
|
||||||
|
'episode', default=None, group='value')
|
||||||
episode_number = int_or_none(self._search_regex(
|
episode_number = int_or_none(self._search_regex(
|
||||||
r'(?:S[eē]rija|Osa)\s+(\d+)', episode or '', 'episode number',
|
r'(?:S[eē]rija|Osa)\s+(\d+)', episode or '', 'episode number',
|
||||||
default=None))
|
default=None))
|
||||||
|
|
Loading…
Reference in a new issue