update
This commit is contained in:
14
src/main.py
14
src/main.py
@@ -39,7 +39,7 @@ from kivy.animation import Animation
|
||||
from kivy.lang import Builder
|
||||
from kivy.graphics import Rectangle
|
||||
from kivy.graphics.texture import Texture
|
||||
from get_playlists import (
|
||||
from get_playlists_v2 import (
|
||||
update_playlist_if_needed,
|
||||
send_playing_status_feedback,
|
||||
send_playlist_restart_feedback,
|
||||
@@ -1046,20 +1046,14 @@ class SignagePlayer(Widget):
|
||||
# Run blocking network I/O in thread pool
|
||||
loop = asyncio.get_event_loop()
|
||||
|
||||
# Find latest playlist file
|
||||
latest_playlist = await loop.run_in_executor(
|
||||
None,
|
||||
self.get_latest_playlist_file
|
||||
)
|
||||
|
||||
# Check for updates (network I/O in thread pool)
|
||||
# Note: get_playlists_v2 doesn't need latest_playlist parameter
|
||||
updated = await loop.run_in_executor(
|
||||
None,
|
||||
update_playlist_if_needed,
|
||||
latest_playlist,
|
||||
self.config,
|
||||
self.media_dir,
|
||||
self.playlists_dir
|
||||
self.playlists_dir,
|
||||
self.media_dir
|
||||
)
|
||||
|
||||
if updated:
|
||||
|
||||
Reference in New Issue
Block a user