X-Git-Url: http://git.cielonegro.org/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=youtube_dl%2Fextractor%2Fonionstudios.py;h=0f1f448fe3126670932b371498b73b0bf0a7924e;hb=c725e2c8b038307723a890db19f21176722a1fe7;hp=8fa507dec7e3b8fc0e48bc679d03192a2cc63bf4;hpb=533b99fbf9e0961076798c21bfb9fd320363c2dc;p=youtube-dl.git
diff --git a/youtube_dl/extractor/onionstudios.py b/youtube_dl/extractor/onionstudios.py
index 8fa507dec..0f1f448fe 100644
--- a/youtube_dl/extractor/onionstudios.py
+++ b/youtube_dl/extractor/onionstudios.py
@@ -49,19 +49,21 @@ class OnionStudiosIE(InfoExtractor):
self._sort_formats(formats)
title = self._search_regex(
- r'share_title\s*=\s*"([^"]+)"', webpage, 'title')
+ r'share_title\s*=\s*(["\'])(?P
[^\1]+?)\1',
+ webpage, 'title', group='title')
description = self._search_regex(
- r'share_description\s*=\s*"([^"]+)"', webpage,
- 'description', default=None)
+ r'share_description\s*=\s*(["\'])(?P[^\1]+?)\1',
+ webpage, 'description', default=None, group='description')
thumbnail = self._search_regex(
- r'poster="([^"]+)"', webpage, 'thumbnail', default=False)
+ r'poster\s*=\s*(["\'])(?P[^\1]+?)\1',
+ webpage, 'thumbnail', default=False, group='thumbnail')
uploader_id = self._search_regex(
- r'twitter_handle\s*=\s*"([^"]+)"',
- webpage, 'uploader id', fatal=False)
+ r'twitter_handle\s*=\s*(["\'])(?P[^\1]+?)\1',
+ webpage, 'uploader id', fatal=False, group='uploader_id')
uploader = self._search_regex(
- r'window\.channelName\s*=\s*"Embedded:([^"]+)"',
- webpage, 'uploader', default=False)
+ r'window\.channelName\s*=\s*(["\'])Embedded:(?P[^\1]+?)\1',
+ webpage, 'uploader', default=False, group='uploader')
return {
'id': video_id,