Browse Source

[extractor/generic] Add support for OnionStudios embeds (Closes #5841)

totalwebcasting
Sergey M․ 10 years ago
parent
commit
1ac1c4c26e
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      youtube_dl/extractor/generic.py

+ 6
- 0
youtube_dl/extractor/generic.py View File

@ -46,6 +46,7 @@ from .pornhub import PornHubIE
from .xhamster import XHamsterEmbedIE from .xhamster import XHamsterEmbedIE
from .vimeo import VimeoIE from .vimeo import VimeoIE
from .dailymotion import DailymotionCloudIE from .dailymotion import DailymotionCloudIE
from .onionstudios import OnionStudiosIE
class GenericIE(InfoExtractor): class GenericIE(InfoExtractor):
@ -1532,6 +1533,11 @@ class GenericIE(InfoExtractor):
if dmcloud_url: if dmcloud_url:
return self.url_result(dmcloud_url, 'DailymotionCloud') return self.url_result(dmcloud_url, 'DailymotionCloud')
# Look for OnionStudios embeds
onionstudios_url = OnionStudiosIE._extract_url(webpage)
if onionstudios_url:
return self.url_result(onionstudios_url)
# Look for AdobeTVVideo embeds # Look for AdobeTVVideo embeds
mobj = re.search( mobj = re.search(
r'<iframe[^>]+src=[\'"]((?:https?:)?//video\.tv\.adobe\.com/v/\d+[^"]+)[\'"]', r'<iframe[^>]+src=[\'"]((?:https?:)?//video\.tv\.adobe\.com/v/\d+[^"]+)[\'"]',


Loading…
Cancel
Save