|
|
@ -160,8 +160,7 @@ class Audio(Bureau):
|
|
|
|
# if line startswith #EXTINF: title = first comma to EOL
|
|
|
|
# if line startswith #EXTINF: title = first comma to EOL
|
|
|
|
# if line startswith Title then title = first '=' to EOL
|
|
|
|
# if line startswith Title then title = first '=' to EOL
|
|
|
|
title = ""
|
|
|
|
title = ""
|
|
|
|
self.log.debug("PLAYLIST TEXT: \n" + resp.text)
|
|
|
|
for line in resp.text.splitlines():
|
|
|
|
for line in resp.text:
|
|
|
|
|
|
|
|
if line.startswith("#EXTINF:"):
|
|
|
|
if line.startswith("#EXTINF:"):
|
|
|
|
# this is m3u playlist - title is from first comma to EOL
|
|
|
|
# this is m3u playlist - title is from first comma to EOL
|
|
|
|
title = line[(line.find(',') + 1):].strip()
|
|
|
|
title = line[(line.find(',') + 1):].strip()
|
|
|
|