this post was submitted on 14 Jun 2023
2 points (66.7% liked)

Open Source

33313 readers
55 users here now

All about open source! Feel free to ask questions, and share news, and interesting stuff!

Useful Links

Rules

Related Communities

Community icon from opensource.org, but we are not affiliated with them.

founded 5 years ago
MODERATORS
 

I have 291 episodes named tv.show.01.mp4 to tv.show.291.mp4 and i want rename them to be named like Tv Show Episode S01E01.mp4. I use Linux so please suggest only FOSS compatible programs

all 15 comments
sorted by: hot top controversial new old
[–] synapse1278@lemmy.world 2 points 2 years ago

You can take a look at "sonarr", it's made for managing your tv-shows and it can automatic rename and organize your files, with customizable naming schem.

[–] saint@group.lt 2 points 2 years ago (1 children)

how can you identify season from the file name?

[–] fubo@lemmy.world 2 points 2 years ago (1 children)

One approach: Look up what TV show has 291 episodes; land on this Wikipedia page which gives you the season lengths.

[–] saint@group.lt 1 points 2 years ago

good and fun idea ;)

[–] words_number@programming.dev 2 points 2 years ago

I use nomino for this purpose.

[–] Immortal0861@beehaw.org 2 points 2 years ago (2 children)

I use KRename for renaming multiple files.

[–] tubbadu@lemmy.one 1 points 2 years ago

+1 for krename, otherwise if the new filenames are complex and should be calcolated I use python

[–] higante@lemmy.world 1 points 2 years ago

I second krename. Works flawlesly for me.

[–] Redscare867@lemmy.ml 2 points 2 years ago

Why not just do this with a for loop in the terminal? I don’t think you need to over complicate it by downloading another program.

[–] CMDR_Horn@lemmy.ml 1 points 2 years ago

Dolphin has that ability built in. If you use it, highlight all of the episodes and press f2. Pretty self explanatory from there.

[–] dart@lemmy.fmhy.ml 1 points 2 years ago

Please don't use spaces in your *nix filenames, that is just bad. To answer your question, use a bash script. Chatgpt can probably even make it for you if you don't know how to write it.

[–] malpingu@lemmy.sdf.org 1 points 2 years ago

There are various GUI tools (eg., gprename, krename) but I prefer qmv, a CLI tool from the renameutils package. It opens filenames into a vim (or your default editor) session, with which you can use global regex search/replace commands to rename files.

[–] helpmeDanaScully@zerobytes.monster 1 points 2 years ago (1 children)

krenamer can do this. It just is a regex front end. You could do it with a shell script too.