mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-22 10:04:44 +01:00
live tv stream adjustments, add additional dlna params
This commit is contained in:
@@ -173,14 +173,6 @@ namespace MediaBrowser.Server.Implementations.FileOrganization
|
||||
|
||||
if (!overwriteExisting)
|
||||
{
|
||||
if (fileExists || otherDuplicatePaths.Count > 0)
|
||||
{
|
||||
result.Status = FileSortingStatus.SkippedExisting;
|
||||
result.StatusMessage = string.Empty;
|
||||
result.DuplicatePaths = otherDuplicatePaths;
|
||||
return;
|
||||
}
|
||||
|
||||
if (options.CopyOriginalFile && fileExists && IsSameEpisode(sourcePath, newPath))
|
||||
{
|
||||
_logger.Info("File {0} already copied to new path {1}, stopping organization", sourcePath, newPath);
|
||||
@@ -188,10 +180,16 @@ namespace MediaBrowser.Server.Implementations.FileOrganization
|
||||
result.StatusMessage = string.Empty;
|
||||
return;
|
||||
}
|
||||
|
||||
if (fileExists || otherDuplicatePaths.Count > 0)
|
||||
{
|
||||
result.Status = FileSortingStatus.SkippedExisting;
|
||||
result.StatusMessage = string.Empty;
|
||||
result.DuplicatePaths = otherDuplicatePaths;
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
PerformFileSorting(options, result);
|
||||
|
||||
if (overwriteExisting)
|
||||
|
||||
@@ -306,6 +306,18 @@ namespace MediaBrowser.Server.Implementations.HttpServer
|
||||
throw new ArgumentNullException("path");
|
||||
}
|
||||
|
||||
return GetStaticFileResult(requestContext, path, MimeTypes.GetMimeType(path), fileShare, responseHeaders, isHeadRequest);
|
||||
}
|
||||
|
||||
public object GetStaticFileResult(IRequest requestContext, string path, string contentType,
|
||||
FileShare fileShare = FileShare.Read, IDictionary<string, string> responseHeaders = null,
|
||||
bool isHeadRequest = false)
|
||||
{
|
||||
if (string.IsNullOrEmpty(path))
|
||||
{
|
||||
throw new ArgumentNullException("path");
|
||||
}
|
||||
|
||||
if (fileShare != FileShare.Read && fileShare != FileShare.ReadWrite)
|
||||
{
|
||||
throw new ArgumentException("FileShare must be either Read or ReadWrite");
|
||||
@@ -315,7 +327,7 @@ namespace MediaBrowser.Server.Implementations.HttpServer
|
||||
|
||||
var cacheKey = path + dateModified.Ticks;
|
||||
|
||||
return GetStaticResult(requestContext, cacheKey.GetMD5(), dateModified, null, MimeTypes.GetMimeType(path), () => Task.FromResult(GetFileStream(path, fileShare)), responseHeaders, isHeadRequest);
|
||||
return GetStaticResult(requestContext, cacheKey.GetMD5(), dateModified, null, contentType, () => Task.FromResult(GetFileStream(path, fileShare)), responseHeaders, isHeadRequest);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -56,21 +56,6 @@ namespace MediaBrowser.Server.Implementations.Library.Resolvers.Movies
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
// If the parent is not a boxset, the only other allowed parent type is Folder
|
||||
if (!(args.Parent is BoxSet))
|
||||
{
|
||||
if (args.Parent.GetType() != typeof(Folder))
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Since the looping is expensive, this is an optimization to help us avoid it
|
||||
if (args.Path.IndexOf("[tvdbid", StringComparison.OrdinalIgnoreCase) != -1)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
var isDirectory = args.IsDirectory;
|
||||
|
||||
Reference in New Issue
Block a user