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:
parent
f43cf3a3d3
commit
85e170e542
@ -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'))
|
||||
|
Loading…
Reference in New Issue
Block a user