mirror of
https://github.com/TheFunny/TelegramTwitterMediaBot.git
synced 2026-09-23 23:32:05 +00:00
add log
This commit is contained in:
+2
-1
@@ -68,7 +68,7 @@ class Pixiv:
|
||||
|
||||
@property
|
||||
def author_url(self) -> str:
|
||||
return str(self._illust.user.link)
|
||||
return str(self._illust.user.link).rstrip('/')
|
||||
|
||||
@property
|
||||
def description(self) -> str:
|
||||
@@ -192,6 +192,7 @@ class TelegramPixiv:
|
||||
def message_media_generator(self) -> Generator[TypeMessageMediaResult, None, None]:
|
||||
pixiv = self._pixiv
|
||||
for media in pixiv.images:
|
||||
logger.info(str(media))
|
||||
if pixiv.type in ("illust", "manga"):
|
||||
yield InputMediaPhoto(
|
||||
media=media.url,
|
||||
|
||||
Reference in New Issue
Block a user