From 8905f1ac11541f5fe2e94e0e619745a79851f6ba Mon Sep 17 00:00:00 2001 From: gixxpunk Date: Mon, 29 May 2017 14:00:42 +0200 Subject: [PATCH] imdb: enable explicit search on www.imdb.com Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/27ad3ad04a124a3a2331f6f54343155becae2f60 Author: gixxpunk Date: 2017-05-29 (Mon, 29 May 2017) Origin message was: ------------------ - imdb: enable explicit search on www.imdb.com ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/gui/epgview.cpp | 2 +- src/gui/imdb.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gui/epgview.cpp b/src/gui/epgview.cpp index 53d39bbfb..3177d3601 100644 --- a/src/gui/epgview.cpp +++ b/src/gui/epgview.cpp @@ -1645,7 +1645,7 @@ int CEpgData::showIMDb(bool splash) //titel std::string title = imdb->getIMDbElement("Title"); - if(((title.find("IMDb: URL (Seite) nicht gefunden")) != std::string::npos)) + if(((title.find("IMDb: Google Download fehlgeschlagen")) != std::string::npos)) return 1; // clear epg array diff --git a/src/gui/imdb.cpp b/src/gui/imdb.cpp index cfc5503cc..8ecbbf670 100644 --- a/src/gui/imdb.cpp +++ b/src/gui/imdb.cpp @@ -206,7 +206,7 @@ std::string CIMDB::parseFile(std::string search1, std::string search2, const cha std::string CIMDB::googleIMDb(std::string searchStr) { CHTTPTool httpTool; - std::string ret = "IMDb: google download fehlgeschlagen"; + std::string ret = "IMDb: Google Download fehlgeschlagen"; std::string httpString = "imdb+"; char* searchStr_ = (char*) searchStr.c_str(); @@ -227,7 +227,7 @@ std::string CIMDB::googleIMDb(std::string searchStr) searchStr_++; } - std::string url = surl + "IMDb+" + utf82url(httpString); + std::string url = surl + utf82url(httpString) + "%20site:www.imdb.com"; if (httpTool.downloadFile(url, soutfile.c_str())) {