mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 00:11:08 +02:00
imdb: enable explicit search on www.imdb.com
Origin commit data
------------------
Branch: ni/coolstream
Commit: 27ad3ad04a
Author: gixxpunk <thomas.harfmann@gmail.com>
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
This commit is contained in:
@@ -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
|
||||
|
@@ -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()))
|
||||
{
|
||||
|
Reference in New Issue
Block a user