Fix retrieving original cover image
This commit is contained in:
parent
936851a478
commit
87cef0ced1
|
@ -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)) {
|
||||||
|
|
Loading…
Reference in New Issue