mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-20 07:45:26 +03:00
save additional info to recording nfo's
This commit is contained in:
@@ -229,7 +229,6 @@ namespace Emby.Server.Implementations.Sync
|
||||
commandText = "update SyncJobs set TargetId=?,Name=?,Profile=?,Quality=?,Bitrate=?,Status=?,Progress=?,UserId=?,ItemIds=?,Category=?,ParentId=?,UnwatchedOnly=?,ItemLimit=?,SyncNewContent=?,DateCreated=?,DateLastModified=?,ItemCount=? where Id=?";
|
||||
}
|
||||
|
||||
paramList.Add(job.Id.ToGuidParamValue());
|
||||
paramList.Add(job.TargetId);
|
||||
paramList.Add(job.Name);
|
||||
paramList.Add(job.Profile);
|
||||
@@ -249,6 +248,15 @@ namespace Emby.Server.Implementations.Sync
|
||||
paramList.Add(job.DateLastModified.ToDateTimeParamValue());
|
||||
paramList.Add(job.ItemCount);
|
||||
|
||||
if (insert)
|
||||
{
|
||||
paramList.Insert(0, job.Id.ToGuidParamValue());
|
||||
}
|
||||
else
|
||||
{
|
||||
paramList.Add(job.Id.ToGuidParamValue());
|
||||
}
|
||||
|
||||
connection.RunInTransaction(conn =>
|
||||
{
|
||||
conn.Execute(commandText, paramList.ToArray());
|
||||
@@ -698,7 +706,6 @@ namespace Emby.Server.Implementations.Sync
|
||||
}
|
||||
|
||||
var paramList = new List<object>();
|
||||
paramList.Add(jobItem.Id.ToGuidParamValue());
|
||||
paramList.Add(jobItem.ItemId);
|
||||
paramList.Add(jobItem.ItemName);
|
||||
paramList.Add(jobItem.MediaSourceId);
|
||||
@@ -716,6 +723,15 @@ namespace Emby.Server.Implementations.Sync
|
||||
paramList.Add(jobItem.JobItemIndex);
|
||||
paramList.Add(jobItem.ItemDateModifiedTicks);
|
||||
|
||||
if (insert)
|
||||
{
|
||||
paramList.Insert(0, jobItem.Id.ToGuidParamValue());
|
||||
}
|
||||
else
|
||||
{
|
||||
paramList.Add(jobItem.Id.ToGuidParamValue());
|
||||
}
|
||||
|
||||
connection.RunInTransaction(conn =>
|
||||
{
|
||||
conn.Execute(commandText, paramList.ToArray());
|
||||
|
||||
Reference in New Issue
Block a user