mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-01-23 23:20:51 +01:00
[PR #11816] Add file hash to images and remove duplicates after scan #12832
Labels
No labels
area:database
awaiting-feedback
backend
blocked
breaking change: web api
bug
build
ci
confirmed
discussion needed
dotnet future
downstream
duplicate
EFjellyfin.db
enhancement
feature
future
github-actions
good first issue
hdr
help wanted
invalid
investigation
librarydb
live-tv
lyrics
media playback
music
needs testing
nuget
performance
platform
pull-request
question
regression
release critical
requires-web
roadmap
security
security
stale
support
syncplay
ui & ux
upstream
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: starred/jellyfin#12832
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/jellyfin/jellyfin/pull/11816
Author: @Shadowghost
Created: 5/24/2024
Status: 🔄 Open
Base:
master← Head:fix-duplicate-backdrops📝 Commits (1)
208811fAdd file hash to images and remove duplicates after scan📊 Changes
15 files changed (+2057 additions, -191 deletions)
View changed files
📝
Directory.Packages.props(+1 -0)📝
Emby.Server.Implementations/Library/LibraryManager.cs(+50 -2)📝
Jellyfin.Server.Implementations/Item/BaseItemRepository.cs(+1 -0)📝
Jellyfin.Server.Implementations/Item/ChapterRepository.cs(+12 -23)📝
MediaBrowser.Controller/Drawing/IImageProcessor.cs(+11 -4)📝
MediaBrowser.Controller/Entities/BaseItem.cs(+1 -0)📝
MediaBrowser.Controller/Entities/ItemImageInfo.cs(+6 -0)📝
src/Jellyfin.Database/Jellyfin.Database.Implementations/Entities/BaseItemImageInfo.cs(+7 -3)➕
src/Jellyfin.Database/Jellyfin.Database.Providers.Sqlite/Migrations/20250326065939_AddImageFileHash.Designer.cs(+1655 -0)➕
src/Jellyfin.Database/Jellyfin.Database.Providers.Sqlite/Migrations/20250326065939_AddImageFileHash.cs(+28 -0)📝
src/Jellyfin.Database/Jellyfin.Database.Providers.Sqlite/Migrations/JellyfinDbModelSnapshot.cs(+139 -78)📝
src/Jellyfin.Drawing/ImageProcessor.cs(+60 -13)📝
src/Jellyfin.Drawing/Jellyfin.Drawing.csproj(+1 -0)📝
tests/Jellyfin.Server.Implementations.Tests/Data/SqliteItemRepositoryTests.cs(+85 -67)📝
tests/Jellyfin.Server.Implementations.Tests/EfMigrations/EfMigrationTests.cs(+0 -1)📄 Description
We are allowing multiple backdrops but never clean up duplicates after scan - these might appear if we have an image in the media folder and download the image from the NFO but they are the same.
Changes
XxHash3to calcultate image file hash on scan if we haven't alreadyToDo
Issues
Fixes #9456
Replaces #9551
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.