[bandcamp] Replace maxsplit keyword argument with regular one
authorSergey M․ <dstftw@gmail.com>
Tue, 20 May 2014 12:44:42 +0000 (19:44 +0700)
committerSergey M․ <dstftw@gmail.com>
Tue, 20 May 2014 12:44:42 +0000 (19:44 +0700)
Named arguments are not supported by methods implemented in native C (see http://bugs.python.org/issue1176)

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,