From 85e170e542128840fd8f104de2bfbc1bdc15d38a Mon Sep 17 00:00:00 2001 From: Lyz Date: Fri, 25 Oct 2019 14:17:47 +0200 Subject: [PATCH] WIP: update mr --- youtube_dl/extractor/bandcamp.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/youtube_dl/extractor/bandcamp.py b/youtube_dl/extractor/bandcamp.py index 102339334..2a4291715 100644 --- a/youtube_dl/extractor/bandcamp.py +++ b/youtube_dl/extractor/bandcamp.py @@ -115,12 +115,15 @@ class BandcampIE(InfoExtractor): track_number = int_or_none(track_info.get('track_num')) duration = float_or_none(track_info.get('duration')) + # r'\b%s\s*["\']?\s*:\s*(["\'])(?P(?:(?!\1).)+)\1' % key, def extract(key): return self._search_regex( - r'\b%s\s*["\']?\s*:\s*(["\'])(?P(?:(?!\1).)+)\1' % key, + r'\b%s\s*["\']?\s*:\s*(["\'])(?P.+)\1' % key, webpage, key, default=None, group='value') + import pdb; pdb.set_trace() # XXX BREAKPOINT artist = extract('artist') + album = extract('album_title') timestamp = unified_timestamp( extract('publish_date') or extract('album_publish_date'))