From efad43c197775eb3ef30b048c8d7b83c1ccbb57c Mon Sep 17 00:00:00 2001 From: Jastrab Date: Sun, 16 Jan 2022 11:15:15 +0100 Subject: [PATCH] [joj] Fixed extractor --- youtube_dl/extractor/joj.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/youtube_dl/extractor/joj.py b/youtube_dl/extractor/joj.py index 28469d185..fb9c4393d 100644 --- a/youtube_dl/extractor/joj.py +++ b/youtube_dl/extractor/joj.py @@ -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(