if there is more than one subtitle for the language, use the first one
[youtube-dl] / youtube_dl / extractor / bandcamp.py
index be4123d85ebbaf56f058ce10da50bef6ad9f5305..dcbbdef4346c36c789e49531df1dc602bc35255b 100644 (file)
@@ -37,7 +37,7 @@ class BandcampIE(InfoExtractor):
 
                 formats = []
                 for format_id, format_url in data['file'].items():
-                    ext, abr_str = format_id.split('-', maxsplit=1)
+                    ext, abr_str = format_id.split('-', 1)
                     formats.append({
                         'format_id': format_id,
                         'url': format_url,