We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8b21e00 + 371acbe commit 41b4b2bCopy full SHA for 41b4b2b
root/usr/local/bin/flac2mp3.sh
@@ -630,6 +630,9 @@ elif [ -f "$flac2mp3_config" ]; then
630
# Check for localhost
631
[[ $flac2mp3_bindaddress = "*" ]] && flac2mp3_bindaddress=localhost
632
633
+ # Strip leading and trailing forward slashes from URL base
634
+ flac2mp3_urlbase="$(echo "$flac2mp3_urlbase" | sed -re 's/^\/+//; s/\/+$//')"
635
+
636
# Build URL to Lidarr API
637
flac2mp3_api_url="http://$flac2mp3_bindaddress:$flac2mp3_port${flac2mp3_urlbase:+/$flac2mp3_urlbase}/api/v1"
638
0 commit comments