this post was submitted on 08 Aug 2023
12 points (100.0% liked)

Free and Open Source Software

17695 readers
45 users here now

If it's free and open source and it's also software, it can be discussed here. Subcommunity of Technology.


This community's icon was made by Aaron Schneider, under the CC-BY-NC-SA 4.0 license.

founded 2 years ago
MODERATORS
 

Hey all. I'm looking for a bulk episode renaming application for Linux, preferably GUI. Before switching, I used Rename My TV Series 2 on Winblow. But I can't seem to get it to work on my Pop_os 22.04. Any good alternatives would be appreciated. Thanks!

Update: A lot of the suggestions seemed too high level for what I wanted; I don't care about how the images or posters look, I just wanted to remove the excess junk at the end of the episode names easily. The point is "H265 CougarDiverRips 1080p" isn't really important after I download it.

Solution: Rename My TV Series 2 Linux version kept giving sqlite errors even after installing required dependencies. So I installed the Winblows version with wine. Works as expected without errors, simple drag and drop select series and go.

all 20 comments
sorted by: hot top controversial new old
[–] Skadabucci@beehaw.org 7 points 1 year ago (2 children)

Are these files that need renaming? You could open the terminal cd to the directory.

for filename in $(ls *.mp4); do
  if [[ "$filename" =~ some_file_match*.mp4 ]]; then
    modified_filename=
    cp $filename $modified_filename && rm $filename -f
  fi
done
[–] vertelleus@beehaw.org 1 points 1 year ago

I was thinking of using a bash script as a backup.

[–] princessnorah@lemmy.blahaj.zone 7 points 1 year ago* (last edited 1 year ago)

Sonarr is capable of bulk renaming TV shows to follow whatever naming convention you set in the settings. Even if you don’t use it for downloading new media, it does a good job of managing your collection.

Edit: Runs on linux and has a web-based GUI.

[–] Powderhorn@beehaw.org 4 points 1 year ago (2 children)

I used to obsess about file names on episodes, but now that I'm old, I just use Jellyfin because the file names don't actually matter so long as they use standard conventions. I've seriously lost days of my life to renaming media files.

[–] vertelleus@beehaw.org 1 points 1 year ago

I'm using Jellyfin too. I just hate all the extra junk tacked on to the name. They should just put that on the folder name so I only have one thing to fix.

[–] d3Xt3r@beehaw.org 1 points 1 year ago* (last edited 1 year ago) (1 children)

I used to do all that too. I'm old too, and forget renaming files, I gave up on the whole media-hording business, because I ain't got the time/patience to manage all that any more. Gone are the days of using seedboxes, private servers, SABnzbd and the like. Gone are the days of using Kodi/OpenElec/Plex/Jellyfin etc. Gone are the days of running my own NAS with an ever increasing RAID array and maintaining them and benchmarking the latest ZFS and thinking of ways to speed up the cache and upgrading all the bits and bobs regularly. I got rid of it all.

These days, I just subscribe to a streaming site on an adhoc basis (if there's something I want to watch on that site) and if the site doesn't have it in my region, I won't jump thru VPN hoops and will just pirate it, watch it, and immediately delete it. I ain't hording shit no more, and will follow the path of least resistance.

Honestly, this has simplified my life quite a bit, I don't need to worry about backups or losing data - because I have no data to lose now (besides some documents/personal projects/dot files, which is already synced to the cloud).

The only media I actually still bother to carry around is rewatchable and rare stuff that isn't easy to get. Like the AI upscaled version of DS9, Harmy's Despecialized Star Wars, or my own AI upscaled copies of Allo Allo, which isn't found anywhere else. But all of these fit on a single USB stick, so I'm happy retaining them. It's so freeing to not be a data hoarder any more and simplify my digital life.

[–] Powderhorn@beehaw.org 1 points 1 year ago

This is a really important point! Needing two copies of a media server so one has a backup really complicates the whole point of simplification that a media server theoretically presents. Also, what sounded great in 2007 is always worth a bit of scrutiny now with a wildly different streaming landscape.

Still, with what Paramount is doing with their IP, Trek overall is something I feel a need to have a local copy of (see: Prodigy). Case-by-case assessment is, as you note, a good use of time.

What turbocharged my server ambitions was having stepkids of that age where everything they want to watch is replete with ads tailored to their lack of understanding of the world, and it quickly became apparent that hearing a half-dozen times a day about what they "need" wasn't going to fly. When you need half the Disney Channel in real time, you have a new full-time job.

[–] Swimmerman96@beehaw.org 3 points 1 year ago (1 children)

You may be able to use the CLI tool mmv, which can be installed through the apt package manager. It's great at renaming files that are starting a similar naming convention and ending with a similar naming convention, you could use mmv to move your files. It also suppose sum links and hardlinks. It's what I used to rename folders of tv shows when I need to do that.

[–] vertelleus@beehaw.org 1 points 1 year ago* (last edited 1 year ago)

I think I found it https://github.com/itchyny/mmv
This looks like it would be good for other files too. I'll check this out. Thanks!

[–] Kangie@lemmy.srcfiles.zip 3 points 1 year ago

perl-rename and a good regex. I'm not joking!

[–] LiveLM@lemmy.zip 3 points 1 year ago (1 children)

Filebot is awesome!
It's a paid app, but you can use version 4.7.9 for free. However I think it's totally worth the $6 for a year. They also have a Lifetime Universal license if you find yourself using it often.

[–] vertelleus@beehaw.org 2 points 1 year ago* (last edited 1 year ago) (1 children)

I tried the 4.7.9 version gives a lot of errors.
...and subscriptions suck.

[–] LiveLM@lemmy.zip 1 points 1 year ago

They have a Lifetime one-time purchase. You can also download the latest version and try it on your files to see if it works the way you expect before you buy it.

[–] furrowsofar@beehaw.org 2 points 1 year ago* (last edited 1 year ago)

If your just talking file renaming a short shell or python script lifeless then 20 lines can do it too as long as it is a well defined process. Could even run as a scheduled job with cron, anacron, or at.

[–] thelastknowngod@lemm.ee 2 points 1 year ago (1 children)

Ages ago I did this with some cli tool that found episode/movie metadata stored in themoviedb or somewhere and just built a shell script around it. I don't remember the name unfortunately. Now I just let Plex manage it and I don't bother.

This looks like it might work though:

https://github.com/andreaswilli/meta-grabber

[–] vertelleus@beehaw.org 1 points 1 year ago

Hey this looks nice. Thanks!

[–] polymachine@feddit.de 1 points 1 year ago* (last edited 1 year ago)

If you're using zsh, it's got a tool called zmv. edit: you have to activate ot by autoload zmv