auto rename in plex movie folder

Support for macOS users
Post Reply
tomyam
Posts: 14
Joined: 19 Oct 2016, 09:56

auto rename in plex movie folder

Post by tomyam »

hi there. can someone point me to how to auto rename files in my plex's folder? i need filebot to auto rename my downloaded files when i added new movies. thanks alot
User avatar
rednoah
The Source
Posts: 22975
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: auto rename in plex movie folder

Post by rednoah »

Standard User:

Custom Presets and the {plex} format can help you streamline the process of renaming and moving files.


Power User:

Look into the filebot command-line tools, amc script and Automator for complete non-interactive automation.
:idea: Please read the FAQ and How to Request Help.
garyleecn
Donor
Posts: 114
Joined: 19 Nov 2014, 03:48

Re: auto rename in plex movie folder

Post by garyleecn »

tomyam wrote:hi there. can someone point me to how to auto rename files in my plex's folder? i need filebot to auto rename my downloaded files when i added new movies. thanks alot
I didnt know that rednoah added GUI for this, but I've been using default amc output for a long time, plex reads without ANY problem what so ever. (though sometimes filebot reads something wrong, but it's not his fault, just there's something not in the TVDB)

if you dont want trailer from plex, or you are not plex pass user, you can even let amc download .nfo files for you, so plex just reads .nfo file and determine the media infomation
tomyam
Posts: 14
Joined: 19 Oct 2016, 09:56

Re: auto rename in plex movie folder

Post by tomyam »

Hi there. Thanks alot
I am running below script with automator:
/usr/local/bin/filebot -rename --format "{n} {s00e00}" /Users/xxx/Desktop/LenicePlex/download --output /Users/xxx/Desktop/LenicePlex/complete -non-strict

this only rename and move. how can i get it to create tv's name folder ?

can i do all this with my Filebot app i bought from itune?
User avatar
rednoah
The Source
Posts: 22975
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: auto rename in plex movie folder

Post by rednoah »

1.
Please read FAQ #1 and learn how format expressions work.

Your format specifies a file name and not a file path. You could just use --format "{plex}" but you should really follow the links I gave you: use the amc script and use Folder Action with Automator to automate calls (follow the instructions, copy and paste, works out-of-the-box).


2.
The Mac App Store unfortunately does not support command-line applications.
:idea: Please read the FAQ and How to Request Help.
tomyam
Posts: 14
Joined: 19 Oct 2016, 09:56

Re: auto rename in plex movie folder

Post by tomyam »

yeah and thanks!

its working now with your acm script with automator but not my subtittle.srt. please advice and my files still in "watch folder". how to auto remove after complete?
User avatar
rednoah
The Source
Posts: 22975
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: auto rename in plex movie folder

Post by rednoah »

Thanks for the post! Before a real human comes by, please make sure your report has all the following points checked:
  • Include screenshots, logs or filenames (i.e. demonstrate the issue)
  • Include basic information (i.e. sysinfo output)
:idea: Please read How to Request Help and Fix Problems, Report Bugs, Get Features
:idea: Please read the FAQ and How to Request Help.
User avatar
rednoah
The Source
Posts: 22975
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: auto rename in plex movie folder

Post by rednoah »

tomyam wrote:its working now with your acm script with automator but not my subtittle.srt. please advice and my files still in "watch folder". how to auto remove after complete?
I have no idea what you're trying. What are you trying to achieve? What's not working?
:idea: Please read the FAQ and How to Request Help.
tomyam
Posts: 14
Joined: 19 Oct 2016, 09:56

Re: auto rename in plex movie folder

Post by tomyam »

really sorry for not making my case clear. i need filebot to rename my video/subtitle in "action folder" and move them to selected path.
i am using amc script with Folder Action with Automator now.
when i add videos and subtitles files to "action folder" only video files will be "rename and copy" to destination but not subtittles. how to get filebot to do subtitles too? thanks alot
User avatar
rednoah
The Source
Posts: 22975
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: auto rename in plex movie folder

Post by rednoah »

Subtitles will only be moved alongside their corresponding video files, so the video/subtitle filenames must match at least somewhat (but without the logs or filenames I can't tell you any details).
:idea: Please read the FAQ and How to Request Help.
tomyam
Posts: 14
Joined: 19 Oct 2016, 09:56

Re: auto rename in plex movie folder

Post by tomyam »

hi there
my tv show's name :

The.Man.Living.in.Our.House.E01.161024.720p-NEXT.mp4 is not working but if i change it to:
The.Man.Living.in.Our.House.S01E01.161024.720p-NEXT.mp4 is working

How can i fix this so i can auto run with filebot. Thank you
User avatar
rednoah
The Source
Posts: 22975
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: auto rename in plex movie folder

Post by rednoah »

1.
Sure, well named files will work better than badly named files.

2.
So when you say "auto run" you mean "make a command-line call" in which case please post the command you're executing and the output.

3.
If you're watching a show, make sure to rate it on TheTVDB:
https://thetvdb.com/?id=316989&tab=series

FileBot will recognize shows with 0 or bad ratings less well.
:idea: Please read the FAQ and How to Request Help.
tomyam
Posts: 14
Joined: 19 Oct 2016, 09:56

Re: auto rename in plex movie folder

Post by tomyam »

1) if i drop it to my file (The.Man.Living.in.Our.House.E01.161024.720p-NEXT.mp4) filebot os x apps and click "Match" a menu pop up and ask me to enter series name
2) nothing will happen if i run action folder with :
/usr/local/bin/filebot -rename --format "{plex}" /Users/xxx/download.tv --output /Volumes/xxx/filebot.folder/ --db thetvdb -non-strict

