fix transfer message

This commit is contained in:
jxxghp
2023-06-11 11:47:03 +08:00
parent 81abd0ee49
commit 69c660df43
5 changed files with 18 additions and 25 deletions

View File

@ -75,7 +75,7 @@ class Telegram(metaclass=Singleton):
try:
if text:
caption = f"*{title}*\n\n{text}"
caption = f"*{title}*\n{text}"
else:
caption = title

View File

@ -203,6 +203,8 @@ class TheMovieDb(_ModuleBase):
for attr_name, attr_value in vars(mediainfo).items():
if attr_value \
and attr_name.endswith("_path") \
and attr_value \
and isinstance(attr_value, str) \
and attr_value.startswith("http"):
image_name = attr_name.replace("_path", "") + Path(attr_value).suffix
self.__save_image(url=attr_value,
@ -221,6 +223,8 @@ class TheMovieDb(_ModuleBase):
if attr_value \
and attr_name.endswith("_path") \
and not attr_name.startswith("season") \
and attr_value \
and isinstance(attr_value, str) \
and attr_value.startswith("http"):
image_name = attr_name.replace("_path", "") + Path(attr_value).suffix
self.__save_image(url=attr_value,
@ -237,6 +241,8 @@ class TheMovieDb(_ModuleBase):
for attr_name, attr_value in vars(mediainfo).items():
if attr_value \
and attr_name.startswith("season") \
and attr_value \
and isinstance(attr_value, str) \
and attr_value.startswith("http"):
image_name = attr_name.replace("_path",
"").replace("season",