mirror of
https://github.com/tapframe/NuvioStreaming.git
synced 2026-08-19 05:45:41 +00:00
fix(plugins): map plugin subtitles to StreamItem.externalSubtitles
This commit is contained in:
parent
5fd0ab6ea2
commit
adf5d18462
1 changed files with 8 additions and 0 deletions
|
|
@ -124,6 +124,14 @@ internal fun PluginRuntimeResult.toStreamItem(
|
|||
proxyHeaders = StreamProxyHeaders(request = requestHeaders),
|
||||
)
|
||||
},
|
||||
externalSubtitles = subtitles?.map {
|
||||
StreamSubtitle(
|
||||
url = it.url,
|
||||
language = it.language,
|
||||
name = it.name,
|
||||
headers = it.headers
|
||||
)
|
||||
} ?: emptyList()
|
||||
)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue