소스 검색

[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)
Yen Chi Hsuan 9 년 전
부모
커밋
a956cb6306
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      youtube_dl/extractor/onionstudios.py

+ 1 - 1
youtube_dl/extractor/onionstudios.py

@@ -65,7 +65,7 @@ class OnionStudiosIE(InfoExtractor):
             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',