pre-deploy
This commit is contained in:
parent
befa92ed72
commit
5d251b6292
1 changed files with 1 additions and 1 deletions
|
@ -38,7 +38,7 @@ def get(index:int, media:bool=True) -> dict | None:
|
||||||
# get media
|
# get media
|
||||||
if media and rj["enclosure"] is not None:
|
if media and rj["enclosure"] is not None:
|
||||||
for m in rj["enclosure"]:
|
for m in rj["enclosure"]:
|
||||||
_m = requests.get(f"{HOST}/{m}")
|
_m = requests.get(f"{HOST}/static/{m}")
|
||||||
if _m.status_code == 200:
|
if _m.status_code == 200:
|
||||||
media_arr.append(io.BytesIO(_m.content))
|
media_arr.append(io.BytesIO(_m.content))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue