All Projects → Nriver → Episode-ReName

Nriver / Episode-ReName

Licence: AGPL-3.0 License
电视剧/番剧自动化重命名工具

Programming Languages

python
139335 projects - #7 most used programming language
Batchfile
5799 projects

Projects that are alternatives of or similar to Episode-ReName

Emby.plugins.javscraper
Emby/Jellyfin 的一个日本电影刮削器插件,可以从某些网站抓取影片信息。
Stars: ✭ 864 (+870.79%)
Mutual labels:  scraper, emby
Javgo
JavGo是一个集合影片管理,影片刮削,视频处理,资源搜索等综合一体的全功能影音软件,支持爬取javbus,jav321,javdb,javlibrary进行刮削,支持db,bus的磁力搜索,支持获取library的影片评论。
Stars: ✭ 338 (+279.78%)
Mutual labels:  scraper, emby
metafetch
NodeJS package that fetches a given URL's title, description, images, links etc.
Stars: ✭ 21 (-76.4%)
Mutual labels:  scraper
Android-Apps-Downloader
📱 A tool to download android apps from Google Play Store and Xiaomi App Store (the famous Chinese Store).
Stars: ✭ 16 (-82.02%)
Mutual labels:  scraper
ogcheckr-api
An api to check social media username availability on a variety of services
Stars: ✭ 18 (-79.78%)
Mutual labels:  scraper
django-instagram
Instagram application for Django.
Stars: ✭ 73 (-17.98%)
Mutual labels:  scraper
spider
Multithreaded Web spider crawler written in Rust.
Stars: ✭ 81 (-8.99%)
Mutual labels:  scraper
genius-lyrics-api
A library for fetching song lyrics & album art from genius.com 🎶🌈
Stars: ✭ 129 (+44.94%)
Mutual labels:  scraper
berlin corona cases
Scraper for the official dashboard with current Corona case numbers, traffic light indicators ("Corona-Ampel") and vaccination situation for Berlin.
Stars: ✭ 19 (-78.65%)
Mutual labels:  scraper
UniBorg
Pluggable Telegram bot and userbot based on Telethon
Stars: ✭ 196 (+120.22%)
Mutual labels:  rename
discord-music
Discord music bot written in Typescript
Stars: ✭ 12 (-86.52%)
Mutual labels:  scraper
sp-subway-scraper
🚆This web scraper builds a dataset for São Paulo subway operation status
Stars: ✭ 24 (-73.03%)
Mutual labels:  scraper
scoopi-scraper
Scoopi Web Scraper is a heavy duty tool to extract data from HTML pages.
Stars: ✭ 18 (-79.78%)
Mutual labels:  scraper
linky
Yet Another LInkedIn Scraper...
Stars: ✭ 44 (-50.56%)
Mutual labels:  scraper
fb-page-chat-download
Python script to download messages from a Facebook page to a CSV file
Stars: ✭ 51 (-42.7%)
Mutual labels:  scraper
the-weather-scraper
A Lightweight Weather Scraper
Stars: ✭ 56 (-37.08%)
Mutual labels:  scraper
scrapy facebooker
Collection of scrapy spiders which can scrape posts, images, and so on from public Facebook Pages.
Stars: ✭ 22 (-75.28%)
Mutual labels:  scraper
pysoundcloud
Scraping the Un–scrapable™
Stars: ✭ 63 (-29.21%)
Mutual labels:  scraper
linkedinscraper
LinkedinScraper is an another information gathering tool written in python. You can scrape employees of companies on Linkedin.com and then create these employee names, titles and emails.
Stars: ✭ 22 (-75.28%)
Mutual labels:  scraper
extract-css
Extract all CSS from a webpage, packaged as a Now V2 Lambda
Stars: ✭ 23 (-74.16%)
Mutual labels:  scraper

Episode-ReName

懒人包下载

电视剧/番剧自动化重命名工具. 本工具可以对大部分资源进行重命名处理. 主要是给资源重命名后给Emby, Jellyfin, Tiny Media Manager 等软件刮削数据使用. 也可以配合qbitorrent下载文件后自动重命名, 具体使用方法请看下面的说明.

注意0: 本工具是命令行工具, 没有界面, 没有界面, 没有界面, 不要问我为什么双击exe没有反应!

注意1: 需要重命名的文件必须在类似 Season 1, s1 的目录中才会被处理. 这样设置是为了防止误操作.

