Merge pull request #1320 from candry7731/patch-3

This commit is contained in:
Charles Ewert 2023-06-29 22:50:25 -04:00 committed by GitHub
commit c7ab47e8fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 14 additions and 2 deletions

View File

@ -88,6 +88,9 @@ function GetTranscodingStats(deviceSession)
data = "<b>• " + tr("Audio Channels") + ":</b> " + Str(audioChannels)
sessionStats.data.push(data)
end if
else
sessionStats.data.push("<header>" + tr("Direct playing") + "</header>")
sessionStats.data.push("<b>" + tr("The source file is entirely compatible with this client and the session is receiving the file without modifications.") + "</b>")
end if
if havePlaybackInfo()

View File

@ -1113,6 +1113,15 @@
<source>Set how many seconds before the end of an episode the Next Episode button should appear. Set to 0 to disable.</source>
<translation>Set how many seconds before the end of an episode the Next Episode button should appear. Set to 0 to disable.</translation>
<extracomment>Settings Menu - Description for option</extracomment>
</message>
<message>
<source>Direct playing</source>
<translation>Direct playing</translation>
</message>
<message>
<source>The source file is entirely compatible with this client and the session is receiving the file without modifications.</source>
<translation>The source file is entirely compatible with this client and the session is receiving the file without modifications.</translation>
<extracomment>Direct play info box text in GetPlaybackInfoTask.brs</extracomment>
</message>
</context>
</TS>
</TS>

View File

@ -1374,7 +1374,7 @@ namespace api
end function
' Gets a list of sessions.
function Get(params = {} as object)
function Get(params = { "deviceId": m.global.device.id } as object)
req = APIRequest("/sessions", params)
return getJson(req)
end function