Modified function cache() so that the player can load all ffmpeg compatible files.

This commit is contained in:
The Wobbler 2024-12-29 20:10:06 +01:00
parent ae6081971b
commit 878583eaac
3 changed files with 17 additions and 3 deletions

View file

@ -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)