mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-06-22 23:46:50 +02:00
[extractor/GoogleDrive] Add more supported types
We import those from the Youtube extractor, and also add: '50':'mp3', for mp3 files scrapping. Fix: #8281
This commit is contained in:
parent
4cc99d7b6c
commit
5a0ddf296b
|
@ -13,6 +13,7 @@
|
||||||
try_get,
|
try_get,
|
||||||
update_url_query,
|
update_url_query,
|
||||||
)
|
)
|
||||||
|
from .youtube import YoutubeIE
|
||||||
|
|
||||||
|
|
||||||
class GoogleDriveIE(InfoExtractor):
|
class GoogleDriveIE(InfoExtractor):
|
||||||
|
@ -58,22 +59,8 @@ class GoogleDriveIE(InfoExtractor):
|
||||||
'only_matching': True,
|
'only_matching': True,
|
||||||
}]
|
}]
|
||||||
_FORMATS_EXT = {
|
_FORMATS_EXT = {
|
||||||
'5': 'flv',
|
**{k: v['ext'] for k, v in YoutubeIE._formats.items() if v.get('ext')},
|
||||||
'6': 'flv',
|
'50': 'mp3',
|
||||||
'13': '3gp',
|
|
||||||
'17': '3gp',
|
|
||||||
'18': 'mp4',
|
|
||||||
'22': 'mp4',
|
|
||||||
'34': 'flv',
|
|
||||||
'35': 'flv',
|
|
||||||
'36': '3gp',
|
|
||||||
'37': 'mp4',
|
|
||||||
'38': 'mp4',
|
|
||||||
'43': 'webm',
|
|
||||||
'44': 'webm',
|
|
||||||
'45': 'webm',
|
|
||||||
'46': 'webm',
|
|
||||||
'59': 'mp4',
|
|
||||||
}
|
}
|
||||||
_BASE_URL_CAPTIONS = 'https://drive.google.com/timedtext'
|
_BASE_URL_CAPTIONS = 'https://drive.google.com/timedtext'
|
||||||
_CAPTIONS_ENTRY_TAG = {
|
_CAPTIONS_ENTRY_TAG = {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user