aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2022-06-19 23:24:25 +0200
committerdec05eba <dec05eba@protonmail.com>2022-06-19 23:24:25 +0200
commitd004af8344758a6d9412a0dba83702f43f6805ee (patch)
tree42ef56d991809240b982a6e9ff79e5da719f2214
parent295ab1f44b76bf88606a217fd6a014cbdf5a915d (diff)
xh: fix thumbnails
-rw-r--r--src/QuickMedia.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/QuickMedia.cpp b/src/QuickMedia.cpp
index 29ada07..ae3ac63 100644
--- a/src/QuickMedia.cpp
+++ b/src/QuickMedia.cpp
@@ -997,9 +997,9 @@ namespace QuickMedia {
static void add_xhamster_handlers(MediaGenericSearchPage *media_generic_search_page) {
media_generic_search_page->search_handler("https://xhamster.com/search/%s?page=%p", 1)
.text_handler({{"//div[data-role='video-list']//div[class='video-thumb-info']//a", "text", "href", "/videos/"}})
- .thumbnail_handler({{"//div[data-role='video-list']//img", "src", "/thumb-"}})
+ .thumbnail_handler({{"//div[data-role='video-list']//img", "src", "xhcdn"}})
.related_media_text_handler({{"//div[data-role='video-relations']//div[class='video-thumb-info']//a", "text", "href", "/videos/"}})
- .related_media_thumbnail_handler({{"//div[data-role='video-relations']//img", "src", "/thumb-"}});
+ .related_media_thumbnail_handler({{"//div[data-role='video-relations']//img", "src", "xhcdn"}});
}
static void check_youtube_dl_installed(const std::string &plugin_name) {