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

2 points

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

permalink
report
reply
1 point

That’s what i started using :)

permalink
report
parent
reply
1 point
permalink
report
parent
reply
1 point

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.

permalink
report
reply

Do you have the means to write your own Python script? If so, that would be a simple way to solve your problem.

permalink
report
reply
1 point
*

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.

permalink
report
reply
1 point

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.

permalink
report
reply

Open Source

!opensource@lemmy.ml

Create post

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

Useful Links

Rules

  • Posts must be relevant to the open source ideology
  • No NSFW content
  • No hate speech, bigotry, etc

Related Communities

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

Community stats

  • 5.3K

    Monthly active users

  • 1.7K

    Posts

  • 29K

    Comments