From f330b16a2c36585be8ce8102cfb11e4914ed9a69 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sun, 1 Dec 2019 23:35:01 +0100 Subject: Add image preview to image board thread --- src/plugins/Fourchan.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/plugins') 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; -- cgit v1.2.3