Fix retrieving original cover image

This commit is contained in:
blankie 2023-04-09 15:02:44 +07:00
parent 936851a478
commit 87cef0ced1
Signed by: blankie
GPG Key ID: CC15FC822C7F61F5
1 changed files with 1 additions and 1 deletions

View File

@ -140,7 +140,7 @@ static inline std::optional<std::string> get_1920x960_cover_image(blankie::murl:
return url.to_string(); 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<std::string> get_original_cover_image(blankie::murl::Url url) { static inline std::optional<std::string> get_original_cover_image(blankie::murl::Url url) {
std::smatch sm; std::smatch sm;
if (!std::regex_match(url.path, sm, thumbnail_path_regex)) { if (!std::regex_match(url.path, sm, thumbnail_path_regex)) {