From c3904b5cc5b7e8020b615a93f3ee1a473c588f21 Mon Sep 17 00:00:00 2001 From: Parmjit Virk Date: Mon, 27 Aug 2018 16:36:37 -0500 Subject: [PATCH 1/2] [Bandcamp] Added track number for metadata --- youtube_dl/extractor/bandcamp.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/youtube_dl/extractor/bandcamp.py b/youtube_dl/extractor/bandcamp.py index b8514734d..b7cf91944 100644 --- a/youtube_dl/extractor/bandcamp.py +++ b/youtube_dl/extractor/bandcamp.py @@ -44,6 +44,15 @@ class BandcampIE(InfoExtractor): 'title': 'Ben Prunty - Lanius (Battle)', 'uploader': 'Ben Prunty', }, + }, { + 'url': 'https://relapsealumni.bandcamp.com/track/hail-to-fire', + 'md5': 'fec12ff55e804bb7f7ebeb77a800c8b7', + 'info_dict': { + 'id': '2584466013', + 'ext': 'mp3', + 'title': 'Hail to Fire', + 'track_number': 5, + }, }] def _real_extract(self, url): @@ -82,6 +91,7 @@ class BandcampIE(InfoExtractor): 'thumbnail': thumbnail, 'formats': formats, 'duration': float_or_none(data.get('duration')), + 'track_number': int_or_none(data.get('track_num')), } else: raise ExtractorError('No free songs found') From 11c62ed5eb4b8c7966817648c1916cf67cc681e6 Mon Sep 17 00:00:00 2001 From: Sergey M Date: Fri, 31 Aug 2018 02:31:38 +0700 Subject: [PATCH 2/2] Update bandcamp.py --- youtube_dl/extractor/bandcamp.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/youtube_dl/extractor/bandcamp.py b/youtube_dl/extractor/bandcamp.py index b7cf91944..bc4c5165a 100644 --- a/youtube_dl/extractor/bandcamp.py +++ b/youtube_dl/extractor/bandcamp.py @@ -46,13 +46,15 @@ class BandcampIE(InfoExtractor): }, }, { 'url': 'https://relapsealumni.bandcamp.com/track/hail-to-fire', - 'md5': 'fec12ff55e804bb7f7ebeb77a800c8b7', 'info_dict': { 'id': '2584466013', 'ext': 'mp3', 'title': 'Hail to Fire', 'track_number': 5, }, + 'params': { + 'skip_download': True, + }, }] def _real_extract(self, url):