From 6900159a36ed365e628ecbcbad892a91ccd68d9e Mon Sep 17 00:00:00 2001 From: dec05eba Date: Mon, 19 Jul 2021 21:52:27 +0200 Subject: Strip saucenao title --- src/plugins/Saucenao.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/plugins/Saucenao.cpp b/src/plugins/Saucenao.cpp index fd752c5..d81e233 100644 --- a/src/plugins/Saucenao.cpp +++ b/src/plugins/Saucenao.cpp @@ -1,4 +1,5 @@ #include "../../plugins/Saucenao.hpp" +#include "../../include/StringUtils.hpp" #include namespace QuickMedia { @@ -28,6 +29,7 @@ namespace QuickMedia { size_t p_index = title.find("%"); if(p_index != std::string::npos) title = title.erase(0, p_index + 1); + title = strip(title); auto item = BodyItem::create(title); item_data->push_back(std::move(item)); } -- cgit v1.2.3