Movie file renaming for NOOB

All about user-defined episode / movie / file name format expressions
Post Reply
joelli
Posts: 5
Joined: 14 Feb 2017, 15:32

Movie file renaming for NOOB

Post by joelli »

Some of my movies are named like these ones:

Die Uhr läuft ab (1975) 720p text_that_might_be_removed HDTV
Die Uhr läuft ab - text_that_might_be_removed (1975) 720p remastered
Die Uhr läuft ab (1975) 720p Web HD
Die Uhr läuft ab (1975) 720p - text_that_might_be_removed SW 2Kanal
Die Uhr läuft ab (Directors Cut) - text_that_might_be_removed (1975) 720p


I want to rename all my movies to be named in a way TMDB could find them. Filebot could do the job, but I would like to keep some extras like "HDTV" or "remastered" or "WebHD" or "SW" or "2Kanal". Is there a easy way for a NOOB like me?

This is what I would like to be:

Die Uhr läuft ab (1975) 720p HDTV
Die Uhr läuft ab (1975) 720p remastered
Die Uhr läuft ab (1975) 720p Web HD
Die Uhr läuft ab (1975) 720p SW 2Kanal
Die Uhr läuft ab (Directors Cut) (1975) 720p


I found this to rename: {ny}{' CD'+pi} {vf}

works fine: Die Uhr läuft ab (1975) 720p but want to keep some of the additional information WebHD, SW...

Thanks in advance for any help and sorry for my bad english.
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Movie file renaming for NOOB

Post by rednoah »

:idea: Please read the FAQ and How to Request Help.
joelli
Posts: 5
Joined: 14 Feb 2017, 15:32

Re: Movie file renaming for NOOB

Post by joelli »

Worked like a charme! Would it be possible to skip renaming files, which were found in the selected database (TMDB).
Reason: I have scraped all of my files in Kodi, some did not work (wrong naming) and I don't want to re-scrape all the files (low bandwidth).
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Movie file renaming for NOOB

Post by rednoah »

You should have separated processed and not-yet-processed files in the first place, by using a format that moves files into a new structure rather than just renaming them in place.

e.g.

Code: Select all

/path/to/well-organized/files/Media/{plex}
:idea: Please read the FAQ and How to Request Help.
joelli
Posts: 5
Joined: 14 Feb 2017, 15:32

Re: Movie file renaming for NOOB

Post by joelli »

Is there any workaround if I want to keep all expressions after the "Year"?
Example:
Die Uhr läuft ab (1975) 720p SW 2Kanal own expression 1 ....

the processed filename should just keep all af the text, following the Year: " 720p SW 2Kanal own expression 1 ...."
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Movie file renaming for NOOB

Post by rednoah »

Sure, but it's bad practice:

Code: Select all

{plex.derive{' '+fn.after(/[0-9]{4}/).matchAll(/\w+/)}}
I recommend properly generating the destination path based on intrinsic information, instead of taking bits and pieces from the original file path:

Code: Select all

{plex.derive{" by $director"}{" [$vf, $vc, $ac]"}}
:idea: Please read the FAQ and How to Request Help.
joelli
Posts: 5
Joined: 14 Feb 2017, 15:32

Re: Movie file renaming for NOOB

Post by joelli »

Sure, but it's bad practice:
I know that, but in my case it was the only way to realize it: I have a database (access) with all my DVDs. I needed a way to get them in a virtual way into Kodi. In that DB all DVDs had a Number pointing to the DVD (in three cases with about 500 DVDs). The movies are avi DVD mkv...s. I generated an excel file with all these informations and created filenames (txt) with the coresponding endings: mkv, iso,avi... So I could easyly change the right file format from txt to avi,mkv... I created a folder with all these files (zero files) and now I could scan them all with Kodi. Worked like a charme :D

Donation is on the way. Thank you very much!

P.S. done! ;)
Post Reply