From 87cef0ced1494679dc100b590e00caf936ea812c Mon Sep 17 00:00:00 2001 From: blankie Date: Sun, 9 Apr 2023 15:02:44 +0700 Subject: [PATCH] Fix retrieving original cover image --- pixivmodels.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pixivmodels.cpp b/pixivmodels.cpp index 890daf3..5e9eab1 100644 --- a/pixivmodels.cpp +++ b/pixivmodels.cpp @@ -140,7 +140,7 @@ static inline std::optional get_1920x960_cover_image(blankie::murl: return url.to_string(); } -static std::regex thumbnail_path_regex("/c/[^/]+/(.+)_master\\d+(\\.\\w{3,4})?"); +static std::regex thumbnail_path_regex("/c/[^/]+(/.+)_master\\d+(\\.\\w{3,4})?"); static inline std::optional get_original_cover_image(blankie::murl::Url url) { std::smatch sm; if (!std::regex_match(url.path, sm, thumbnail_path_regex)) {