[PR #12342] [CLOSED] feat: Better movie Detection #12973

Closed
opened 2025-12-22 09:35:55 +01:00 by backuprepo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/jellyfin/jellyfin/pull/12342
Author: @RePhilipp
Created: 7/26/2024
Status: Closed

Base: masterHead: feature/better-movie-detection


📄 Description

Changes
Modifies VideoResolver.CleanDateTime and CleanDateTimeParser to follow the following rules:

  1. Resolve the Date if its explicitly in brackets eg [2019] or (2019)
  2. Resolve what i call "SelfShotMovies" where eg the camera adds its own timestamp 2024-02-21 and handle names uniquely here
  3. Resolve the date by Plausibitliy (eg cant be earlyer than 1929, usually movies are about past happenings but created in the future. future-movies usually are way further in the future)

The lowest number here will be tried to resolved first and if it cant it will try to resolve the next step (eg doesnt have brackets? => go to step 2)
The name part is also being extracted based on rules of common things i found with file-namings

Issues
Resolves [Feature] better-movie-detection
Might Resolve [Issue]: Home Videos Doesn't Consider Metadata based on his filename this should be fixed
Resolves [Feature] Prefix tag naming
Resolves without need of file-ranaming [Feature] possibility-to-ignore-words-postfixes-in-titles-for-identification
Improves on [Feature] allow-scanning-files-that-are-not-organized


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/jellyfin/jellyfin/pull/12342 **Author:** [@RePhilipp](https://github.com/RePhilipp) **Created:** 7/26/2024 **Status:** ❌ Closed **Base:** `master` ← **Head:** `feature/better-movie-detection` --- ### 📄 Description <!-- When trying to parse Name and Date (for only movies) it currently does not support fileNames where the movie starts with a date eg. `2012.Brave.1920x802.BDRip.x264.TrueHD.mkv` This PR rewrites the parsing while still being backwards compatible with the existing naming-structure (see `CleanDateTimeTests` where only tests were added - it even resolves a `// FIXME:`) --> **Changes** Modifies `VideoResolver.CleanDateTime` and `CleanDateTimeParser` to follow the following rules: 1) Resolve the Date if its explicitly in brackets eg [2019] or (2019) 2) Resolve what i call "SelfShotMovies" where eg the camera adds its own timestamp 2024-02-21 and handle names uniquely here 3) Resolve the date by Plausibitliy (eg cant be earlyer than 1929, usually movies are about past happenings but created in the future. future-movies usually are way further in the future) The lowest number here will be tried to resolved first and if it cant it will try to resolve the next step (eg doesnt have brackets? => go to step 2) The name part is also being extracted based on rules of common things i found with file-namings **Issues** Resolves [[Feature] better-movie-detection](https://features.jellyfin.org/posts/2795/better-movie-detectionl) Might Resolve [[Issue]: Home Videos Doesn't Consider Metadata](https://github.com/jellyfin/jellyfin/issues/12178) based on his filename this should be fixed Resolves [[Feature] Prefix tag naming](https://features.jellyfin.org/posts/546/prefix-tag-naming) Resolves without need of file-ranaming [[Feature] possibility-to-ignore-words-postfixes-in-titles-for-identification](https://features.jellyfin.org/posts/2316/possibility-to-ignore-words-postfixes-in-titles-for-identification) Improves on [[Feature] allow-scanning-files-that-are-not-organized](https://features.jellyfin.org/posts/1111/allow-scanning-files-that-are-not-organized) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
backuprepo 2025-12-22 09:35:55 +01:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: starred/jellyfin#12973
No description provided.