Spaces:
Sleeping
Sleeping
Commit
·
042c718
1
Parent(s):
c137f8e
fix api
Browse files
api.py
CHANGED
|
@@ -29,7 +29,7 @@ class InstancesAPI:
|
|
| 29 |
"""
|
| 30 |
data = {}
|
| 31 |
try:
|
| 32 |
-
response = requests.get(f"{instance_url}/api/film/{title}")
|
| 33 |
response.raise_for_status()
|
| 34 |
data = response.json()
|
| 35 |
|
|
@@ -52,7 +52,7 @@ class InstancesAPI:
|
|
| 52 |
"""
|
| 53 |
data = {}
|
| 54 |
try:
|
| 55 |
-
response = requests.get(f"{instance_url}/api/tv/{title}/{season}/{episode}")
|
| 56 |
response.raise_for_status()
|
| 57 |
data = response.json()
|
| 58 |
|
|
|
|
| 29 |
"""
|
| 30 |
data = {}
|
| 31 |
try:
|
| 32 |
+
response = requests.get(f"{instance_url}/api/get/film/{title}")
|
| 33 |
response.raise_for_status()
|
| 34 |
data = response.json()
|
| 35 |
|
|
|
|
| 52 |
"""
|
| 53 |
data = {}
|
| 54 |
try:
|
| 55 |
+
response = requests.get(f"{instance_url}/api/get/tv/{title}/{season}/{episode}")
|
| 56 |
response.raise_for_status()
|
| 57 |
data = response.json()
|
| 58 |
|