0
1
mirror of https://github.com/radio95-rnt/RadioPlayer.git synced 2026-02-26 13:52:00 +01:00
This commit is contained in:
2025-09-10 20:58:43 +02:00
parent 1659b10112
commit 1fc173a6a5
4 changed files with 16 additions and 13 deletions

View File

@@ -1,5 +0,0 @@
cp radioPlayer.py /usr/local/bin/radioPlayer
cp radioPlaylist.py /usr/local/bin/radioPlaylist
chmod +x /usr/local/bin/radioPlayer
chmod +x /usr/local/bin/radioPlaylist

14
pyproject.toml Normal file
View File

@@ -0,0 +1,14 @@
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
[project]
name = "RadioTools"
version = "0"
description = "RadioTools"
authors = [{ name = "KubaPro010" }]
dependencies = ["log95", "libcache", "unidecode"]
[project.scripts]
radioPlayer = "radioPlayer:main"
radioPlaylist = "radioPlaylist:main"

View File

@@ -277,7 +277,7 @@ def play_playlist(playlist_path, custom_playlist: bool=False, play_newest_first=
logger.info("Return reached, next song will reload the playlist.")
procman.wait_all()
return
if exit_pending:
elif exit_pending:
logger.info("Quit received, waiting for song end.")
procman.wait_all()
exit()
@@ -423,5 +423,3 @@ def main():
procman.stop_all()
raise
finally: procman.stop_all()
if __name__ == '__main__': main()

View File

@@ -989,8 +989,4 @@ def main():
config = Config(custom_playlist_file=args.playlist)
app = Application(config)
return app.run()
if __name__ == "__main__":
exit(main())
exit(app.run())