mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-03 08:19:57 +01:00
[generic] Extract Instagram embeds (#8817)
This commit is contained in:
parent
87696e78d7
commit
5a51775a58
@ -59,6 +59,7 @@
|
|||||||
from .googledrive import GoogleDriveIE
|
from .googledrive import GoogleDriveIE
|
||||||
from .jwplatform import JWPlatformIE
|
from .jwplatform import JWPlatformIE
|
||||||
from .digiteka import DigitekaIE
|
from .digiteka import DigitekaIE
|
||||||
|
from .instagram import InstagramIE
|
||||||
|
|
||||||
|
|
||||||
class GenericIE(InfoExtractor):
|
class GenericIE(InfoExtractor):
|
||||||
@ -1917,6 +1918,11 @@ def _playlist_from_matches(matches, getter=None, ie=None):
|
|||||||
return self.url_result(
|
return self.url_result(
|
||||||
self._proto_relative_url(unescapeHTML(mobj.group(1))), 'Vine')
|
self._proto_relative_url(unescapeHTML(mobj.group(1))), 'Vine')
|
||||||
|
|
||||||
|
# Look for Instagram embeds
|
||||||
|
instagram_embed_url = InstagramIE._extract_embed_url(webpage)
|
||||||
|
if instagram_embed_url is not None:
|
||||||
|
return self.url_result(instagram_embed_url, InstagramIE.ie_key())
|
||||||
|
|
||||||
def check_video(vurl):
|
def check_video(vurl):
|
||||||
if YoutubeIE.suitable(vurl):
|
if YoutubeIE.suitable(vurl):
|
||||||
return True
|
return True
|
||||||
|
Loading…
Reference in New Issue
Block a user