GokuPlay609 c2645000e5 fix: improve quality detection regex to match 2160p, UHD, FullHD and other keywords (#450)
## What

Two-line fix to the quality detection regex in
`media_manager/indexer/schemas.py`.

**UHD pattern**: `\b(4k)\b` → `\b(4k|2160p|uhd)\b`  
**FullHD pattern**: `\b(1080p)\b` → `\b(1080p|fullhd|full\s*hd)\b`

## Why

The UHD regex only matched the literal keyword `4k`. Torrent titles
containing `2160p` or `UHD` (but not `4k`) were classified as
`Quality.unknown` (value 5) instead of `Quality.uhd` (value 1). Since
sorting uses quality as the primary key, these 4K releases ended up at
the bottom of search results.

### Example

| Title | Before | After |
|---|---|---|
| `Movie.2013.4K.HDR.2160p.x265` |  `Quality.uhd` |  `Quality.uhd` |
| `Movie.2013.UHD.BluRay.2160p.HDR10.x265` |  `Quality.unknown` | 
`Quality.uhd` |
| `Movie.2013.2160p.WEBRip.DDP5.1.x264` |  `Quality.unknown` | 
`Quality.uhd` |

All patterns already use `re.IGNORECASE`, so case variants are handled.

Fixes #449

---------

Co-authored-by: GokuPlay609 <GokuPlay609@users.noreply.github.com>
Co-authored-by: Amp <amp@ampcode.com>
Co-authored-by: maxid <97409287+maxdorninger@users.noreply.github.com>
2026-02-22 16:25:36 +01:00
2026-02-08 19:16:38 +01:00
2025-05-29 15:36:35 +02:00
2026-02-08 19:47:17 +01:00
2026-02-08 19:47:17 +01:00
2026-02-08 19:47:17 +01:00
2026-02-03 13:06:18 +01:00
2025-10-31 12:19:23 -04:00
2026-02-01 18:04:15 +01:00


Logo

MediaManager

Modern management system for your media library
Explore the docs »
Report Bug · Request Feature

MediaManager is the modern, easy-to-use successor to the fragmented "Arr" stack. Manage, discover, and automate your TV and movie collection in a single, simple interface.

Key features:

  • support for OAuth/OIDC
  • support for TVDB and TMDB
  • made to be deployed with Docker

Quick Start

wget -O docker-compose.yaml https://github.com/maxdorninger/MediaManager/releases/latest/download/docker-compose.yaml
mkdir config
wget -O ./config/config.toml https://github.com/maxdorninger/MediaManager/releases/latest/download/config.example.toml
# you probably need to edit the config.toml file in the ./config directory, for more help see the documentation
docker compose up -d

View the docs for installation instructions and more

Support MediaManager

Sponsor @maxdorninger Buy Me A Coffee

Check out the awesome sponsors of MediaManager ❤️

Aljaž Mur Eržen   Luis Rodriguez   Brandon P.   SeimusS   HadrienKerlero   keyxmakerx   LITUATUI   Nicolas   Josh   PuppiestDoggo   Seferino   syn  

Star History

Star History Chart

Screenshots

Screenshot 2025-12-08 at 00 44 26 Screenshot 2025-12-08 at 00 46 39

Screenshot 2025-07-02 174616

Screenshot 2025-12-08 at 00 48 23

Screenshot 2025-06-28 222908

Developer Quick Start

For the developer guide see the Developer Guide.

License

Distributed under the AGPL 3.0. See LICENSE.txt for more information.

Acknowledgments

Thanks to DigitalOcean for sponsoring the project!

DigitalOcean Referral Badge

Description
No description provided
Readme AGPL-3.0 35 MiB
Languages
Python 48.6%
Svelte 42.7%
TypeScript 6.1%
Shell 1%
CSS 0.5%
Other 1%