thumbnail and bot token

This commit is contained in:
msramalho
2023-02-02 13:49:56 +00:00
parent e758bd076b
commit 4854929a1d
3 changed files with 12 additions and 2 deletions

View File

@@ -70,6 +70,10 @@ class GsheetsDb(Database):
if (screenshot := item.get_media_by_id("screenshot")):
batch_if_valid('screenshot', "\n".join(screenshot.urls))
if (thumbnail := item.get_first_image("thumbnail")):
batch_if_valid('thumbnail', f'=IMAGE("{thumbnail.urls[0]}")')
if (browsertrix := item.get_media_by_id("browsertrix")):
batch_if_valid('wacz', "\n".join(browsertrix.urls))
batch_if_valid('replaywebpage', "\n".join([f'https://replayweb.page/?source={quote(wacz)}#view=pages&url={quote(item.get_url())}' for wacz in browsertrix.urls]))