Skip to content

Commit 19800a4

Browse files
committedOct 21, 2024·
Update API docs
1 parent ccbbbae commit 19800a4

3 files changed

+8
-17
lines changed
 

‎docs/api/components_home_LoadItemsTask.bs.html

+1
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@
7575
params["DisableFirstEpisode"] = false
7676
params["limit"] = 24
7777
params["EnableTotalRecordCount"] = false
78+
params["EnableResumable"] = false
7879

7980
maxDaysInNextUp = userSettings["ui.details.maxdaysnextup"].ToInt()
8081
if isValid(maxDaysInNextUp)

‎docs/api/source_api_Items.bs.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@
4949

5050
' force the server to transcode AAC profiles we don't support to MP3 instead of the usual AAC
5151
' TODO: Remove this after server adds support for transcoding AAC from one profile to another
52-
if LCase(selectedAudioStream.Codec) = "aac"
53-
if LCase(selectedAudioStream.Profile) = "main" or LCase(selectedAudioStream.Profile) = "he-aac"
52+
if selectedAudioStream.Codec <> invalid and LCase(selectedAudioStream.Codec) = "aac"
53+
if selectedAudioStream.Profile <> invalid and LCase(selectedAudioStream.Profile) = "main" or LCase(selectedAudioStream.Profile) = "he-aac"
5454
for each rule in deviceProfile.TranscodingProfiles
5555
if rule.Container = "ts" or rule.Container = "mp4"
5656
if rule.AudioCodec = "aac"

‎docs/api/source_utils_deviceCapabilities.bs.html

+5-15
Original file line numberDiff line numberDiff line change
@@ -303,21 +303,11 @@
303303
end if
304304

305305
' AV1
306-
for each container in transcodingContainers
307-
if di.CanDecodeVideo({ Codec: "av1", Container: container }).Result
308-
if container = "mp4"
309-
' check for codec string before adding it
310-
if mp4VideoCodecs.Instr(0, ",av1") = -1
311-
mp4VideoCodecs = mp4VideoCodecs + ",av1"
312-
end if
313-
else if container = "ts"
314-
' check for codec string before adding it
315-
if tsVideoCodecs.Instr(0, ",av1") = -1
316-
tsVideoCodecs = tsVideoCodecs + ",av1"
317-
end if
318-
end if
319-
end if
320-
end for
306+
' CanDecodeVideo() returns false for AV1 when the container is provided
307+
' Manually add AV1 to the mp4VideoCodecs list if support is detected
308+
if di.CanDecodeVideo({ Codec: "av1" }).Result
309+
mp4VideoCodecs = mp4VideoCodecs + ",av1"
310+
end if
321311

322312
' AUDIO CODECS
323313
for each container in transcodingContainers

0 commit comments

Comments
 (0)
Please sign in to comment.