1
0
mirror of https://github.com/yt-dlp/yt-dlp synced 2025-12-21 08:35:40 +07:00

[mofosex] Add support for generic embeds (closes #24633)

This commit is contained in:
Sergey M․
2020-04-05 21:27:36 +07:00
parent 52c4c51556
commit 4e7b5bba5f
3 changed files with 33 additions and 1 deletions

View File

@@ -60,6 +60,7 @@
from .drtuber import DrTuberIE
from .redtube import RedTubeIE
from .tube8 import Tube8IE
from .mofosex import MofosexEmbedIE
from .spankwire import SpankwireIE
from .youporn import YouPornIE
from .vimeo import VimeoIE
@@ -2717,6 +2718,11 @@ def _real_extract(self, url):
if tube8_urls:
return self.playlist_from_matches(tube8_urls, video_id, video_title, ie=Tube8IE.ie_key())
# Look for embedded Mofosex player
mofosex_urls = MofosexEmbedIE._extract_urls(webpage)
if mofosex_urls:
return self.playlist_from_matches(mofosex_urls, video_id, video_title, ie=MofosexEmbedIE.ie_key())
# Look for embedded Spankwire player
spankwire_urls = SpankwireIE._extract_urls(webpage)
if spankwire_urls: