From d37b20bc750087fa348fe20ef22a7f523a07a448 Mon Sep 17 00:00:00 2001 From: martii Date: Sun, 9 Mar 2014 13:53:44 +0100 Subject: [PATCH] system/ytcache: honor 302 redirect --- src/system/ytcache.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/system/ytcache.cpp b/src/system/ytcache.cpp index e23287868..774ec7026 100644 --- a/src/system/ytcache.cpp +++ b/src/system/ytcache.cpp @@ -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);