mirror of
https://github.com/ytdl-org/ytdl-nightly.git
synced 2025-06-05 21:49:13 +02:00
[Twitter/t.co] simple extractor added. modification needed.
This commit is contained in:
@@ -1268,6 +1268,7 @@ from .twitter import (
|
|||||||
TwitterIE,
|
TwitterIE,
|
||||||
TwitterAmplifyIE,
|
TwitterAmplifyIE,
|
||||||
TwitterBroadcastIE,
|
TwitterBroadcastIE,
|
||||||
|
TwitterShortenerIE,
|
||||||
)
|
)
|
||||||
from .udemy import (
|
from .udemy import (
|
||||||
UdemyIE,
|
UdemyIE,
|
||||||
|
@@ -608,3 +608,11 @@ class TwitterBroadcastIE(TwitterBaseIE, PeriscopeBaseIE):
|
|||||||
info['formats'] = self._extract_pscp_m3u8_formats(
|
info['formats'] = self._extract_pscp_m3u8_formats(
|
||||||
m3u8_url, broadcast_id, m3u8_id, state, width, height)
|
m3u8_url, broadcast_id, m3u8_id, state, width, height)
|
||||||
return info
|
return info
|
||||||
|
|
||||||
|
|
||||||
|
class TwitterShortenerIE(TwitterBaseIE):
|
||||||
|
IE_NAME = 'twitter:shortener'
|
||||||
|
_VALID_URL = r'https?://t.co/'
|
||||||
|
|
||||||
|
def _real_extract(self, url):
|
||||||
|
print(url)
|
Reference in New Issue
Block a user