Movie Renamer


Recommended Posts

Hey guys,

 

I wrote a very simple utility in Go (compiled binary) that is super fast, and, for now, renames Movie directories. I made it for myself, as sometimes, I am not trying to do super surgery on directory names, but rather simple things which can be scripted to a large degree. It's not meant to be a fileBot replacement, but a mere side project that arose out of need.

 

So if you have something like:

 

"This is a Movie 2018 1080p"

It will rename it to "This is a Movie (2018)". 

 

It runs in dry mode by default, and see if the output looks OK. If it does, then you add a flag: -dryrun=false to actually execute it.

 

I can provide a link to it, if anyone is interested. But I will probably be working on it to make it smarter, like querying MovieDB APIs, doing a second pass to rename the file inside the directory to the same naming convention, etc... For now, it's simple, and dead easy to run.

 

D.

Link to comment
20 hours ago, unrateable said:

I ´d use a simple script like that for exactly your example.

It may evolve into something more useful with a web UI. A kind of combination of... I won't jinx it yet. If anyone has any ideas, please PM me.

Link to comment
  • 6 months later...

Is this still active?

 

I was watching one of SpaceInvaders's videos and he was using an app called File2Folder which no longer exist. This script would be great. I would love to rename all my folders to the movie that is inside them. I used FileBot to rename all my movies to "Movie (YEAR).aaa". Making the folders match would make my radarr and plex so much happier. 

Link to comment

It's active in that only I use it, it's not fancy etc. Other than yourself, I didn't get any interest in developing it for more than what I needed it to do. It is super fast, and very portable. 

 

The way it works is that it grabs a list of current directories. Tried to sanitize the directory names as best as it can, and then queries a movie db online (via an API). And renames just the directory to "Movie Name (Year)". 

 

If you're still interested I can clean it up a little, and include some instructions. It's written in Go; I'm not making the code open source at this time.

Link to comment
  • 1 month later...
9 hours ago, Hill1023 said:

I would use that too.

You can grab it here, in source form. If you need a compiled binary. I haven't supplied one as there has been next to no interest in this (other than for my own purposes)... PM me if you aren't able to compile it

 

https://github.com/d4z3x/dirRenamer

 

Please read the instructions on GitHub on how to get and use the API.

 

I'll be interested in feedback. 

Link to comment
  • 3 months later...

No GUI. It’s rather crude at this point. It works for me and I haven’t had any interest from others. 

it’s not installed via Docker. For now there should be instrctuions in the repo. You basically have to copy it to the server and invoke it in the movies directory. You have to pass it params to actually make changes as without it does a dry run. 
 

HTH. Let me know if any questions. PMing me would be faster. 

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.