全部 新建

user:thomas 由用户创建的 Gists

title:mygist 包含指定标题的 Gists

description:sync gists with given description

filename:myfile.txt 包含指定文件名的 Gists

extension:yml 包含指定扩展名的 Gists

language:go 包含指定编程语言的 Gists

topic:homelab 具有给定主题的 Gists

all:systemctl search all fields

登录

全部 新建 登录

所有 Gists

最近 创建
最早 创建
最近 更新
最早 更新

x / rename-subtitles

0 喜欢
0 派生
2 文件
最后活跃于 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
上一页 下一页

由 Opengist 强力驱动 ⋅ Load: 18ms⋅

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