Auto Sub Lang Detection / Plex Rescan Problem
Posted: 29 Jun 2015, 13:58
Hi guys,
Since I updated Filebot to the latest version I have problems with adding the lang extension to my .srt files. The .srt is just being passed as .srt and not movie_name.dan.srt or movie_name.eng.srt. When Plex is picking up the .srt file I get unknown language because of the missing lang tag.
Im calling Filebot AMC from a Python script like this:
cmd = ("filebot -script dev:amc -non-strict --def ut_kind=multi --log all --log-file amc.log --def ut_dir=\"%s/%s\" " % (sys.argv[3], sys.argv[2]) + ' '.join(f$join(filebotOptions)).encode(u'utf-8')
filebotOptions = [
'--output $HOME/media', # where you want to copy/organize you're files i.e: X:/path/to/media
'--action symlink', # rename action i.e: move | copy | keeplink | symlink | hardlink
'--conflict override', # conflict resolution i.e: override | skip | fail
'--def subtitles=da', # download subtitles i.e: true | false
'--def artwork=false', # fetch artwork/nfo i.e: true | false
'--def extractfolder=' + path.join(os.getenv("HOME"), "torrents/extracted"),
'--def skipExtract=n',
'--def music=n',
'--encoding utf8',
'--def plex=localhost', # Tell the given Plex instance to rescan it's library
]
EDIT:
I'm also having problems with rescanning Plex when Filebot have done it's magic. I get this error:
Notify Plex: localhost
GET: https://localhost:32400/library/sections/all/refresh
SSLHandshakeException: java.security.cert.CertificateException: No subject alternative DNS name matching localhost found.
Since I updated Filebot to the latest version I have problems with adding the lang extension to my .srt files. The .srt is just being passed as .srt and not movie_name.dan.srt or movie_name.eng.srt. When Plex is picking up the .srt file I get unknown language because of the missing lang tag.
Im calling Filebot AMC from a Python script like this:
cmd = ("filebot -script dev:amc -non-strict --def ut_kind=multi --log all --log-file amc.log --def ut_dir=\"%s/%s\" " % (sys.argv[3], sys.argv[2]) + ' '.join(f$join(filebotOptions)).encode(u'utf-8')
filebotOptions = [
'--output $HOME/media', # where you want to copy/organize you're files i.e: X:/path/to/media
'--action symlink', # rename action i.e: move | copy | keeplink | symlink | hardlink
'--conflict override', # conflict resolution i.e: override | skip | fail
'--def subtitles=da', # download subtitles i.e: true | false
'--def artwork=false', # fetch artwork/nfo i.e: true | false
'--def extractfolder=' + path.join(os.getenv("HOME"), "torrents/extracted"),
'--def skipExtract=n',
'--def music=n',
'--encoding utf8',
'--def plex=localhost', # Tell the given Plex instance to rescan it's library
]
EDIT:
I'm also having problems with rescanning Plex when Filebot have done it's magic. I get this error:
Notify Plex: localhost
GET: https://localhost:32400/library/sections/all/refresh
SSLHandshakeException: java.security.cert.CertificateException: No subject alternative DNS name matching localhost found.