[tnaflix] Added handling of embedded videos
This commit is contained in:
parent
2ff7cbeaaa
commit
2d5ed3c27f
@ -55,7 +55,6 @@ from .snagfilms import SnagFilmsEmbedIE
|
|||||||
from .screenwavemedia import ScreenwaveMediaIE
|
from .screenwavemedia import ScreenwaveMediaIE
|
||||||
from .mtv import MTVServicesEmbeddedIE
|
from .mtv import MTVServicesEmbeddedIE
|
||||||
|
|
||||||
|
|
||||||
class GenericIE(InfoExtractor):
|
class GenericIE(InfoExtractor):
|
||||||
IE_DESC = 'Generic downloader that works on some sites'
|
IE_DESC = 'Generic downloader that works on some sites'
|
||||||
_VALID_URL = r'.*'
|
_VALID_URL = r'.*'
|
||||||
@ -1045,6 +1044,19 @@ class GenericIE(InfoExtractor):
|
|||||||
'description': 'Tabletop: Dread, Last Thoughts',
|
'description': 'Tabletop: Dread, Last Thoughts',
|
||||||
'duration': 51690,
|
'duration': 51690,
|
||||||
},
|
},
|
||||||
|
},
|
||||||
|
# tnaflix embed
|
||||||
|
{
|
||||||
|
'url': 'http://fantasti.cc/watch/9358999/Glam-euro-lesbians-get-off/',
|
||||||
|
'info_dict': {
|
||||||
|
'id': '635797',
|
||||||
|
'ext': 'mp4',
|
||||||
|
'title': 'Glam euro lesbians get off',
|
||||||
|
'description': 'Glam euro lesbians get off with fetish hitachi magic wands action',
|
||||||
|
'duration': 324,
|
||||||
|
'age_limit': 18,
|
||||||
|
'uploader': 'mariac895',
|
||||||
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
||||||
@ -1778,6 +1790,13 @@ class GenericIE(InfoExtractor):
|
|||||||
self._proto_relative_url(unescapeHTML(mobj.group(1))),
|
self._proto_relative_url(unescapeHTML(mobj.group(1))),
|
||||||
'AdobeTVVideo')
|
'AdobeTVVideo')
|
||||||
|
|
||||||
|
# Look for embedded tnaflix player
|
||||||
|
tnaflix_urls = [url for url in re.findall(
|
||||||
|
r'(?P<url>https?://(?:www\.)?tnaflix\.com/[^/]+/[^/]+/video\d+)',
|
||||||
|
webpage)]
|
||||||
|
if tnaflix_urls:
|
||||||
|
return _playlist_from_matches(tnaflix_urls, ie='TNAFlix')
|
||||||
|
|
||||||
def check_video(vurl):
|
def check_video(vurl):
|
||||||
if YoutubeIE.suitable(vurl):
|
if YoutubeIE.suitable(vurl):
|
||||||
return True
|
return True
|
||||||
|
Loading…
x
Reference in New Issue
Block a user