save to variable to prevent calling join() twice

This commit is contained in:
Charles Ewert 2023-06-01 00:37:04 -04:00
parent 9c0228a7e8
commit 0027295dad

View File

@ -430,11 +430,12 @@ function GetDirectPlayProfiles() as object
returnArray = []
for each container in supportedCodecs
if supportedCodecs[container]["video"].Join(",") <> ""
videoCodecString = supportedCodecs[container]["video"].Join(",")
if videoCodecString <> ""
returnArray.push({
"Container": container,
"Type": "Video",
"VideoCodec": supportedCodecs[container]["video"].Join(","),
"VideoCodec": videoCodecString,
"AudioCodec": supportedCodecs[container]["audio"].Join(",")
})
end if