mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-26 23:13:00 +02:00
Merge branch 'ni/tuxbox' of bitbucket.org:neutrino-images/ni-neutrino-hd into ni/tuxbox
Origin commit data
------------------
Commit: 903ef5671b
Author: vanhofen <vanhofen@gmx.de>
Date: 2017-05-30 (Tue, 30 May 2017)
This commit is contained in:
@@ -206,7 +206,7 @@ std::string CIMDB::googleIMDb(std::string s)
|
|||||||
{
|
{
|
||||||
CHTTPTool httpTool;
|
CHTTPTool httpTool;
|
||||||
std::string ret = search_error;
|
std::string ret = search_error;
|
||||||
std::string search_string("");
|
std::string search_string("title+");
|
||||||
char* search_char = (char*) s.c_str();
|
char* search_char = (char*) s.c_str();
|
||||||
|
|
||||||
m.clear();
|
m.clear();
|
||||||
@@ -323,6 +323,16 @@ int CIMDB::getIMDb(const std::string& epgTitle)
|
|||||||
//download Poster
|
//download Poster
|
||||||
if(m["Poster"] != "N/A")
|
if(m["Poster"] != "N/A")
|
||||||
{
|
{
|
||||||
|
// if possible load bigger image
|
||||||
|
std::string origURL ("300");
|
||||||
|
std::string replURL ("600");
|
||||||
|
|
||||||
|
if (m["Poster"].compare(m["Poster"].size()-7,3,origURL) == 0){
|
||||||
|
//std::cout << "########## " << m["Poster"] << " contains " << origURL << '\n';
|
||||||
|
m["Poster"].replace(m["Poster"].size()-7,3,replURL);
|
||||||
|
//std::cout << "########## New string: " << m["Poster"] << '\n';
|
||||||
|
}
|
||||||
|
|
||||||
if (httpTool.downloadFile(m["Poster"], posterfile.c_str()))
|
if (httpTool.downloadFile(m["Poster"], posterfile.c_str()))
|
||||||
return 2;
|
return 2;
|
||||||
else {
|
else {
|
||||||
|
Reference in New Issue
Block a user