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()