forked from Wobbl/Wobuzz
Modified function cache() so that the player can load all ffmpeg compatible files.
This commit is contained in:
parent
ae6081971b
commit
878583eaac
3 changed files with 17 additions and 3 deletions
|
@ -33,8 +33,8 @@ class Playlist:
|
|||
m3u = file.read()
|
||||
file.close()
|
||||
|
||||
lines = m3u.split("\n") # m3u entries
|
||||
lines = lines[:-1]
|
||||
lines = m3u.split("\n") # m3u entries are separated by newlines
|
||||
lines = lines[:-1] # remove last entry because it is just an empty string
|
||||
|
||||
i = 0
|
||||
num_lines = len(lines)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue