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

Open Source

31116 readers
304 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 17 comments
sorted by: hot top controversial new old
[–] Immortal0861@beehaw.org 3 points 1 year ago (2 children)

I use KRename for renaming multiple files.

[–] higante@lemmy.world 1 points 1 year ago

I second krename. Works flawlesly for me.

[–] tubbadu@lemmy.one 1 points 1 year ago

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

[–] words_number@programming.dev 2 points 1 year ago

I use nomino for this purpose.

[–] synapse1278@lemmy.world 2 points 1 year 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.

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

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

[–] zShxck@lemmy.ml 1 points 1 year ago

That's what i started using :)

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

how can you identify season from the file name?

[–] fubo@lemmy.world 1 points 1 year 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 1 year ago

good and fun idea ;)

[–] malamignasanmig@group.lt 1 points 1 year ago* (last edited 1 year ago)

you can try rename: https://www.man7.org/linux/man-pages/man1/rename.1.html

or
rename 's/expression/replacement/' filename

select range of episodes per season then add season number (eg S01) in replacement string.

then restart numbering for next set of episodes (eg 01 to 12) and add S02. and so on. more tedious than the gui Rename method but doable.

[–] gaf@lemmy.one 1 points 1 year ago

This can be done natively in Thunar if you happen to use XFCE.

[–] CMDR_Horn@lemmy.ml 1 points 1 year ago

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

[–] bettse@lemmy.ml 0 points 1 year ago (1 children)

Would the tvnamer utility help?

[–] zShxck@lemmy.ml 1 points 1 year ago

I looked into it yesterday, and i don't think is good for me, I actually need the format S01E01 and not its standard like [1x01]