From 7885a92b2d32d87f72f955ed3412c0b062baa8a7 Mon Sep 17 00:00:00 2001 From: Kuba <132459354+KubaPro010@users.noreply.github.com> Date: Sun, 12 Oct 2025 14:40:31 +0200 Subject: [PATCH] nothing important --- radioPlayer.py | 2 +- radioPlayer_playlist_file.txt | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/radioPlayer.py b/radioPlayer.py index 5aa1092..e8393cd 100644 --- a/radioPlayer.py +++ b/radioPlayer.py @@ -87,7 +87,7 @@ class ProcessManager: def play(self, track_path: str, fade_in: bool=False, fade_out: bool=False, fade_time: int = 5) -> Process: cmd = ['ffplay', '-nodisp', '-hide_banner', '-autoexit', '-loglevel', 'quiet'] duration = self._get_audio_duration(track_path) - if not duration: raise Exception("Failed to get file duration, does it actually exit?", track_path) + if not duration: raise Exception("Failed to get file duration, does it actually exist?", track_path) filters = [] if fade_in: filters.append(f"afade=t=in:st=0:d={fade_time}") diff --git a/radioPlayer_playlist_file.txt b/radioPlayer_playlist_file.txt index 164d15b..fd3f248 100644 --- a/radioPlayer_playlist_file.txt +++ b/radioPlayer_playlist_file.txt @@ -6,6 +6,8 @@ By default, radio-player reads from the `user` home folder the `playlists` folde - day (11-19) - night (19-0) +The logic defined above is included in the advisor module + In other cases, radio player can be started with a `list` argument, where the syntax is defined in the script itself The playlist file format itself, this is a list of files or other playlist files (imports)