Merge pull request #1771 from endemics/fix-quoted-uri
Remove double-quotes around PLS File# entries
This commit is contained in:
commit
6dbcc1a9fa
@ -84,7 +84,7 @@ def parse_pls(data):
|
|||||||
if section.lower() != 'playlist':
|
if section.lower() != 'playlist':
|
||||||
continue
|
continue
|
||||||
for i in range(cp.getint(section, 'numberofentries')):
|
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):
|
def parse_xspf(data):
|
||||||
|
|||||||
@ -31,11 +31,11 @@ file:///tmp/baz
|
|||||||
|
|
||||||
PLS = b"""[Playlist]
|
PLS = b"""[Playlist]
|
||||||
NumberOfEntries=3
|
NumberOfEntries=3
|
||||||
File1=file:///tmp/foo
|
File1="file:///tmp/foo"
|
||||||
Title1=Sample Title
|
Title1=Sample Title
|
||||||
Length1=123
|
Length1=123
|
||||||
|
|
||||||
File2=file:///tmp/bar
|
File2='file:///tmp/bar'
|
||||||
Title2=Example \xc5\xa7\xc5\x95
|
Title2=Example \xc5\xa7\xc5\x95
|
||||||
Length2=321
|
Length2=321
|
||||||
File3=file:///tmp/baz
|
File3=file:///tmp/baz
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user