fix bug
This commit is contained in:
@ -167,8 +167,6 @@ class Telegram(metaclass=Singleton):
|
||||
|
||||
# 发送图文消息
|
||||
if image:
|
||||
# 转换TMDB图片质量
|
||||
image = image.replace("original", "w500")
|
||||
res = request.get_res("https://api.telegram.org/bot%s/sendPhoto?" % self._telegram_token + urlencode(
|
||||
{"chat_id": chat_id, "photo": image, "caption": caption, "parse_mode": "Markdown"}))
|
||||
if __res_parse(res):
|
||||
|
@ -143,7 +143,7 @@ class TmdbCache(metaclass=Singleton):
|
||||
if cache_year:
|
||||
cache_year = cache_year[:4]
|
||||
self._meta_data[self.__get_key(meta)] = {
|
||||
"id": info.get("id"),
|
||||
"id": str(info.get("id")),
|
||||
"type": info.get("media_type"),
|
||||
"year": cache_year,
|
||||
"title": cache_title,
|
||||
|
Reference in New Issue
Block a user