Jump to content
daze

Movie Renamer

7 posts in this topic Last Reply

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.

Share this post


Link to post
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.

Share this post


Link to post

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. 

Share this post


Link to post

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.

Share this post


Link to post
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. 

Share this post


Link to post

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.