0
0
Fork 0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-11-04 23:35:04 +00:00

[onionstudios] Fix description extraction

\1 does not work in []. Fixes test_Generic_75
(http://www.clickhole.com/video/dont-understand-bitcoin-man-will-mumble-explanatio-2537)
This commit is contained in:
Yen Chi Hsuan 2016-04-24 20:41:17 +08:00
parent a8062eabcd
commit a956cb6306
No known key found for this signature in database
GPG key ID: 3FDDD575826C5C30

View file

@ -65,7 +65,7 @@ def _real_extract(self, url):
r'share_title\s*=\s*(["\'])(?P<title>[^\1]+?)\1', r'share_title\s*=\s*(["\'])(?P<title>[^\1]+?)\1',
webpage, 'title', group='title') webpage, 'title', group='title')
description = self._search_regex( description = self._search_regex(
r'share_description\s*=\s*(["\'])(?P<description>[^\1]+?)\1', r'share_description\s*=\s*(["\'])(?P<description>[^\'"]+?)\1',
webpage, 'description', default=None, group='description') webpage, 'description', default=None, group='description')
thumbnail = self._search_regex( thumbnail = self._search_regex(
r'poster\s*=\s*(["\'])(?P<thumbnail>[^\1]+?)\1', r'poster\s*=\s*(["\'])(?P<thumbnail>[^\1]+?)\1',