1
0
mirror of https://github.com/l1ving/youtube-dl synced 2025-03-10 06:09:59 +08:00

[Manyvids] Fix title search (#18604)

This commit is contained in:
yonaikerlol 2018-12-22 17:15:41 -04:00 committed by GitHub
parent e1a0628797
commit 31820d477b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -28,8 +28,8 @@ class ManyVidsIE(InfoExtractor):
r'data-(?:video-filepath|meta-video)\s*=s*(["\'])(?P<url>(?:(?!\1).)+)\1',
webpage, 'video URL', group='url')
title = '%s (Preview)' % self._html_search_regex(
r'<h2[^>]+class="m-a-0"[^>]*>([^<]+)', webpage, 'title')
title = '%s' % self._html_search_regex(
r'<span[^>]+class="item-title"[^>]*>([^<]+)', webpage, 'title')
like_count = int_or_none(self._search_regex(
r'data-likes=["\'](\d+)', webpage, 'like count', default=None))