mirror of
https://github.com/blackjack4494/yt-dlc.git
synced 2024-12-21 15:23:13 +00:00
[Twitter/t.co] simple extractor added. modification needed.
This commit is contained in:
parent
d8f97cc1d3
commit
86b868c6a5
2 changed files with 9 additions and 0 deletions
|
@ -1268,6 +1268,7 @@ from .twitter import (
|
|||
TwitterIE,
|
||||
TwitterAmplifyIE,
|
||||
TwitterBroadcastIE,
|
||||
TwitterShortenerIE,
|
||||
)
|
||||
from .udemy import (
|
||||
UdemyIE,
|
||||
|
|
|
@ -608,3 +608,11 @@ class TwitterBroadcastIE(TwitterBaseIE, PeriscopeBaseIE):
|
|||
info['formats'] = self._extract_pscp_m3u8_formats(
|
||||
m3u8_url, broadcast_id, m3u8_id, state, width, height)
|
||||
return info
|
||||
|
||||
|
||||
class TwitterShortenerIE(TwitterBaseIE):
|
||||
IE_NAME = 'twitter:shortener'
|
||||
_VALID_URL = r'https?://t.co/'
|
||||
|
||||
def _real_extract(self, url):
|
||||
print(url)
|
Loading…
Reference in a new issue