Tutti Nuovi

user:thomas utente che ha creato il gist

title:mygist titolo del gist

description:sync gists with given description

filename:myfile.txt nome di file nel gist

extension:yml estensione del file nel gist

language:go linguaggio del file nel gist

topic:homelab Gist con l'argomento dato

all:systemctl search all fields

Entra

Tutti Nuovi Entra

Tutti i gists

Più recente creazione
Meno recente creazione
Più recente aggiornamento
Meno recente aggiornamento

x / rename-subtitles

0 mi piace
0 forks
2 files
Ultima volta attivo 3 months ago
GNOME/Nautilus script (Python 3) that renames subtitle files to match their video files, paired by episode number, preserving language codes.
1 #!/usr/bin/env python3
2 """Rename subtitle files to match their corresponding video files.
3
4 Designed as a GNOME/Nautilus right-click script, but also runnable from a
5 terminal. Subtitles are paired to videos by episode number (S01E02, 1x02, ...)
6 with a fallback to 1-to-1 matching when a folder holds a single video + single
7 subtitle. Still-downloading videos with a trailing `.part` suffix (e.g.
8 `myfile.mkv.part`) are matched as if already complete. Trailing language codes
9 (e.g. `.en`, `.eng`) are preserved and
10 existing files are never overwritten. A Zenity dialog lists the planned renames
Più nuovi Più vecchi

Creato da Opengist ⋅ Load: 27ms⋅

Italiano
العربية Čeština Deutsch English Español Français Magyar Italiano 日本語 Polski Português Русский Türkçe Українська 简体中文 繁體中文