1
0
mirror of https://codeberg.org/polarisfm/youtube-dl synced 2024-11-25 09:54:32 +01:00

WIP: update mr

This commit is contained in:
Lyz 2019-10-25 14:17:47 +02:00
parent f43cf3a3d3
commit 85e170e542
No known key found for this signature in database
GPG Key ID: 6C7D7C1612CDE02F

View File

@ -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<value>(?:(?!\1).)+)\1' % key,
def extract(key):
return self._search_regex(
r'\b%s\s*["\']?\s*:\s*(["\'])(?P<value>(?:(?!\1).)+)\1' % key,
r'\b%s\s*["\']?\s*:\s*(["\'])(?P<value>.+)\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'))