mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-07-20 12:18:29 +00:00
only smuggle when track has track_license_id set
This commit is contained in:
parent
349b87f563
commit
e0c545b145
@ -368,12 +368,17 @@ def _real_extract(self, url):
|
|||||||
if not track_info:
|
if not track_info:
|
||||||
raise ExtractorError('The page doesn\'t contain any tracks')
|
raise ExtractorError('The page doesn\'t contain any tracks')
|
||||||
# Only tracks with duration info have songs
|
# Only tracks with duration info have songs
|
||||||
entries = [
|
entries = []
|
||||||
self.url_result(
|
for t in track_info:
|
||||||
smuggle_url(urljoin(url, t['title_link']), t), BandcampIE.ie_key(),
|
if t.get('duration'):
|
||||||
str_or_none(t.get('track_id') or t.get('id')), t.get('title'))
|
url = urljoin(url, t['title_link'])
|
||||||
for t in track_info
|
if t.get('track_license_id'):
|
||||||
if t.get('duration')]
|
# tracks with this set don't have a usable tralbum on their pages
|
||||||
|
url = smuggle_url(url, t)
|
||||||
|
entries.append(self.url_result(
|
||||||
|
url, BandcampIE.ie_key(),
|
||||||
|
str_or_none(t.get('track_id') or t.get('id')), t.get('title'),
|
||||||
|
))
|
||||||
|
|
||||||
current = tralbum.get('current') or {}
|
current = tralbum.get('current') or {}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user