Explorar o código

[sztvhu] Fix the title extraction

Jaime Marquínez Ferrándiz %!s(int64=12) %!d(string=hai) anos
pai
achega
9d74e308f7
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      youtube_dl/extractor/sztvhu.py

+ 1 - 1
youtube_dl/extractor/sztvhu.py

@@ -25,7 +25,7 @@ class SztvHuIE(InfoExtractor):
         video_file = self._search_regex(
             r'file: "...:(.*?)",', webpage, 'video file')
         title = self._html_search_regex(
-            r'<meta name="title" content="([^"]*) - [^-]*"',
+            r'<meta name="title" content="([^"]*?) - [^-]*? - [^-]*?"',
             webpage, 'video title')
         description = self._html_search_regex(
             r'<meta name="description" content="([^"]*)"/>',