Bläddra i källkod

Remplacement de la méthode de configuration

master
TheBidouilleur 2 månader sedan
förälder
incheckning
cef27da994
1 ändrade filer med 9 tillägg och 13 borttagningar
  1. +9
    -13
      config.py

+ 9
- 13
config.py Visa fil

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

Laddar…
Avbryt
Spara