mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-30 03:33:02 +00:00
[sockshare] Fix title extraction (Fixes #3592)
This commit is contained in:
parent
8f1ea7cbb6
commit
6abb066128
1 changed files with 4 additions and 1 deletions
|
@ -61,7 +61,10 @@ def _real_extract(self, url):
|
||||||
r'<a href="([^"]*)".+class="download_file_link"',
|
r'<a href="([^"]*)".+class="download_file_link"',
|
||||||
webpage, 'file url')
|
webpage, 'file url')
|
||||||
video_url = "http://www.sockshare.com" + video_url
|
video_url = "http://www.sockshare.com" + video_url
|
||||||
title = self._html_search_regex(r'<h1>(.+)<strong>', webpage, 'title')
|
title = self._html_search_regex((
|
||||||
|
r'<h1>(.+)<strong>',
|
||||||
|
r'var name = "([^"]+)";'),
|
||||||
|
webpage, 'title', default=None)
|
||||||
thumbnail = self._html_search_regex(
|
thumbnail = self._html_search_regex(
|
||||||
r'<img\s+src="([^"]*)".+?name="bg"',
|
r'<img\s+src="([^"]*)".+?name="bg"',
|
||||||
webpage, 'thumbnail')
|
webpage, 'thumbnail')
|
||||||
|
|
Loading…
Reference in a new issue