Explorar o código

[xtube] Fix extraction (closes #26996)

Sergey M․ %!s(int64=5) %!d(string=hai) anos
pai
achega
2e7fa18bb9
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      youtube_dl/extractor/xtube.py

+ 1 - 1
youtube_dl/extractor/xtube.py

@@ -90,7 +90,7 @@ class XTubeIE(InfoExtractor):
         title, thumbnail, duration = [None] * 3
 
         config = self._parse_json(self._search_regex(
-            r'playerConf\s*=\s*({.+?})\s*,\s*\n', webpage, 'config',
+            r'playerConf\s*=\s*({.+?})\s*,\s*(?:\n|loaderConf)', webpage, 'config',
             default='{}'), video_id, transform_source=js_to_json, fatal=False)
         if config:
             config = config.get('mainRoll')