Refactor code structure for improved readability and maintainability

This commit is contained in:
sHa
2026-01-03 16:35:18 +00:00
parent 06cf206c70
commit 4e9200b8d1
5 changed files with 21 additions and 3 deletions

BIN
dist/renamer-0.6.11-py3-none-any.whl vendored Normal file

Binary file not shown.

View File

@@ -1,6 +1,6 @@
[project] [project]
name = "renamer" name = "renamer"
version = "0.6.10" version = "0.6.11"
description = "Terminal-based media file renamer and metadata viewer" description = "Terminal-based media file renamer and metadata viewer"
readme = "README.md" readme = "README.md"
requires-python = ">=3.11" requires-python = ">=3.11"

View File

@@ -6,7 +6,7 @@ This module defines video source types (WEB-DL, BDRip, etc.) and their aliases.
SOURCE_DICT = { SOURCE_DICT = {
"WEB-DL": ["WEB-DL", "WEBRip", "WEB-Rip", "WEB", "WEB-DLRip"], "WEB-DL": ["WEB-DL", "WEBRip", "WEB-Rip", "WEB", "WEB-DLRip"],
"BDRip": ["BDRip", "BD-Rip", "BDRIP"], "BDRip": ["BDRip", "BD-Rip", "BDRIP"],
"BDRemux": ["BDRemux", "BD-Remux", "BDREMUX"], "BDRemux": ["BDRemux", "BD-Remux", "BDREMUX", "REMUX"],
"DVDRip": ["DVDRip", "DVD-Rip", "DVDRIP"], "DVDRip": ["DVDRip", "DVD-Rip", "DVDRIP"],
"HDTVRip": ["HDTVRip", "HDTV"], "HDTVRip": ["HDTVRip", "HDTV"],
"BluRay": ["BluRay", "BLURAY", "Blu-ray"], "BluRay": ["BluRay", "BLURAY", "Blu-ray"],

View File

@@ -2,6 +2,24 @@
"description": "Comprehensive test dataset for filename metadata extraction", "description": "Comprehensive test dataset for filename metadata extraction",
"version": "2.0", "version": "2.0",
"test_cases": [ "test_cases": [
{
"filename": "Dumbo.1941.BluRay.1080p.DD5.1.AVC.REMUX.mkv",
"expected": {
"order": null,
"title": "Dumbo",
"year": "1941",
"source": "BDRemux",
"frame_class": "1080p",
"hdr": null,
"movie_db": null,
"special_info": null,
"audio_langs": "",
"extension": "mkv"
},
"testname": "edge-source-001",
"category": "edge_cases",
"description": "Source indicated as BDRemux"
},
{ {
"filename": "Angelo.dans.la.forêt.mystérieuse.2024.1080p.BluRay.DD.5.1.x265.mkv", "filename": "Angelo.dans.la.forêt.mystérieuse.2024.1080p.BluRay.DD.5.1.x265.mkv",
"expected": { "expected": {

2
uv.lock generated
View File

@@ -462,7 +462,7 @@ wheels = [
[[package]] [[package]]
name = "renamer" name = "renamer"
version = "0.6.10" version = "0.6.11"
source = { editable = "." } source = { editable = "." }
dependencies = [ dependencies = [
{ name = "langcodes" }, { name = "langcodes" },