瀏覽代碼

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

Loading…
取消
儲存