You've already forked RadioPlayer
mirror of
https://github.com/radio95-rnt/RadioPlayer.git
synced 2026-02-26 13:52:00 +01:00
toml
This commit is contained in:
@@ -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
14
pyproject.toml
Normal 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"
|
||||
@@ -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()
|
||||
|
||||
@@ -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())
|
||||
Reference in New Issue
Block a user