mirror of
https://github.com/Arrowar/StreamingCommunity.git
synced 2025-06-05 02:55:25 +00:00

* Add betterer formattation and ffmpeg installation testing * Update readme * Better formattation * Update readme with tg * Change tg folder * Add RRC * Rename ...
21 lines
569 B
Python
21 lines
569 B
Python
# 26.11.24
|
|
|
|
import sys
|
|
from StreamingCommunity.run import main
|
|
from StreamingCommunity.Util._jsonConfig import config_manager
|
|
from StreamingCommunity.TelegramHelp.request_manager import RequestManager
|
|
from StreamingCommunity.TelegramHelp.session import set_session
|
|
|
|
# Svuoto il file
|
|
TELEGRAM_BOT = config_manager.get_bool('DEFAULT', 'telegram_bot')
|
|
|
|
if TELEGRAM_BOT:
|
|
request_manager = RequestManager()
|
|
request_manager.clear_file()
|
|
script_id = sys.argv[1] if len(sys.argv) > 1 else "unknown"
|
|
|
|
set_session(script_id)
|
|
main(script_id)
|
|
|
|
else:
|
|
main(0) |