mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-25 11:34:43 +01:00
update app footer
This commit is contained in:
@@ -851,29 +851,7 @@ namespace MediaBrowser.Server.Implementations.LiveTv.EmbyTV
|
||||
var recordPath = RecordingPath;
|
||||
var config = GetConfiguration();
|
||||
|
||||
if (info.IsMovie)
|
||||
{
|
||||
var customRecordingPath = config.MovieRecordingPath;
|
||||
var allowSubfolder = true;
|
||||
if (!string.IsNullOrWhiteSpace(customRecordingPath))
|
||||
{
|
||||
allowSubfolder = string.Equals(customRecordingPath, recordPath, StringComparison.OrdinalIgnoreCase);
|
||||
recordPath = customRecordingPath;
|
||||
}
|
||||
|
||||
if (allowSubfolder && config.EnableRecordingSubfolders)
|
||||
{
|
||||
recordPath = Path.Combine(recordPath, "Movies");
|
||||
}
|
||||
|
||||
var folderName = _fileSystem.GetValidFilename(info.Name).Trim();
|
||||
if (info.ProductionYear.HasValue)
|
||||
{
|
||||
folderName += " (" + info.ProductionYear.Value.ToString(CultureInfo.InvariantCulture) + ")";
|
||||
}
|
||||
recordPath = Path.Combine(recordPath, folderName);
|
||||
}
|
||||
else if (info.IsSeries)
|
||||
if (info.IsSeries)
|
||||
{
|
||||
var customRecordingPath = config.SeriesRecordingPath;
|
||||
var allowSubfolder = true;
|
||||
@@ -910,6 +888,28 @@ namespace MediaBrowser.Server.Implementations.LiveTv.EmbyTV
|
||||
recordPath = Path.Combine(recordPath, folderName);
|
||||
}
|
||||
}
|
||||
else if (info.IsMovie)
|
||||
{
|
||||
var customRecordingPath = config.MovieRecordingPath;
|
||||
var allowSubfolder = true;
|
||||
if (!string.IsNullOrWhiteSpace(customRecordingPath))
|
||||
{
|
||||
allowSubfolder = string.Equals(customRecordingPath, recordPath, StringComparison.OrdinalIgnoreCase);
|
||||
recordPath = customRecordingPath;
|
||||
}
|
||||
|
||||
if (allowSubfolder && config.EnableRecordingSubfolders)
|
||||
{
|
||||
recordPath = Path.Combine(recordPath, "Movies");
|
||||
}
|
||||
|
||||
var folderName = _fileSystem.GetValidFilename(info.Name).Trim();
|
||||
if (info.ProductionYear.HasValue)
|
||||
{
|
||||
folderName += " (" + info.ProductionYear.Value.ToString(CultureInfo.InvariantCulture) + ")";
|
||||
}
|
||||
recordPath = Path.Combine(recordPath, folderName);
|
||||
}
|
||||
else if (info.IsKids)
|
||||
{
|
||||
if (config.EnableRecordingSubfolders)
|
||||
|
||||
Reference in New Issue
Block a user