mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 11:34:57 +02:00
fix cloud sync playback
This commit is contained in:
parent
66ccb313c2
commit
b7ca126410
1 changed files with 2 additions and 3 deletions
|
@ -97,12 +97,11 @@ namespace MediaBrowser.Server.Implementations.Sync
|
||||||
}
|
}
|
||||||
|
|
||||||
// Do not use a pipe here because Roku http requests to the server will fail, without any explicit error message.
|
// Do not use a pipe here because Roku http requests to the server will fail, without any explicit error message.
|
||||||
private const char StreamIdDelimeter = '_';
|
private const string StreamIdDelimeterString = "_";
|
||||||
private const string StreamIdDelimeterString = "|";
|
|
||||||
|
|
||||||
public async Task<MediaSourceInfo> OpenMediaSource(string openToken, CancellationToken cancellationToken)
|
public async Task<MediaSourceInfo> OpenMediaSource(string openToken, CancellationToken cancellationToken)
|
||||||
{
|
{
|
||||||
var openKeys = openToken.Split(new[] { StreamIdDelimeter }, 3);
|
var openKeys = openToken.Split(new[] { StreamIdDelimeterString[0] }, 3);
|
||||||
|
|
||||||
var provider = _syncManager.ServerSyncProviders
|
var provider = _syncManager.ServerSyncProviders
|
||||||
.FirstOrDefault(i => string.Equals(openKeys[0], i.GetType().FullName.GetMD5().ToString("N"), StringComparison.OrdinalIgnoreCase));
|
.FirstOrDefault(i => string.Equals(openKeys[0], i.GetType().FullName.GetMD5().ToString("N"), StringComparison.OrdinalIgnoreCase));
|
||||||
|
|
Loading…
Reference in a new issue