mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-08-20 11:25:58 +00:00
metaTransportUrl query param for video removed
This commit is contained in:
parent
e1533fbf2a
commit
7fbb445b53
1 changed files with 1 additions and 2 deletions
|
|
@ -60,13 +60,12 @@ const withLibItem = ({ libItem, streams = {} }) => {
|
|||
};
|
||||
|
||||
const withVideo = ({ video, metaTransportUrl, metaItem, streams = {} }) => {
|
||||
const queryParams = new URLSearchParams([['metaTransportUrl', metaTransportUrl]]);
|
||||
const [stream, streamTransportUrl] = typeof streams[`${encodeURIComponent(metaItem.id)}/${encodeURIComponent(video.id)}`] === 'object' ?
|
||||
streams[`${encodeURIComponent(metaItem.id)}/${encodeURIComponent(video.id)}`]
|
||||
:
|
||||
[];
|
||||
return {
|
||||
meta_details_streams: `#/metadetails/${encodeURIComponent(metaItem.type)}/${encodeURIComponent(metaItem.id)}/${encodeURIComponent(video.id)}?${queryParams.toString()}`,
|
||||
meta_details_streams: `#/metadetails/${encodeURIComponent(metaItem.type)}/${encodeURIComponent(metaItem.id)}/${encodeURIComponent(video.id)}`,
|
||||
// TODO check if stream is external
|
||||
player: typeof stream === 'object' && typeof streamTransportUrl === 'string' ?
|
||||
`#/player/${encodeURIComponent(serializeStream(stream))}/${encodeURIComponent(streamTransportUrl)}/${encodeURIComponent(metaTransportUrl)}/${encodeURIComponent(metaItem.type)}/${encodeURIComponent(metaItem.id)}/${encodeURIComponent(video.id)}`
|
||||
|
|
|
|||
Loading…
Reference in a new issue