fix streaming error
This commit is contained in:
parent
042a33abfb
commit
7251d9d75c
|
@ -809,6 +809,11 @@ namespace MediaBrowser.Api.Playback
|
|||
/// <returns>System.String.</returns>
|
||||
protected string GetUserAgent(string path)
|
||||
{
|
||||
if (string.IsNullOrEmpty(path))
|
||||
{
|
||||
throw new ArgumentNullException("path");
|
||||
|
||||
}
|
||||
if (path.IndexOf("apple.com", StringComparison.OrdinalIgnoreCase) != -1)
|
||||
{
|
||||
return "QuickTime/7.7.4";
|
||||
|
@ -892,6 +897,9 @@ namespace MediaBrowser.Api.Playback
|
|||
{
|
||||
item = DtoService.GetItemByDtoId(request.Id);
|
||||
|
||||
state.MediaPath = item.Path;
|
||||
state.IsRemote = item.LocationType == LocationType.Remote;
|
||||
|
||||
var video = item as Video;
|
||||
|
||||
if (video != null)
|
||||
|
|
|
@ -101,7 +101,7 @@ namespace MediaBrowser.Providers.Movies
|
|||
var timestampFileInfo = new FileInfo(timestampFile);
|
||||
|
||||
// Don't check for updates every single time
|
||||
if (timestampFileInfo.Exists && (DateTime.UtcNow - _fileSystem.GetLastWriteTimeUtc(timestampFileInfo)).TotalDays < 3)
|
||||
if (timestampFileInfo.Exists && (DateTime.UtcNow - _fileSystem.GetLastWriteTimeUtc(timestampFileInfo)).TotalDays < 7)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -77,7 +77,7 @@ namespace MediaBrowser.Providers.Movies
|
|||
var timestampFileInfo = new FileInfo(timestampFile);
|
||||
|
||||
// Don't check for updates every single time
|
||||
if (timestampFileInfo.Exists && (DateTime.UtcNow - _fileSystem.GetLastWriteTimeUtc(timestampFileInfo)).TotalDays < 3)
|
||||
if (timestampFileInfo.Exists && (DateTime.UtcNow - _fileSystem.GetLastWriteTimeUtc(timestampFileInfo)).TotalDays < 10)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user