Try to fix iTunes RSS compatibility

This commit is contained in:
Duncan Sommerville 2015-11-17 17:50:16 -05:00
parent 30c9c730be
commit bdddd6f6ce
3 changed files with 8 additions and 3 deletions

View file

@ -44,7 +44,12 @@ class Application_Common_HTTPHelper
$basePort = "443"; //Airtime Pro compatibility hack
}
$stationUrl = "$scheme://${baseUrl}:${basePort}${baseDir}";
$portStr = "";
if (!(($scheme == "http" && $basePort == "80")
|| ($scheme == "https" && $basePort == "443"))) {
$portStr = ":${basePort}";
}
$stationUrl = "$scheme://${baseUrl}${portStr}${baseDir}";
return $stationUrl;
}