0
0
Fork 0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-12-29 01:51:06 +00:00

[sztvhu] Fix the title extraction

This commit is contained in:
Jaime Marquínez Ferrándiz 2013-10-15 08:22:59 +02:00
parent e772692ffd
commit 9d74e308f7

View file

@ -25,7 +25,7 @@ def _real_extract(self, url):
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="([^"]*)"/>',