注意2: 对文件夹使用本程序会删除没有按照规范命名的 jpg, png, nfo, torrent 文件!!如果有需要的文件请提前备份. 关于文件命名规范请参考强制的规范元数据结构.

注意3: 请不将本程序放在含有空格的路径中, 路径可以有中文但是不能有空格, 切记!


使用场景1 - 右键菜单调用

右键菜单快速重命名

  1. Release直接下载最新的exe程序
  2. 修改 右键菜单 添加.reg 的exe路径并导入注册表

添加注册表

  1. 找到要重命名的文件/文件夹, 右键点击"自动剧集命名".

右键重命名

注:可以多选进行批量操作. win10多选超过15个, 右键菜单会消失, 可以运行win10 右键多文件限制修改.reg将限制修改成999个.

使用场景2 - qbitorrent下载后自动重命名

qb下载自动重命名

可以在qbittorrent 中进行设置, 实现下载完成后自动重命名

  1. 选项—>BitTorrent—>做种限制—>做种0分钟—>暂停或删除做种
  2. 选项—>下载—>完成时运行外部程序—>命令行
D:\Test\EpisodeReName.exe "%D" 15

参数说明:

  • EpisodeReName工具所在路径
  • "%D"是文件下载路径, 这个一般不要修改
  • 最后的数字是执行延时, 单位是秒, 因为qb下载完成会锁住文件, 需要等一段时间来让它释放, 时间长短可自行调整

使用场景3 - windows命令行运行

可以直接传入文件路径, 注意有空格的路径加双引号

D:\Test\EpisodeReName.exe "D:\我的番剧\XXX\Season 1"

可以传入第二个参数, 作为重命名的延迟. 这个参数主要是配合qbitorrent使用, 避免qb锁定文件导致重命名失败. 一般停止做种15秒后在操作能确保文件被释放.

D:\Test\EpisodeReName.exe "D:\我的番剧\XXX\Season 1" 15

使用场景4 - Linux终端运行

本程序支持在linux中运行, 需要python3运行环境

先将整个项目clone下来

git clone https://github.com/Nriver/Episode-ReName

使用

python3 -m pip install -r requirements.txt --user

命令来安装相关模块

使用以下命令调用程序进行重命名操作

python3 EpisodeReName.py "/home/user/我的番剧/XXX/Season 1"

脚本编译成可执行程序

如果你想自己将python脚本打包成exe, 需要python3运行环境. 安装pyinstaller模块. 可以使用

pip3 install -r requirements.txt

命令来安装相关模块

将脚本打包成可执行程序

pyinstaller -F EpisodeReName.py

将脚本打包成可执行程序 (不带启动黑框)

pyinstaller -F -w EpisodeReName.py

强制的规范元数据结构

  1. 剧季文件夹:Season1 / Season 1 / s1 / S1
  2. 媒体源文件:SxxExx (.mkv / .mp4 等常见视频格式)
  3. 剧集元数据:SxxExx.nfo / SxxEPxx.nfo
  4. 外置字幕源:SxxExx.zh (.ass / .ssa / .srt)
  5. 剧集缩略图:SxxExx-thumb (.jpg / .png)
  6. 剧季元数据:season.nfo

工具主要功能和处理逻辑

  1. 对剧季命名以外的文件夹无效
  2. 根据保存的剧季目录命名集号
  3. 删除规范以外的多余元数据
  4. 下载完成后尝试命名并加.new后缀
  5. 删除可命名的同名文件达到换源目的
  6. 去除文件命名后的.new后缀名
  7. 如果4步命名成功则继续执行5, 6
  8. 如果第4步命名不成功则终止后续操作

主要文件说明

EpisodeReName.py 重命名工具主程序

make_exe.bat 将python脚本打包成exe, 依赖pyinstaller模块

多季番剧tmdb集数适配

对于有多季的番剧, 比如鬼灭之刃28集, 在tmdb里没有第28集, 而是第2季第2集, 要正确削刮需要从S02E28改成S02E02.

这时候可以在鬼灭之刃的Season 2文件夹中添加一个all.txt文件, 里面写上一个数字, 会在自动重命名的时候减掉这个数字. 比如上面的例子就需要在all.txt填入26, 自动重命名就会把S02E28改成S02E02, 这样就能正常削刮了.


Stargazers 数据

统计图使用 caarlos0/starcharts 项目生成.

Stargazers over time

感谢

感谢某位不愿意透露姓名的朋友

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].