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
|
@property
|
||||||
def author_url(self) -> str:
|
def author_url(self) -> str:
|
||||||
return str(self._illust.user.link)
|
return str(self._illust.user.link).rstrip('/')
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def description(self) -> str:
|
def description(self) -> str:
|
||||||
@@ -192,6 +192,7 @@ class TelegramPixiv:
|
|||||||
def message_media_generator(self) -> Generator[TypeMessageMediaResult, None, None]:
|
def message_media_generator(self) -> Generator[TypeMessageMediaResult, None, None]:
|
||||||
pixiv = self._pixiv
|
pixiv = self._pixiv
|
||||||
for media in pixiv.images:
|
for media in pixiv.images:
|
||||||
|
logger.info(str(media))
|
||||||
if pixiv.type in ("illust", "manga"):
|
if pixiv.type in ("illust", "manga"):
|
||||||
yield InputMediaPhoto(
|
yield InputMediaPhoto(
|
||||||
media=media.url,
|
media=media.url,
|
||||||
|
|||||||
Reference in New Issue
Block a user