You've already forked RadioPlayer
mirror of
https://github.com/radio95-rnt/RadioPlayer.git
synced 2026-02-27 06:03:52 +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.")
|
logger.info("Return reached, next song will reload the playlist.")
|
||||||
procman.wait_all()
|
procman.wait_all()
|
||||||
return
|
return
|
||||||
if exit_pending:
|
elif exit_pending:
|
||||||
logger.info("Quit received, waiting for song end.")
|
logger.info("Quit received, waiting for song end.")
|
||||||
procman.wait_all()
|
procman.wait_all()
|
||||||
exit()
|
exit()
|
||||||
@@ -423,5 +423,3 @@ def main():
|
|||||||
procman.stop_all()
|
procman.stop_all()
|
||||||
raise
|
raise
|
||||||
finally: procman.stop_all()
|
finally: procman.stop_all()
|
||||||
|
|
||||||
if __name__ == '__main__': main()
|
|
||||||
|
|||||||
@@ -989,8 +989,4 @@ def main():
|
|||||||
|
|
||||||
config = Config(custom_playlist_file=args.playlist)
|
config = Config(custom_playlist_file=args.playlist)
|
||||||
app = Application(config)
|
app = Application(config)
|
||||||
return app.run()
|
exit(app.run())
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
|
||||||
exit(main())
|
|
||||||
Reference in New Issue
Block a user