mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-11-21 17:51:51 +00:00
[joj] Fixed extractor
This commit is contained in:
parent
e9cb2c9f71
commit
efad43c197
1 changed files with 2 additions and 2 deletions
|
@ -74,12 +74,12 @@ class JojIE(InfoExtractor):
|
|||
for format_url in try_get(bitrates, lambda x: x['mp4'], list) or []:
|
||||
if isinstance(format_url, compat_str):
|
||||
height = self._search_regex(
|
||||
r'\-(\d+)(p|)\.', format_url, 'height', default=None)
|
||||
r'-(\d+)p?\.', format_url, 'height', default=None)
|
||||
formats.append({
|
||||
'url': format_url,
|
||||
'format_id': '%sp' % height if height else None,
|
||||
'height': int(height),
|
||||
'resolution': quality.get(str(height)+'p')
|
||||
'resolution': quality.get(compat_str(height)+'p')
|
||||
})
|
||||
if not formats:
|
||||
playlist = self._download_xml(
|
||||
|
|
Loading…
Reference in a new issue