From cef27da994fd5360515e981fa354c9c72f4c2ba1 Mon Sep 17 00:00:00 2001 From: TheBidouilleur Date: Fri, 30 Oct 2020 11:39:15 +0100 Subject: [PATCH] =?UTF-8?q?Remplacement=20de=20la=20m=C3=A9thode=20de=20co?= =?UTF-8?q?nfiguration?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config.py | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/config.py b/config.py index e46efb7..cdae1d7 100644 --- a/config.py +++ b/config.py @@ -4,26 +4,22 @@ # password : Votre mot de passe betaseries en md5. https://www.md5hashgenerator.com/ # Votre user_id sur telegram : https://bigone.zendesk.com/hc/en-us/articles/360008014894-How-to-get-the-Telegram-user-ID- # token_bot : le token du bot que vous avez créé sur telegram. Contactez Botfather pour le créer +import json -config = { - "client_id" : '', - "login" : '', - "password" : '', - "user_id" : '', - "token_bot" : '' - } +with open('user_config.json') as json_file: + config = json.load(json_file) -# Cherchez les 'series id' sur thetvdb.com et placez les dans cette liste -#exemple : series = ("354198", "376729", "372534") -series = ("354198", "376729", "372534") -def main(): - print(config) + +with open('watched_series.json') as json_file: + series = json.load(json_file) +def main(): + print("Fini") if __name__ == '__main__': - main() \ No newline at end of file + main()