Commit 40160d19 authored by Jonas's avatar Jonas

Merge branch 'master' into 'master'

Correction pour lire le fichier playlist en unicode

See merge request !3
parents c7375dd4 ea727add
......@@ -35,7 +35,7 @@ pattern = re.compile("^#EXTINF:0,([0-9]+) - (.*?)(?: HD$| \(.*\)$|$)")
m3u = {}
r = requests.get(args.playlist_url)
if r.ok :
for l in r.iter_lines() :
for l in r.iter_lines(decode_unicode = True) :
if l.startswith('#EXTINF'):
match = pattern.search(l)
elif l.startswith('rtsp'):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment