소스 검색

Mise à jour de 'betaseries.py'

master
TheBidouilleur 8 달 전
부모
커밋
2bc4e60de5
1개의 변경된 파일12개의 추가작업 그리고 0개의 파일을 삭제
  1. +12
    -0
      betaseries.py

+ 12
- 0
betaseries.py 파일 보기

@@ -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

불러오는 중...
취소
저장