Add "-L" to default curl options, to follow redirects if needed
authorSteve McIntyre <steve@einval.com>
Fri, 13 Jan 2017 00:34:15 +0000 (00:34 +0000)
committerSteve McIntyre <steve@einval.com>
Fri, 13 Jan 2017 00:34:15 +0000 (00:34 +0000)
Closes Issue 40:
https://abcde.einval.com/bugzilla/show_bug.cgi?id=40
Thanks to Gabriel Rosenkoetter for the patch.

abcde
changelog

diff --git a/abcde b/abcde
index db02085..e49161e 100755 (executable)
--- a/abcde
+++ b/abcde
@@ -3846,7 +3846,7 @@ fi
 if [ "$HTTPGETOPTS" = "" ] ; then
        case $HTTPGET in
                wget) HTTPGETOPTS="-q -nv -e timestamping=off -O -";;
-               curl) HTTPGETOPTS="-f -s";;
+               curl) HTTPGETOPTS="-f -s -L";;
                fetch)HTTPGETOPTS="-q -o -";;
                ftp)  HTTPGETOPTS="-a -V -o - ";;
                *) log warning "HTTPGET in non-standard and HTTPGETOPTS are not defined." ;;
index bfdf022..6abf8c5 100644 (file)
--- a/changelog
+++ b/changelog
@@ -33,6 +33,10 @@ abcde 2.8
     e.g. non-ascii text in track titles!
     Closes Issue 24:
     https://abcde.einval.com/bugzilla/show_bug.cgi?id=24
+  * Add "-L" to default curl options, to follow redirects if needed
+    Closes Issue 40:
+    https://abcde.einval.com/bugzilla/show_bug.cgi?id=40
+    Thanks to Gabriel Rosenkoetter for the patch.
 
 abcde 2.7.2