Page 1 of 1

Logs in each individual media folder

Posted: 11 Apr 2016, 13:02
by vanhouten035
Hey,

I was wondering if it's possible to create a cmd log from the file that is being processed and being put right next to the media file.
This would make it easier for me to identify what subititle file has been fetched for the media file.

Not sure if it is possible, just wondering if it is and if you guys could help me with it.

P.S
I'm not a great scripter I'm affraid. :roll:

System: Windows 7 64bit.

Code: Select all

filebot -script fn:amc --output "D:\Plex\Plex Media" --log-file amc.log --log-file "D:\Plex\Logs\log.txt" --conflict skip --action copy "D:\Plex\Gedownloade torrents" --def excludeList=amc.txt -non-strict --def clean=y subtitles=nl,en
filebot -script fn:replace --def "e=.nld.srt" "r=.nl.srt" "D:\Plex\Plex Media"
filebot -script fn:replace --def "e=.eng.srt" "r=.en.srt" "D:\Plex\Plex Media"
--def plex=host:XXXXXXXXXX
This is the current .bat file which will run after a media torrent has finished downloading.

So basicly what I'm asking:
If a media file is being processed and will end up in this folder:
D:\Plex\Plex Media\Movies\Crimson Peak (2015)
Would it be possible to create a log file of the cmd being used to process this file in this folder aswell?
So like this:
D:\Plex\Plex Media\Movies\Crimson Peak (2015)\log.txt

Re: Logs in each individual media folder

Posted: 11 Apr 2016, 13:09
by rednoah
1.
Sorry, the --log-file logs is all you get. But based on those logs you could probably generate the per-subtitle-file logs you want. You could pay me to make a script for you if you really want it, but I ain't cheap. ;)


2.
Why force 2-letter language codes? I'm pretty sure Plex prefers 3-letter language codes.

Re: Logs in each individual media folder

Posted: 11 Apr 2016, 13:17
by vanhouten035
rednoah wrote:1.
Sorry, the --log-file logs is all you get. But based on those logs you could probably generate the per-subtitle-file logs you want. You could pay me to make a script for you if you really want it, but I ain't cheap. ;)


2.
Why force 2-letter language codes? I'm pretty sure Plex prefers 3-letter language codes.
Thanks for the quick reply!
1. Naah, it was just a small thing which would enable me to check what subtitle has been downloaded if it was out of sync. So I could avoid that one when downloading it manually.
2. I was pretty sure myself that Plex only supported 2-letter language codes out of experience... but you got me in doubt.... Let me get back to you in a few XD

Re: Logs in each individual media folder

Posted: 11 Apr 2016, 13:23
by vanhouten035
Seems like it supports both! :)

Re: Logs in each individual media folder

Posted: 11 Apr 2016, 13:44
by vanhouten035
I was wrong. Just tested it thoroughly. Plex will recognize the subtitle. But instead of the language name it will show as unknown.

Re: Logs in each individual media folder

Posted: 11 Apr 2016, 21:27
by rednoah
I guess Plex uses the B standard.

Code: Select all

ISO 639-1	nl
ISO 639-2	dut (B), nld (T)
Can you try it it works with *.dut.srt files?