imdb.cpp: fix parsing google file

This commit is contained in:
FlatTV
2018-05-05 21:10:34 +02:00
committed by Thilo Graf
parent 09c1b46ab3
commit cccb6a7ce6

View File

@@ -231,11 +231,11 @@ std::string CIMDB::googleIMDb(std::string s)
search_char++; search_char++;
} }
std::string url = search_url + utf82url(search_string) + "%20site:www.imdb.com"; std::string url = search_url + utf82url(search_string) + "%20www.imdb.com";
if (httpTool.downloadFile(url, search_outfile.c_str())) if (httpTool.downloadFile(url, search_outfile.c_str()))
{ {
ret = parseFile("http://www.imdb.com/title/", ">", search_outfile.c_str()); ret = parseFile("https://www.imdb.com/title/", ">", search_outfile.c_str());
if(ret.empty()) if(ret.empty())
ret = parseFile("http://www.imdb.de/title/", ">", search_outfile.c_str()); ret = parseFile("http://www.imdb.de/title/", ">", search_outfile.c_str());