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
I use KRename for renaming multiple files.
+1 for krename, otherwise if the new filenames are complex and should be calcolated I use python
I second krename. Works flawlesly for me.
Dolphin has that ability built in. If you use it, highlight all of the episodes and press f2. Pretty self explanatory from there.
deleted by creator
deleted by creator
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.
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.
If the names don’t have any break for seasons, or the name of the episode, I think it’s going to take a couple steps. Renaming is easy, but you’re adding info that’s not in the name. I can only suggest trying something like tvnamer, or search for a similar project.
krenamer can do this. It just is a regex front end. You could do it with a shell script too.
That’s what i started using :)
This can be done natively in Thunar if you happen to use XFCE.
or if you are comfortable with command line and some replacement shenanigans, there is always mmv
Would the tvnamer utility help?
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]
how can you identify season from the file name?
One approach: Look up what TV show has 291 episodes; land on this Wikipedia page which gives you the season lengths.
good and fun idea ;)
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.
If I was able to do that i would not have asked here lol