system/ytcache: honor 302 redirect

This commit is contained in:
martii
2014-03-09 13:53:44 +01:00
committed by [CST] Focus
parent 4198971638
commit d37b20bc75

View File

@@ -140,6 +140,7 @@ bool cYTCache::download(MI_MOVIE_INFO *mi)
curl_easy_setopt(curl, CURLOPT_PROGRESSFUNCTION, cYTCache::curlProgress); curl_easy_setopt(curl, CURLOPT_PROGRESSFUNCTION, cYTCache::curlProgress);
curl_easy_setopt(curl, CURLOPT_PROGRESSDATA, this); curl_easy_setopt(curl, CURLOPT_PROGRESSDATA, this);
curl_easy_setopt(curl, CURLOPT_NOPROGRESS, (long)0); curl_easy_setopt(curl, CURLOPT_NOPROGRESS, (long)0);
curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1);
char cerror[CURL_ERROR_SIZE]; char cerror[CURL_ERROR_SIZE];
curl_easy_setopt(curl, CURLOPT_ERRORBUFFER, cerror); curl_easy_setopt(curl, CURLOPT_ERRORBUFFER, cerror);