api: Fix error f-string: unmatched in python 3.9

This commit is contained in:
None 2025-04-12 15:29:03 +02:00
parent c3a0be0d85
commit fda1bd6e4e
3 changed files with 3 additions and 3 deletions

View File

@ -79,7 +79,7 @@ def title_search(query: str) -> int:
'url': url,
'name': title,
'type': tipo,
'image': f"{site_constant.FULL_URL}{movie_div.find("img", class_="layer-image").get("data-src")}"
'image': f"{site_constant.FULL_URL}{movie_div.find('img', class_='layer-image').get('data-src')}"
})
if site_constant.TELEGRAM_BOT:

View File

@ -65,7 +65,7 @@ def title_search(query: str) -> int:
'name': title.replace("streaming guardaserie", ""),
'url': link,
'type': 'tv',
'image': f"{site_constant.FULL_URL}/{serie_div.find('img').get("src")}",
'image': f"{site_constant.FULL_URL}/{serie_div.find('img').get('src')}",
}
media_search_manager.add_media(serie_info)

View File

@ -73,7 +73,7 @@ def title_search(query: str) -> int:
'name': dict_title.get('name'),
'type': dict_title.get('type'),
'date': dict_title.get('last_air_date'),
'image': f"{site_constant.FULL_URL.replace("stream", "cdn.stream")}/images/{dict_title.get('images')[0].get('filename')}"
'image': f"{site_constant.FULL_URL.replace('stream', 'cdn.stream')}/images/{dict_title.get('images')[0].get('filename')}"
})
if site_constant.TELEGRAM_BOT: