rdcatch download doesn't follow 302 redirects, so certain
downloads fail with the message "invalid url".
I have made a patch to the code that fixes this. It is just a
matter of enabling the feature.
in rivendell 2.2.1
file lib/rddownload.cpp
I added one line .. at line 144:
curl_easy_setopt(curl,CURLOPT_FOLLOWLOCATION,1);
Here it is in context:
radio@gayhead-a:~/rivendell-2.2.1/lib$ diff -U5 rddownload.cpp~
rddownload.cpp
--- rddownload.cpp~ 2012-08-01 11:47:18.000000000 -0400
+++ rddownload.cpp 2012-12-04 01:50:03.000000000 -0500
@@ -139,10 +139,11 @@
curl_easy_setopt(curl,CURLOPT_URL,url);
curl_easy_setopt(curl,CURLOPT_WRITEDATA,f);
strncpy(userpwd,username+":"+password,256);
curl_easy_setopt(curl,CURLOPT_USERPWD,userpwd);
curl_easy_setopt(curl,CURLOPT_TIMEOUT,RD_CURL_TIMEOUT);
+ curl_easy_setopt(curl,CURLOPT_FOLLOWLOCATION,1);
curl_easy_setopt(curl,CURLOPT_PROGRESSFUNCTION,DownloadProgressCallback);
curl_easy_setopt(curl,CURLOPT_PROGRESSDATA,this);
curl_easy_setopt(curl,CURLOPT_NOPROGRESS,0);
if(log_debug) {
curl_easy_setopt(curl,CURLOPT_VERBOSE,1);
_______________________________________________
Rivendell-dev mailing list
[email protected]
http://lists.rivendellaudio.org/mailman/listinfo/rivendell-dev