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

nothing important

This commit is contained in:
Kuba
2025-10-12 14:40:31 +02:00
parent 2ac9f6862b
commit 7885a92b2d
2 changed files with 3 additions and 1 deletions

View File

@@ -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: 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'] cmd = ['ffplay', '-nodisp', '-hide_banner', '-autoexit', '-loglevel', 'quiet']
duration = self._get_audio_duration(track_path) 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 = [] filters = []
if fade_in: filters.append(f"afade=t=in:st=0:d={fade_time}") if fade_in: filters.append(f"afade=t=in:st=0:d={fade_time}")

View File

@@ -6,6 +6,8 @@ By default, radio-player reads from the `user` home folder the `playlists` folde
- day (11-19) - day (11-19)
- night (19-0) - 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 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) The playlist file format itself, this is a list of files or other playlist files (imports)