[ie/bandcamp] Fix formatting

This commit is contained in:
Scott Robinson 2024-07-02 05:50:11 +10:00 committed by GitHub
parent 796272c796
commit 4d6de5b989
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -475,7 +475,7 @@ class BandcampUserIE(InfoExtractor):
def _extract_data_attr(self, webpage, video_id, attr, fatal=True):
return self._parse_json(self._html_search_regex(
r'data-%s=(["\'])(.+?)\1' % attr, webpage,
fr'data-{attr}=(["\'])(\[.+?\])\1', webpage,
attr + ' data', group=2), video_id, fatal=fatal)
def _real_extract(self, url):