[youtube] Fix episode metadata extraction

This commit is contained in:
coletdjnz 2022-04-15 16:22:03 +12:00
parent 583910682f
commit affc4fefea
No known key found for this signature in database
GPG key ID: 91984263BB39894A

View file

@ -3618,7 +3618,7 @@ def process_language(container, base_url, lang_code, sub_name, query):
lambda x: x['superTitleIcon']['iconType']) == 'LOCATION_PIN': lambda x: x['superTitleIcon']['iconType']) == 'LOCATION_PIN':
info['location'] = stl info['location'] = stl
else: else:
mobj = re.search(r'(.+?)\s*S(\d+)\s*•\s*E(\d+)', stl) mobj = re.search(r'(.+?)\s*S(\d+)\s*•?\s*E(\d+)', stl)
if mobj: if mobj:
info.update({ info.update({
'series': mobj.group(1), 'series': mobj.group(1),