diff options
author | insaneracist <insaneracist@cyberdude.com> | 2020-10-28 08:12:58 -0700 |
---|---|---|
committer | insaneracist <insaneracist@cyberdude.com> | 2020-10-28 08:12:58 -0700 |
commit | ccec6955f34ce9933e48562e8538bbf98247c050 (patch) | |
tree | 4b4bad39744e78a7fdde9d4db2c94efc2b632ed3 /youtube_dlc/extractor/bandcamp.py | |
parent | cf553deceb0e4d8f1fa6c66a7eabfe9a0f04343c (diff) | |
download | hypervideo-pre-ccec6955f34ce9933e48562e8538bbf98247c050.tar.lz hypervideo-pre-ccec6955f34ce9933e48562e8538bbf98247c050.tar.xz hypervideo-pre-ccec6955f34ce9933e48562e8538bbf98247c050.zip |
[bandcamp] fix failing test. remove subclass hack
Diffstat (limited to 'youtube_dlc/extractor/bandcamp.py')
-rw-r--r-- | youtube_dlc/extractor/bandcamp.py | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/youtube_dlc/extractor/bandcamp.py b/youtube_dlc/extractor/bandcamp.py index dbf96f33d..7d29481c0 100644 --- a/youtube_dlc/extractor/bandcamp.py +++ b/youtube_dlc/extractor/bandcamp.py @@ -236,15 +236,6 @@ class BandcampIE(BandcampBaseIE): } -class BandcampAlbumTrackIE(BandcampIE): - IE_NAME = "Bandcamp:albumtrack" - """Hack class to force album downloads to have prefixed track numbers by default""" - def _real_extract(self, url): - data = super()._real_extract(url) - data['title'] = '{:02d} - {} - {}'.format(data['track_number'], data['artist'], data['track']) - return data - - class BandcampAlbumIE(BandcampBaseIE): IE_NAME = 'Bandcamp:album' _VALID_URL = r'https?://(?:(?P<subdomain>[^.]+)\.)?bandcamp\.com(?:/album/(?P<album_id>[^/?#&]+))?' @@ -341,7 +332,7 @@ class BandcampAlbumIE(BandcampBaseIE): entries = [ self.url_result( compat_urlparse.urljoin(url, track['title_link']), - ie=BandcampAlbumTrackIE.ie_key(), + ie=BandcampIE.ie_key(), video_title=track['title']) for track in tracks if track.get('duration')] |