fix: telegram archiver was outdated for images

pull/87/head
msramalho 2023-07-11 12:15:56 +01:00
rodzic abaf86c776
commit 92569ae6be
3 zmienionych plików z 4 dodań i 3 usunięć

Wyświetl plik

@ -30,7 +30,7 @@ tqdm = "*"
jinja2 = "*"
cryptography = "*"
dataclasses-json = "*"
yt-dlp = ">=2023.2.17"
yt-dlp = "*"
vk-url-scraper = "*"
uwsgi = "*"
requests = {extras = ["socks"], version = "*"}

2
Pipfile.lock wygenerowano
Wyświetl plik

@ -1,7 +1,7 @@
{
"_meta": {
"hash": {
"sha256": "6e76638769e56f28c2cc56e548d3ac1752b36db2160e23a865089c80e584dcba"
"sha256": "84ebe4378c02b26d0663f6d7ede49064ec7428dddca668c8d8a5d64cf9191f09"
},
"pipfile-spec": 6,
"requires": {

Wyświetl plik

@ -48,7 +48,8 @@ class TelegramArchiver(Archiver):
video = s.find("video")
if video is None:
logger.warning("could not find video")
image_tags = s.find_all(class_="js-message_photo")
image_tags = s.find_all(class_="tgme_widget_message_photo_wrap")
logger.info(image_tags)
image_urls = []
for im in image_tags: