Merge pull request #2091 from softworkz/EtagForSync

Provide (unique) ETag value for synced media sources
This commit is contained in:
Luke 2016-08-26 13:34:45 -04:00 committed by GitHub
commit 4964899fa3

View File

@ -144,6 +144,10 @@ namespace MediaBrowser.Server.Implementations.Sync
{ {
mediaSource.Id = item.Id; mediaSource.Id = item.Id;
mediaSource.SupportsTranscoding = false; mediaSource.SupportsTranscoding = false;
if (mediaSource.Protocol == Model.MediaInfo.MediaProtocol.File)
{
mediaSource.ETag = item.Id;
}
} }
public Task CloseMediaSource(string liveStreamId, CancellationToken cancellationToken) public Task CloseMediaSource(string liveStreamId, CancellationToken cancellationToken)