Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -36,7 +36,7 @@ def get_track_by_tags(tags, pat, duration, maxit=20, loop=False):
|
|
36 |
for i in range(maxit):
|
37 |
r = httpx.get(trackurl)
|
38 |
if r.status_code == 200:
|
39 |
-
data = open(
|
40 |
encoded = base64.b64encode(data)
|
41 |
return encoded
|
42 |
time.sleep(1)
|
|
|
36 |
for i in range(maxit):
|
37 |
r = httpx.get(trackurl)
|
38 |
if r.status_code == 200:
|
39 |
+
data = open(r, "r").read()
|
40 |
encoded = base64.b64encode(data)
|
41 |
return encoded
|
42 |
time.sleep(1)
|