aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/Fourchan.cpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2019-12-01 23:35:01 +0100
committerdec05eba <dec05eba@protonmail.com>2019-12-01 23:35:01 +0100
commitf330b16a2c36585be8ce8102cfb11e4914ed9a69 (patch)
treef73449119a55a318a520620f57a808db622f4ea6 /src/plugins/Fourchan.cpp
parentb86434c629e52034ec44c7582dadfbdeb1961d15 (diff)
Add image preview to image board thread
Diffstat (limited to 'src/plugins/Fourchan.cpp')
-rw-r--r--src/plugins/Fourchan.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/plugins/Fourchan.cpp b/src/plugins/Fourchan.cpp
index cd3f7e7..17fefdc 100644
--- a/src/plugins/Fourchan.cpp
+++ b/src/plugins/Fourchan.cpp
@@ -353,7 +353,9 @@ namespace QuickMedia {
}
// "s" means small, that's the url 4chan uses for thumbnails.
// thumbnails always has .jpg extension even if they are gifs or webm.
- body_item->thumbnail_url = fourchan_image_url + list_url + "/" + std::to_string(tim.asInt64()) + "s.jpg";
+ std::string tim_str = std::to_string(tim.asInt64());
+ body_item->thumbnail_url = fourchan_image_url + list_url + "/" + tim_str + "s.jpg";
+ body_item->fullsize_image_url = fourchan_image_url + list_url + "/" + tim_str + ext_str;
}
++body_item_index;