system/ytcache: honor 302 redirect

Origin commit data
------------------
Branch: ni/coolstream
Commit: d37b20bc75
Author: martii <m4rtii@gmx.de>
Date: 2014-03-09 (Sun, 09 Mar 2014)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
martii
2014-03-09 13:53:44 +01:00
committed by [CST] Focus
parent 20a871c976
commit 0b0cc5d9fa

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_PROGRESSDATA, this);
curl_easy_setopt(curl, CURLOPT_NOPROGRESS, (long)0);
curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1);
char cerror[CURL_ERROR_SIZE];
curl_easy_setopt(curl, CURLOPT_ERRORBUFFER, cerror);