mirror of
https://codeberg.org/polarisfm/youtube-dl
synced 2024-11-25 18:04:33 +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'))
|
track_number = int_or_none(track_info.get('track_num'))
|
||||||
duration = float_or_none(track_info.get('duration'))
|
duration = float_or_none(track_info.get('duration'))
|
||||||
|
|
||||||
|
# r'\b%s\s*["\']?\s*:\s*(["\'])(?P<value>(?:(?!\1).)+)\1' % key,
|
||||||
def extract(key):
|
def extract(key):
|
||||||
return self._search_regex(
|
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')
|
webpage, key, default=None, group='value')
|
||||||
|
|
||||||
|
import pdb; pdb.set_trace() # XXX BREAKPOINT
|
||||||
artist = extract('artist')
|
artist = extract('artist')
|
||||||
|
|
||||||
album = extract('album_title')
|
album = extract('album_title')
|
||||||
timestamp = unified_timestamp(
|
timestamp = unified_timestamp(
|
||||||
extract('publish_date') or extract('album_publish_date'))
|
extract('publish_date') or extract('album_publish_date'))
|
||||||
|
Loading…
Reference in New Issue
Block a user