mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-09-23 23:30:11 +00:00
[ie/skeb] Support wav files (#14147)
Some checks failed
CodeQL / Analyze (python) (push) Has been cancelled
Download Tests / Quick Download Tests (push) Has been cancelled
Download Tests / Full Download Tests (ubuntu-latest, 3.10) (push) Has been cancelled
Download Tests / Full Download Tests (ubuntu-latest, 3.11) (push) Has been cancelled
Download Tests / Full Download Tests (ubuntu-latest, 3.12) (push) Has been cancelled
Download Tests / Full Download Tests (ubuntu-latest, 3.13) (push) Has been cancelled
Download Tests / Full Download Tests (ubuntu-latest, pypy-3.11) (push) Has been cancelled
Download Tests / Full Download Tests (windows-latest, 3.9) (push) Has been cancelled
Download Tests / Full Download Tests (windows-latest, pypy-3.11) (push) Has been cancelled
Quick Test / Core Test (push) Has been cancelled
Quick Test / Code check (push) Has been cancelled
Release (master) / release (push) Has been cancelled
Release (master) / publish_pypi (push) Has been cancelled
Release (nightly) / check_nightly (push) Has been cancelled
Release (nightly) / release (push) Has been cancelled
Release (nightly) / publish_pypi (push) Has been cancelled
Some checks failed
CodeQL / Analyze (python) (push) Has been cancelled
Download Tests / Quick Download Tests (push) Has been cancelled
Download Tests / Full Download Tests (ubuntu-latest, 3.10) (push) Has been cancelled
Download Tests / Full Download Tests (ubuntu-latest, 3.11) (push) Has been cancelled
Download Tests / Full Download Tests (ubuntu-latest, 3.12) (push) Has been cancelled
Download Tests / Full Download Tests (ubuntu-latest, 3.13) (push) Has been cancelled
Download Tests / Full Download Tests (ubuntu-latest, pypy-3.11) (push) Has been cancelled
Download Tests / Full Download Tests (windows-latest, 3.9) (push) Has been cancelled
Download Tests / Full Download Tests (windows-latest, pypy-3.11) (push) Has been cancelled
Quick Test / Core Test (push) Has been cancelled
Quick Test / Code check (push) Has been cancelled
Release (master) / release (push) Has been cancelled
Release (master) / publish_pypi (push) Has been cancelled
Release (nightly) / check_nightly (push) Has been cancelled
Release (nightly) / release (push) Has been cancelled
Release (nightly) / publish_pypi (push) Has been cancelled
Closes #14146 Authored by: seproDev
This commit is contained in:
@@ -51,6 +51,20 @@ class SkebIE(InfoExtractor):
|
|||||||
},
|
},
|
||||||
'playlist_count': 2,
|
'playlist_count': 2,
|
||||||
'expected_warnings': ['Skipping unsupported extension'],
|
'expected_warnings': ['Skipping unsupported extension'],
|
||||||
|
}, {
|
||||||
|
'url': 'https://skeb.jp/@Yossshy_Music/works/13',
|
||||||
|
'info_dict': {
|
||||||
|
'ext': 'wav',
|
||||||
|
'id': '5566495',
|
||||||
|
'title': '13-1',
|
||||||
|
'description': 'md5:1026b8b9ae38c67c2d995970ec196550',
|
||||||
|
'uploader': 'Yossshy',
|
||||||
|
'uploader_id': 'Yossshy_Music',
|
||||||
|
'duration': 336,
|
||||||
|
'thumbnail': r're:https?://.+',
|
||||||
|
'tags': 'count:59',
|
||||||
|
'genres': ['music'],
|
||||||
|
},
|
||||||
}]
|
}]
|
||||||
|
|
||||||
def _call_api(self, uploader_id, work_id):
|
def _call_api(self, uploader_id, work_id):
|
||||||
@@ -87,7 +101,7 @@ class SkebIE(InfoExtractor):
|
|||||||
entries = []
|
entries = []
|
||||||
for idx, preview in enumerate(traverse_obj(works, ('previews', lambda _, v: url_or_none(v['url']))), 1):
|
for idx, preview in enumerate(traverse_obj(works, ('previews', lambda _, v: url_or_none(v['url']))), 1):
|
||||||
ext = traverse_obj(preview, ('information', 'extension', {str}))
|
ext = traverse_obj(preview, ('information', 'extension', {str}))
|
||||||
if ext not in ('mp3', 'mp4'):
|
if ext not in ('mp3', 'mp4', 'wav'):
|
||||||
self.report_warning(f'Skipping unsupported extension "{ext}"')
|
self.report_warning(f'Skipping unsupported extension "{ext}"')
|
||||||
continue
|
continue
|
||||||
|
|
||||||
@@ -100,7 +114,7 @@ class SkebIE(InfoExtractor):
|
|||||||
'url': preview['vtt_url'],
|
'url': preview['vtt_url'],
|
||||||
}],
|
}],
|
||||||
} if url_or_none(preview.get('vtt_url')) else None,
|
} if url_or_none(preview.get('vtt_url')) else None,
|
||||||
'vcodec': 'none' if ext == 'mp3' else None,
|
'vcodec': 'none' if ext in ('mp3', 'wav') else None,
|
||||||
**info,
|
**info,
|
||||||
**traverse_obj(preview, {
|
**traverse_obj(preview, {
|
||||||
'id': ('id', {str_or_none}),
|
'id': ('id', {str_or_none}),
|
||||||
|
Reference in New Issue
Block a user