İçeriğe geç

--- -xprime4u.pro-.numbari.s01p01.720p.hevc.web-dl [ HIGH-QUALITY ]

'group': 'Xprime4u.Pro', 'show': 'Numbari', 'season': '01', 'part': '01', 'res': '720p', 'codec': 'HEVC', 'source': 'WeB-DL', 'ext': 'mkv'

python rename.py /path/to/files --dry python rename.py /path/to/files | Variation | Example | Fix | |-----------|---------|-----| | Missing group | Numbari.S01P01.720p.HEVC.WeB-DL.mkv | Make group optional | | Different extension | .mp4 , .avi | Allow in regex | | Plex wants E01 not P01 | S01P01 → S01E01 | Convert part to episode | | Two‑part episode | S01P01-P02 | Detect range or split | 7. Automation (Watch folder) Use inotify (Linux) or Watchdog (Python) to auto‑process new files. --- -Xprime4u.Pro-.Numbari.S01P01.720p.HEVC.WeB-DL

Numbari - S01E01 - Part 1.mkv

-Xprime4u.Pro-.Numbari.S01P01.720p.HEVC.WeB-DL 'group': 'Xprime4u

if == " main ": folder = sys.argv[1] if len(sys.argv) > 1 else "." dry = "--dry" not in sys.argv for f in Path(folder).glob("*.mkv"): rename_file(f, dry_run=dry) --- -Xprime4u.Pro-.Numbari.S01P01.720p.HEVC.WeB-DL

from watchdog.observers import Observer from watchdog.events import FileSystemEventHandler class NewFileHandler(FileSystemEventHandler): def on_created(self, event): if event.src_path.endswith(".mkv"): rename_file(Path(event.src_path), dry_run=False)

new_name = f"show - SseasonEpart - Part int(part).ext" If P01 means a real episode number:

7.465
Toplam Tahmin
75
Yaklaşan Maç
52
Lig/Turnuva
5.715
Oranlı Maç
5.789
Arşivlenen