mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-22 01:54:42 +01:00
update recording save path
This commit is contained in:
@@ -100,12 +100,7 @@ namespace MediaBrowser.Controller.Entities.Movies
|
||||
/// <returns>System.String.</returns>
|
||||
protected override string CreateUserDataKey()
|
||||
{
|
||||
var key = this.GetProviderId(MetadataProviders.Tmdb);
|
||||
|
||||
if (string.IsNullOrWhiteSpace(key))
|
||||
{
|
||||
key = this.GetProviderId(MetadataProviders.Imdb);
|
||||
}
|
||||
var key = GetMovieUserDataKey(this);
|
||||
|
||||
if (string.IsNullOrWhiteSpace(key))
|
||||
{
|
||||
@@ -115,6 +110,18 @@ namespace MediaBrowser.Controller.Entities.Movies
|
||||
return key;
|
||||
}
|
||||
|
||||
public static string GetMovieUserDataKey(BaseItem movie)
|
||||
{
|
||||
var key = movie.GetProviderId(MetadataProviders.Tmdb);
|
||||
|
||||
if (string.IsNullOrWhiteSpace(key))
|
||||
{
|
||||
key = movie.GetProviderId(MetadataProviders.Imdb);
|
||||
}
|
||||
|
||||
return key;
|
||||
}
|
||||
|
||||
protected override async Task<bool> RefreshedOwnedItems(MetadataRefreshOptions options, List<FileSystemInfo> fileSystemChildren, CancellationToken cancellationToken)
|
||||
{
|
||||
var hasChanges = await base.RefreshedOwnedItems(options, fileSystemChildren, cancellationToken).ConfigureAwait(false);
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using MediaBrowser.Controller.Entities;
|
||||
using MediaBrowser.Controller.Entities.Movies;
|
||||
using MediaBrowser.Controller.Providers;
|
||||
using MediaBrowser.Model.Configuration;
|
||||
using MediaBrowser.Model.LiveTv;
|
||||
@@ -17,6 +18,15 @@ namespace MediaBrowser.Controller.LiveTv
|
||||
/// <returns>System.String.</returns>
|
||||
protected override string CreateUserDataKey()
|
||||
{
|
||||
if (IsMovie)
|
||||
{
|
||||
var key = Movie.GetMovieUserDataKey(this);
|
||||
|
||||
if (!string.IsNullOrWhiteSpace(key))
|
||||
{
|
||||
return key;
|
||||
}
|
||||
}
|
||||
return GetClientTypeName() + "-" + Name;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using MediaBrowser.Controller.Entities;
|
||||
using MediaBrowser.Controller.Entities.Movies;
|
||||
using MediaBrowser.Model.Configuration;
|
||||
using MediaBrowser.Model.Dto;
|
||||
using MediaBrowser.Model.Entities;
|
||||
@@ -40,6 +41,16 @@ namespace MediaBrowser.Controller.LiveTv
|
||||
/// <returns>System.String.</returns>
|
||||
protected override string CreateUserDataKey()
|
||||
{
|
||||
if (IsMovie)
|
||||
{
|
||||
var key = Movie.GetMovieUserDataKey(this);
|
||||
|
||||
if (!string.IsNullOrWhiteSpace(key))
|
||||
{
|
||||
return key;
|
||||
}
|
||||
}
|
||||
|
||||
var name = GetClientTypeName();
|
||||
|
||||
if (!string.IsNullOrEmpty(ProgramId))
|
||||
|
||||
Reference in New Issue
Block a user