please advice and thank you
User avatar
rednoah
The Source
Posts: 22975
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: auto rename in plex movie folder

Post by rednoah »

1.
That is to be expected for a badly-named unknown TV Show.

2.
Use --q "The Man Living in Our House" to tell FileBot which TV Show you want. Use --filter "s == 1" to limit matches to Episode 1 of a specific season (if there is more than 1 season).
:idea: Please read the FAQ and How to Request Help.
tomyam
Posts: 14
Joined: 19 Oct 2016, 09:56

Re: auto rename in plex movie folder

Post by tomyam »

Hi there
am still trying to get it works. script below is working for my powerbook but not my imac for some reason...

running same script but different output result in my iMac and powerbook

/usr/local/bin/filebot -rename --format "{plex}" "{n} {s00e00} {t}" /Users/Download --output /User/Final/ -non-strict

file to process: The.Legend.of.the.Blue.Sea.E01.161116.720p-NEXT.mp4

result in my powerbook: "The Legend of the Blue Sea"
result in my iMac: "The Legend"

please advice and thank you
User avatar
rednoah
The Source
Posts: 22975
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: auto rename in plex movie folder

Post by rednoah »

1.
If you report data issues, you should at least include a TheTVDB link that shows what the correct data should be.


2.
If you report mismatch (i.e. wrong series) issues then you need to include the command-line output.


3.
This makes no sense:

Code: Select all

--format "{plex}" "{n} {s00e00} {t}"
You're using {plex} as format option, and then you pass in {n} {s00e00} {t} as input path, which makes no sense.
:idea: Please read the FAQ and How to Request Help.
tomyam
Posts: 14
Joined: 19 Oct 2016, 09:56

Re: auto rename in plex movie folder

Post by tomyam »

Hi there

am not reporting data issues or mismatch. still learning here and just dont understand why same script work in my powerbook but not my imac, thanks

p.s: the weird script can find my badly-named unknown TV Show which my filebot apps can't
User avatar
rednoah
The Source
Posts: 22975
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: auto rename in plex movie folder

Post by rednoah »

There could be a million reasons. From caching, to xattr, to changes in online data. Without logs I can't even speculate of what may or may not be going on.
:idea: Please read the FAQ and How to Request Help.
tomyam
Posts: 14
Joined: 19 Oct 2016, 09:56

Re: auto rename in plex movie folder

Post by tomyam »

Hi there
Here the command:
filebot -rename /Users/Desktop/toPlex --db thetvdb -non-strict

result in computer A:

FileBot 4.7.2 (r4178)
JNA Native: 4.0.1
MediaInfo: 0.7.87
7-Zip-JBinding: 9.20
Chromaprint: 1.1.0
Extended Attributes: OK
Script Bundle: 2016-11-07 (r458)
Groovy: 2.4.7
JRE: Java(TM) SE Runtime Environment 1.8.0_112
JVM: 64-bit Java HotSpot(TM) 64-Bit Server VM
CPU/MEM: 4 Core / 2 GB Max Memory / 187 MB Used Memory
OS: Mac OS X (x86_64)
Package: APP
Data: /Users/cyliong/.filebot
uname: Darwin chows-iMac 14.5.0 Darwin Kernel Version 14.5.0: Sun Sep 25 22:07:15 PDT 2016; root:xnu-2782.50.9~1/RELEASE_X86_64 x86_64
Done ヾ(@⌒ー⌒@)ノ

Rename episodes using [TheTVDB]
Auto-detected query: [the man living in our house e09]
Failed to fetch episode data: [the man living in our house e09]
Failed to match files to episode data
Failure (°_°)

result in computer B:

FileBot 4.7.2 (r4178)
JNA Native: 4.0.1
MediaInfo: 0.7.87
7-Zip-JBinding: 9.20
Chromaprint: 1.1.0
Extended Attributes: OK
Script Bundle: 2016-11-07 (r458)
Groovy: 2.4.7
JRE: Java(TM) SE Runtime Environment 1.8.0_102
JVM: 64-bit Java HotSpot(TM) 64-Bit Server VM
CPU/MEM: 2 Core / 1 GB Max Memory / 432 MB Used Memory
OS: Mac OS X (x86_64)
Package: APP
Data: /Users/liong/.filebot
uname: Darwin Liongs-MBP 14.5.0 Darwin Kernel Version 14.5.0: Sun Sep 25 22:07:15 PDT 2016; root:xnu-2782.50.9~1/RELEASE_X86_64 x86_64
Done ヾ(@⌒ー⌒@)ノ

Rename episodes using [TheTVDB]
Auto-detected query: [the man living in our house]
Fetching episode data for [The Man Living In Our House]
[MOVE] Rename [/Users/Desktop/toPlex/The.Man.Living.in.Our.House.E09.161121.720p-NEXT.mp4] to [/Users/Desktop/toPlex/The Man Living In Our House - 1x09 -.mp4]
Processed 1 files

Auto-detected query for computer A is looking for show name with episode number (romantic doctor teacher kim e05) instead of show's name only which computer B don't and It happen to my Filebot apps too


How can i fix that in computer A ? Thanks again
User avatar
rednoah
The Source
Posts: 22975
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: auto rename in plex movie folder

Post by rednoah »

I've added E[0-9]+ to the global query blacklist after your first post. If you try again next week it'll probably work.

@see viewtopic.php?t=1996
:idea: Please read the FAQ and How to Request Help.
tomyam
Posts: 14
Joined: 19 Oct 2016, 09:56

Re: auto rename in plex movie folder

Post by tomyam »

yeah!!! all good now after upgrading to 4.7.5! thanks alot
Post Reply