Browse Source

Mise à jour de 'betaseries.py'

master
TheBidouilleur 8 months ago
parent
commit
2bc4e60de5
1 changed files with 12 additions and 0 deletions
  1. +12
    -0
      betaseries.py

+ 12
- 0
betaseries.py View File

@@ -3,6 +3,11 @@ import requests
import json
from config import config

#Love Is War / Une serie pour tester le programme.
thetvdb_id= '354198'


token = config['token']
client_id = config['client_id']
login = config['login']
password = config['password']
@@ -18,3 +23,10 @@ def login_beta():
data = request.json()
betauser = str(data['token'])
return betauser
def create_api(choice):
if choice == 'latest' :
base_url = 'https://api.betaseries.com/episodes/latest?'
API = base_url + 'token=' + token + '&client_id=' + client_id + '&thetvdb_id=' + thetvdb_id
return API

Loading…
Cancel
Save