Merge pull request #1771 from endemics/fix-quoted-uri

Remove double-quotes around PLS File# entries
This commit is contained in:
Stein Magnus Jodal 2019-06-11 23:29:12 +02:00 committed by GitHub
commit 6dbcc1a9fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -84,7 +84,7 @@ def parse_pls(data):
if section.lower() != 'playlist':
continue
for i in range(cp.getint(section, 'numberofentries')):
yield cp.get(section, 'file%d' % (i + 1))
yield cp.get(section, 'file%d' % (i + 1)).strip('\"\'')
def parse_xspf(data):

View File

@ -31,11 +31,11 @@ file:///tmp/baz
PLS = b"""[Playlist]
NumberOfEntries=3
File1=file:///tmp/foo
File1="file:///tmp/foo"
Title1=Sample Title
Length1=123
File2=file:///tmp/bar
File2='file:///tmp/bar'
Title2=Example \xc5\xa7\xc5\x95
Length2=321
File3=file:///tmp/baz