]> jfr.im git - yt-dlp.git/blobdiff - yt_dlp/extractor/youtube.py
[youtube] Fix episode metadata extraction
[yt-dlp.git] / yt_dlp / extractor / youtube.py
index dee1b23150e7f526c62582f1cc5a6f8f24f1f099..43123094808acb76b0418deb160e2eac6cef4fd9 100644 (file)
@@ -3618,7 +3618,7 @@ def process_language(container, base_url, lang_code, sub_name, query):
                         lambda x: x['superTitleIcon']['iconType']) == 'LOCATION_PIN':
                     info['location'] = stl
                 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:
                         info.update({
                             'series': mobj.group(1),