mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-01-15 15:48:03 +00:00
Fix modification checks and make sure to use UTC (#14347)
Some checks are pending
OpenAPI / OpenAPI - HEAD (push) Waiting to run
CodeQL / Analyze (csharp) (push) Waiting to run
OpenAPI / OpenAPI - BASE (push) Waiting to run
OpenAPI / OpenAPI - Difference (push) Blocked by required conditions
OpenAPI / OpenAPI - Publish Unstable Spec (push) Blocked by required conditions
OpenAPI / OpenAPI - Publish Stable Spec (push) Blocked by required conditions
Tests / run-tests (macos-latest) (push) Waiting to run
Tests / run-tests (ubuntu-latest) (push) Waiting to run
Tests / run-tests (windows-latest) (push) Waiting to run
Project Automation / Project board (push) Waiting to run
Merge Conflict Labeler / Labeling (push) Waiting to run
Some checks are pending
OpenAPI / OpenAPI - HEAD (push) Waiting to run
CodeQL / Analyze (csharp) (push) Waiting to run
OpenAPI / OpenAPI - BASE (push) Waiting to run
OpenAPI / OpenAPI - Difference (push) Blocked by required conditions
OpenAPI / OpenAPI - Publish Unstable Spec (push) Blocked by required conditions
OpenAPI / OpenAPI - Publish Stable Spec (push) Blocked by required conditions
Tests / run-tests (macos-latest) (push) Waiting to run
Tests / run-tests (ubuntu-latest) (push) Waiting to run
Tests / run-tests (windows-latest) (push) Waiting to run
Project Automation / Project board (push) Waiting to run
Merge Conflict Labeler / Labeling (push) Waiting to run
This commit is contained in:
@@ -22,7 +22,7 @@ public class BaseItemImageInfo
|
||||
/// <summary>
|
||||
/// Gets or Sets the time the image was last modified.
|
||||
/// </summary>
|
||||
public DateTime DateModified { get; set; }
|
||||
public DateTime? DateModified { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets the imagetype.
|
||||
|
||||
@@ -82,7 +82,7 @@ public static class QueryPartitionHelpers
|
||||
/// <typeparam name="TEntity">The entity to load.</typeparam>
|
||||
/// <param name="partitionInfo">The source query.</param>
|
||||
/// <param name="partitionSize">The number of elements to load per partition.</param>
|
||||
/// <param name="cancellationToken">The cancelation token.</param>
|
||||
/// <param name="cancellationToken">The cancellation token.</param>
|
||||
/// <returns>A enumerable representing the whole of the query.</returns>
|
||||
public static async IAsyncEnumerable<TEntity> PartitionAsync<TEntity>(this ProgressablePartitionReporting<TEntity> partitionInfo, int partitionSize, [EnumeratorCancellation] CancellationToken cancellationToken = default)
|
||||
{
|
||||
@@ -98,7 +98,7 @@ public static class QueryPartitionHelpers
|
||||
/// <typeparam name="TEntity">The entity to load.</typeparam>
|
||||
/// <param name="partitionInfo">The source query.</param>
|
||||
/// <param name="partitionSize">The number of elements to load per partition.</param>
|
||||
/// <param name="cancellationToken">The cancelation token.</param>
|
||||
/// <param name="cancellationToken">The cancellation token.</param>
|
||||
/// <returns>A enumerable representing the whole of the query.</returns>
|
||||
public static async IAsyncEnumerable<TEntity> PartitionEagerAsync<TEntity>(this ProgressablePartitionReporting<TEntity> partitionInfo, int partitionSize, [EnumeratorCancellation] CancellationToken cancellationToken = default)
|
||||
{
|
||||
@@ -115,7 +115,7 @@ public static class QueryPartitionHelpers
|
||||
/// <param name="query">The source query.</param>
|
||||
/// <param name="partitionSize">The number of elements to load per partition.</param>
|
||||
/// <param name="progressablePartition">Reporting helper.</param>
|
||||
/// <param name="cancellationToken">The cancelation token.</param>
|
||||
/// <param name="cancellationToken">The cancellation token.</param>
|
||||
/// <returns>A enumerable representing the whole of the query.</returns>
|
||||
public static async IAsyncEnumerable<TEntity> PartitionAsync<TEntity>(
|
||||
this IOrderedQueryable<TEntity> query,
|
||||
@@ -154,7 +154,7 @@ public static class QueryPartitionHelpers
|
||||
/// <param name="query">The source query.</param>
|
||||
/// <param name="partitionSize">The number of elements to load per partition.</param>
|
||||
/// <param name="progressablePartition">Reporting helper.</param>
|
||||
/// <param name="cancellationToken">The cancelation token.</param>
|
||||
/// <param name="cancellationToken">The cancellation token.</param>
|
||||
/// <returns>A enumerable representing the whole of the query.</returns>
|
||||
public static async IAsyncEnumerable<TEntity> PartitionEagerAsync<TEntity>(
|
||||
this IOrderedQueryable<TEntity> query,
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,37 @@
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace Jellyfin.Server.Implementations.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class BaseItemImageInfoDateModifiedNullable : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AlterColumn<DateTime>(
|
||||
name: "DateModified",
|
||||
table: "BaseItemImageInfos",
|
||||
type: "TEXT",
|
||||
nullable: true,
|
||||
oldClrType: typeof(DateTime),
|
||||
oldType: "TEXT");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AlterColumn<DateTime>(
|
||||
name: "DateModified",
|
||||
table: "BaseItemImageInfos",
|
||||
type: "TEXT",
|
||||
nullable: false,
|
||||
defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
|
||||
oldClrType: typeof(DateTime),
|
||||
oldType: "TEXT",
|
||||
oldNullable: true);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -418,7 +418,7 @@ namespace Jellyfin.Server.Implementations.Migrations
|
||||
b.Property<byte[]>("Blurhash")
|
||||
.HasColumnType("BLOB");
|
||||
|
||||
b.Property<DateTime>("DateModified")
|
||||
b.Property<DateTime?>("DateModified")
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<int>("Height")
|
||||
|
||||
@@ -1166,7 +1166,7 @@ namespace Jellyfin.LiveTv.Channels
|
||||
}
|
||||
}
|
||||
|
||||
if (isNew || forceUpdate || item.DateLastRefreshed == default)
|
||||
if (isNew || forceUpdate || item.DateLastRefreshed == DateTime.MinValue)
|
||||
{
|
||||
_providerManager.QueueRefresh(item.Id, new MetadataRefreshOptions(new DirectoryService(_fileSystem)), RefreshPriority.Normal);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user