import re
+from .common import InfoExtractor
from ..utils import (
ExtractorError,
clean_html,
smuggle_url,
traverse_obj,
try_call,
- unsmuggle_url
+ unsmuggle_url,
)
-from .common import InfoExtractor
def _parse_japanese_date(text):
mobj = re.search(r'(?:(\d+)日間?)?(?:(\d+)時間?)?(?:(\d+)分)?(?:(\d+)秒)?', re.sub(r'[\s\u3000]+', '', text or ''))
if not mobj:
return
- days, hours, mins, secs = [int_or_none(x, default=0) for x in mobj.groups()]
+ days, hours, mins, secs = (int_or_none(x, default=0) for x in mobj.groups())
return secs + mins * 60 + hours * 60 * 60 + days * 24 * 60 * 60
'title': 'ウクライナ大統領国会演説(オンライン)',
'release_date': '20220323',
'chapters': 'count:4',
- }
+ },
}, {
'url': 'https://www.shugiintv.go.jp/en/index.php?ex=VL&media_type=&deli_id=53846',
- 'only_matching': True
+ 'only_matching': True,
}]
def _real_extract(self, url):
'is_live': True,
},
'skip': 'this live is turned into archive after it ends',
- }, ]
+ }]
def _real_extract(self, url):
video_id = self._match_id(url)