Update bandcamp.py

This commit is contained in:
Tombaysbot 2020-12-31 02:37:03 +03:00 committed by GitHub
parent 027130a45a
commit adadb7e3a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,7 +6,7 @@ from ..common import *
def bandcamp_download(url, output_dir='.', merge=True, info_only=False, **kwargs):
html = get_html(url)
trackinfo = json.loads(r1(r'(\[{"(video_poster_url|video_caption)".*}\]),', html))
trackinfo = json.loads(r1(r'(\[{"(video_poster_url|video_caption)".*}\]),', html)) #here is an issue that i can't fix
for track in trackinfo:
track_num = track['track_num']
title = '%s. %s' % (track_num, track['title'])