0
1
mirror of https://github.com/radio95-rnt/RadioPlayer.git synced 2026-02-26 21:53:54 +01:00

new custom playlist processing

This commit is contained in:
KubaPro010
2025-11-07 15:49:22 +01:00
parent 4c8373b1e1
commit 8378f9cfac
2 changed files with 31 additions and 28 deletions

View File

@@ -6,7 +6,7 @@ import libcache
from modules import *
def prefetch(path):
if os.name == "nt": return
if os.name != "posix": return
with open(path, "rb") as f:
fd = f.fileno()
os.posix_fadvise(fd, 0, 0, os.POSIX_FADV_SEQUENTIAL)