fix: ensure local m3u8 files are in stable reversed order

Co-authored-by: Mike Lang <ekimekim@users.noreply.github.com>
pull/388/head
Dillon Pentz 9 months ago committed by GitHub
parent b5cacbf711
commit 06fad6357b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -214,7 +214,7 @@ class LocalProvider(Provider):
files = os.listdir(self.directory) files = os.listdir(self.directory)
for file in reversed(files): for file in sorted(files, reverse=True):
if file.endswith(".m3u8"): if file.endswith(".m3u8"):
return {"source": os.path.join(self.directory, file)} return {"source": os.path.join(self.directory, file)}

Loading…
Cancel
Save