diff --git a/downloader/downloader/providers.py b/downloader/downloader/providers.py index 8d15022..994227c 100644 --- a/downloader/downloader/providers.py +++ b/downloader/downloader/providers.py @@ -214,7 +214,7 @@ class LocalProvider(Provider): files = os.listdir(self.directory) - for file in reversed(files): + for file in sorted(files, reverse=True): if file.endswith(".m3u8"): return {"source": os.path.join(self.directory, file)}