diff src/core/anime_db.cc @ 236:4d461ef7d424

HUGE UPDATE: convert build system to autotools why? because cmake sucks :)
author Paper <mrpapersonic@gmail.com>
date Fri, 19 Jan 2024 00:24:02 -0500
parents bc1ae1810855
children d14f8e0e40c3
line wrap: on
line diff
--- a/src/core/anime_db.cc	Tue Jan 16 15:22:29 2024 -0500
+++ b/src/core/anime_db.cc	Fri Jan 19 00:24:02 2024 -0500
@@ -145,7 +145,8 @@
 	std::unordered_map<int, size_t> map;
 
 	static const auto process_title = [&map](const Anime& anime, const std::string& title, const std::string& needle) -> bool {
-		size_t ret = title.find(needle);
+		const std::string title_l = Strings::ToLower(title), needle_l = Strings::ToLower(needle);
+		size_t ret = title_l.find(needle_l);
 		if (ret == std::string::npos)
 			return false;