filebot / scripts Goto Github PK
View Code? Open in Web Editor NEWGroovy Scripts for FileBot
Home Page: https://www.filebot.net/
License: GNU General Public License v3.0
Groovy Scripts for FileBot
Home Page: https://www.filebot.net/
License: GNU General Public License v3.0
I'm getting this message since approximately last week:
FileNotFoundException: https://raw.githubusercontent.com/filebot/scripts/v4.1/amc.groovy java.io.FileNotFoundException: https://raw.githubusercontent.com/filebot/scripts/v4.1/amc.groovy at net.filebot.web.WebRequest.fetch(WebRequest.java:140) at net.filebot.web.WebRequest.fetchIfModified(WebRequest.java:118) at net.filebot.web.CachedResource.fetchData(CachedResource.java:32) at net.filebot.web.CachedResource.fetchData(CachedResource.java:11) at net.filebot.web.AbstractCachedResource.fetch(AbstractCachedResource.java:133) at net.filebot.web.AbstractCachedResource.get(AbstractCachedResource.java:78) at net.filebot.cli.ArgumentProcessor$DefaultScriptProvider.fetchScript(ArgumentProcessor.java:198) at net.filebot.cli.ScriptShell.runScript(ScriptShell.java:81) at net.filebot.cli.ArgumentProcessor.process(ArgumentProcessor.java:108) at net.filebot.Main.main(Main.java:192)
The cause seems to be that the branch v4.1 doesn't exist anymore.
I'm using an r4070 Jar (from sourceforge) on Centos 6 and OpenJDK.
In amc scripts, I can not send anymore email via gmail option because of new authentification at gmail server.
Please fix
Just noticed the following error messages in the AMC log:
Run script [fn:amc] at [Mon Nov 07 17:27:28 2016]
Parameter: ut_state_allow = 11
Parameter: unsorted = n
Parameter: music = n
Parameter: artwork = n
Parameter: extras = n
Parameter: skipExtract = y
Parameter: clean = y
Parameter: seriesFormat = D:/TV/{n.sortName('$2, $1').replaceTrailingBrackets()}/s{s}e{e.pad(2)} {t.replaceAll(/[!?.]+$/).replaceAll(/[`´‘’?]/, "'").lowerTrail()}
Parameter: movieFormat = X:/AVI/{n.sortName('$2, $1').lowerTrail()} ({y}) {vf} {ac.replace('AC3','DD')}{af.replace('6ch','5.1').replace('2ch','2.0')}
Parameter: ignore = US Open|Formula
Parameter: ut_label =
Parameter: ut_state = 11
Parameter: ut_title = From [ WWW.TORRENTING.COM ] - Ash.vs.Evil.Dead.S02E06.720p.HEVC.x265-MeGusta
Parameter: ut_kind = multi
Parameter: ut_file = Ash.vs.Evil.Dead.S02E06.720p.HEVC.x265-MeGusta.mkv
Parameter: ut_dir = D:\utorrent\downloads\From [ WWW.TORRENTING.COM ] - Ash.vs.Evil.Dead.S02E06.720p.HEVC.x265-MeGusta
Input: D:\utorrent\downloads\From [ WWW.TORRENTING.COM ] - Ash.vs.Evil.Dead.S02E06.720p.HEVC.x265-MeGusta\Ash.vs.Evil.Dead.S02E06.720p.HEVC.x265-MeGusta.mkv
Group: [tvs:ash vs evil dead] => [Ash.vs.Evil.Dead.S02E06.720p.HEVC.x265-MeGusta.mkv]
Rename episodes using [TheTVDB]
Auto-detected query: [Ash vs Evil Dead]
Fetching episode data for [Ash vs Evil Dead]
Apply Filter: {any{episode; age < 92}{true}}
Include [Ash vs Evil Dead - 2x01 - Home]
Include [Ash vs Evil Dead - 2x02 - The Morgue]
Include [Ash vs Evil Dead - 2x03 - Last Call]
Include [Ash vs Evil Dead - 2x04 - DUI]
Include [Ash vs Evil Dead - 2x05 - Confinement]
Include [Ash vs Evil Dead - 2x06 - Trapped Inside]
Include [Ash vs Evil Dead - 2x07 - Delusion]
Include [Ash vs Evil Dead - 2x08 - Ashy Slashy]
Include [Ash vs Evil Dead - 2x09 - Home Again]
Include [Ash vs Evil Dead - 2x10 - Second Coming]
[MOVE] Rename [D:\utorrent\downloads\From [ WWW.TORRENTING.COM ] - Ash.vs.Evil.Dead.S02E06.720p.HEVC.x265-MeGusta\Ash.vs.Evil.Dead.S02E06.720p.HEVC.x265-MeGusta.mkv] to [D:\TV\Ash vs Evil Dead\s2e06 Trapped Inside.mkv]
Processed 1 files
Clean clutter files and empty folders
No signature of method: java.lang.String.findMatch() is applicable for argument types: (java.util.regex.Pattern) values: [US Open|Formula]
Possible solutions: findMatch(java.lang.String), findAll(java.util.regex.Pattern), findAll(), eachMatch(java.util.regex.Pattern, groovy.lang.Closure), find(java.util.regex.Pattern), eachMatch(java.util.regex.Pattern, groovy.lang.Closure)
groovy.lang.MissingMethodException: No signature of method: java.lang.String.findMatch() is applicable for argument types: (java.util.regex.Pattern) values: [US Open|Formula]
Possible solutions: findMatch(java.lang.String), findAll(java.util.regex.Pattern), findAll(), eachMatch(java.util.regex.Pattern, groovy.lang.Closure), find(java.util.regex.Pattern), eachMatch(java.util.regex.Pattern, groovy.lang.Closure)
at Script8$_run_closure13.doCall(Script8.groovy:20)
at Script8$_run_closure16.doCall(Script8.groovy:57)
at net.filebot.cli.ScriptShellMethods.getFiles(ScriptShellMethods.java:140)
at Script8.run(Script8.groovy:57)
at net.filebot.cli.ScriptShell.evaluate(ScriptShell.java:62)
at net.filebot.cli.ScriptShell.runScript(ScriptShell.java:72)
at net.filebot.cli.ScriptShellBaseClass.executeScript(ScriptShellBaseClass.java:115)
at net.filebot.cli.ScriptShellBaseClass.executeScript(ScriptShellBaseClass.java:98)
at Script1.run(Script1.groovy:676)
at net.filebot.cli.ScriptShell.evaluate(ScriptShell.java:62)
at net.filebot.cli.ScriptShell.runScript(ScriptShell.java:72)
at net.filebot.cli.ArgumentProcessor.runScript(ArgumentProcessor.java:113)
at net.filebot.cli.ArgumentProcessor.run(ArgumentProcessor.java:28)
at net.filebot.Main.main(Main.java:124)
Failure (°_°)
I call AMC via uTorrent, preferences, Run Program with the following command:
"C:\Program Files\FileBot\filebot.launcher.exe" -script fn:amc --action move -non-strict -no-xattr --log-file "d:/tv/amc.log" --filter "any{episode; age < 92}{true}" --def "@d:/TV/amc_args.txt" "ut_label=%L" "ut_state=%S" "ut_title=%N" "ut_kind=%K" "ut_file=%F" "ut_dir=%D"
and use the following AMC arguments file:
ut_state_allow=11
unsorted=n
music=n
artwork=n
extras=n
skipExtract=y
clean=y
seriesFormat=D:/TV/{n.sortName('$2, $1').replaceTrailingBrackets()}/s{s}e{e.pad(2)} {t.replaceAll(/[!?.]+$/).replaceAll(/[`´‘’?]/, "'").lowerTrail()}
movieFormat=X:/AVI/{n.sortName('$2, $1').lowerTrail()} ({y}) {vf} {ac.replace('AC3','DD')}{af.replace('6ch','5.1').replace('2ch','2.0')}
ignore=US Open|Formula
I'm using win7 x32 FileBot 4.7.2
scripts/artwork.tvdb.groovy since TVDB changed it layout it no longer can fetch posters and other goodies. Can you take a look @rednoah ?
I'm located in the US and FileBot keeps trying to name Harry Potter and the Sorcerer's Stone as Harry Potter and the Philosopher's Stone. The former of which is the title in the US and the latter is the title in the UK. Additionally, the release year is also incorrect a number of times because many films were released in the US before they were release elsewhere, so the year is different. For instance, A Place Beyond The Pines was released in the US in 2012 (according to IMDB), but TMBD reports it as 2013, since that was the year it was released elsewhere.
It would be nice if we could pick the database being used for the amc
script, so that people in the US get the correct title and year.
Looks like someone has already attempted to do this in #50.
The default behaviour of the rename step is to use what was specified in the --action
argument.
But even if the user specified copy
as that action, when temporary files are created (e.g. the target was a zip file instead of a singular video file), this can be optimized to a move
if clean
is enabled since it will be deleted afterwards anyhow.
This would avoid doing an unnecessary copy.
Installed Filebot on Synology as per https://www.filebot.net/forums/viewtopic.php?t=1802
Installed OpenJDK with installer linked in that topic. Also installed Media Server, MediaInfo, Chromaprint and Filebot-Node.
$ /usr/local/filebot/filebot.sh
FileBot 4.8.5 (r6224) / OpenJDK Runtime Environment 13.0.2 (headless)
$ /usr/local/filebot/filebot.sh -script fn:sysinfo
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.codehaus.groovy.vmplugin.v7.Java7$1 (file:/volume1/@appstore/filebot/jar/groovy.jar) to constructor java.lang.invoke.MethodHandles$Lookup(java.lang.Class,int)
WARNING: Please consider reporting this to the maintainers of org.codehaus.groovy.vmplugin.v7.Java7$1
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
BUG! exception in phase 'semantic analysis' in source unit 'Script1.groovy' Unsupported class file major version 57
BUG! exception in phase 'semantic analysis' in source unit 'Script1.groovy' Unsupported class file major version 57
at net.filebot.cli.ScriptShell.evaluate(ScriptShell.java:64)
at net.filebot.cli.ScriptShell.runScript(ScriptShell.java:74)
at net.filebot.cli.ArgumentProcessor.runScript(ArgumentProcessor.java:163)
at net.filebot.cli.ArgumentProcessor.run(ArgumentProcessor.java:37)
at net.filebot.Main.main(Main.java:132)
Caused by: java.lang.IllegalArgumentException: Unsupported class file major version 57
at groovyjarjarasm.asm.ClassReader.<init>(ClassReader.java:184)
at groovyjarjarasm.asm.ClassReader.<init>(ClassReader.java:166)
at groovyjarjarasm.asm.ClassReader.<init>(ClassReader.java:152)
at groovyjarjarasm.asm.ClassReader.<init>(ClassReader.java:273)
... 5 more
Error (o_O)
Example: "The Avengers (2010)" should be "Avengers, The (2010)" as this would display it properly in all clients.
Hello,
My FileBot is no longer working since two or three days, when I'm trying to scrap a movie, I got this error from console :
filebot
Fetch failed: java.net.SocketTimeoutException: connect timed out [https://app.filebot.net/update.xml]
Failed to check for updates
java.net.SocketTimeoutException: connect timed out
at net.filebot.web.WebRequest.fetch(WebRequest.java:143)
at net.filebot.CachedResource.lambda$fetchIfModified$9(CachedResource.java:216)
at net.filebot.CachedResource.lambda$null$0(CachedResource.java:87)
at net.filebot.CachedResource.retry(CachedResource.java:120)
at net.filebot.CachedResource.lambda$get$1(CachedResource.java:87)
at net.filebot.Cache.computeIf(Cache.java:90)
at net.filebot.CachedResource.get(CachedResource.java:82)
at net.filebot.Main.checkUpdate(Main.java:262)
at net.filebot.Main.onStart(Main.java:178)
at net.filebot.Main.lambda$null$0(Main.java:136)
at net.filebot.util.ui.SwingUI$SwingRunnable.doInBackground(SwingUI.java:426)
at net.filebot.util.ui.SwingUI$SwingRunnable.doInBackground(SwingUI.java:416)
Caused by: java.net.SocketTimeoutException: connect timed out
at net.filebot.web.WebRequest.fetch(WebRequest.java:140)
... 11 more
Fetch failed: java.net.SocketTimeoutException: connect timed out [https://app.filebot.net/data/exclude-blacklist.txt.xz]
Failed to load clutter file filter: connect timed out
java.net.SocketTimeoutException: connect timed out
at net.filebot.web.WebRequest.fetch(WebRequest.java:143)
at net.filebot.CachedResource.lambda$fetchIfModified$9(CachedResource.java:216)
at net.filebot.CachedResource.lambda$null$0(CachedResource.java:87)
at net.filebot.CachedResource.retry(CachedResource.java:120)
at net.filebot.CachedResource.retry(CachedResource.java:132)
at net.filebot.CachedResource.retry(CachedResource.java:132)
at net.filebot.CachedResource.lambda$get$1(CachedResource.java:87)
at net.filebot.Cache.computeIf(Cache.java:90)
at net.filebot.CachedResource.get(CachedResource.java:82)
at net.filebot.media.ReleaseInfo.lambda$resource$18(ReleaseInfo.java:489)
at net.filebot.MemoizedResource.get(Resource.java:36)
at net.filebot.media.ReleaseInfo.getExcludePattern(ReleaseInfo.java:354)
at net.filebot.media.ReleaseInfo.getClutterFileFilter(ReleaseInfo.java:407)
at net.filebot.media.MediaDetection.getClutterFileFilter(MediaDetection.java:85)
at net.filebot.ui.rename.MovieMatcher.match(MovieMatcher.java:74)
at net.filebot.ui.rename.RenamePanel$AutoCompleteAction$1.doInBackground(RenamePanel.java:883)
at net.filebot.ui.rename.RenamePanel$AutoCompleteAction$1.doInBackground(RenamePanel.java:879)
Caused by: java.net.SocketTimeoutException: connect timed out
at net.filebot.web.WebRequest.fetch(WebRequest.java:140)
... 16 more
Fetch failed: java.net.SocketTimeoutException: connect timed out [https://app.filebot.net/data/query-blacklist.txt.xz]
SocketTimeoutException: connect timed out
java.util.concurrent.ExecutionException: java.util.concurrent.ExecutionException: java.net.SocketTimeoutException: connect timed out
at net.filebot.ui.rename.RenamePanel$AutoCompleteAction$1.done(RenamePanel.java:898)
Caused by: java.util.concurrent.ExecutionException: java.net.SocketTimeoutException: connect timed out
at net.filebot.ui.rename.MovieMatcher.match(MovieMatcher.java:178)
at net.filebot.ui.rename.RenamePanel$AutoCompleteAction$1.doInBackground(RenamePanel.java:883)
at net.filebot.ui.rename.RenamePanel$AutoCompleteAction$1.doInBackground(RenamePanel.java:879)
Caused by: java.net.SocketTimeoutException: connect timed out
at net.filebot.web.WebRequest.fetch(WebRequest.java:143)
at net.filebot.CachedResource.lambda$fetchIfModified$9(CachedResource.java:216)
at net.filebot.CachedResource.lambda$null$0(CachedResource.java:87)
at net.filebot.CachedResource.retry(CachedResource.java:120)
at net.filebot.CachedResource.retry(CachedResource.java:132)
at net.filebot.CachedResource.retry(CachedResource.java:132)
at net.filebot.CachedResource.lambda$get$1(CachedResource.java:87)
at net.filebot.Cache.computeIf(Cache.java:90)
at net.filebot.CachedResource.get(CachedResource.java:82)
at net.filebot.media.ReleaseInfo.lambda$resource$18(ReleaseInfo.java:489)
at net.filebot.MemoizedResource.get(Resource.java:36)
at net.filebot.media.ReleaseInfo.getStructureRootPattern(ReleaseInfo.java:263)
at net.filebot.media.MediaDetection.isStructureRoot(MediaDetection.java:1015)
at net.filebot.media.MediaDetection.guessMovieFolder(MediaDetection.java:808)
at net.filebot.media.MediaDetection.detectMovie(MediaDetection.java:605)
at net.filebot.ui.rename.MovieMatcher.lambda$null$2(MovieMatcher.java:172)
Caused by: java.net.SocketTimeoutException: connect timed out
at net.filebot.web.WebRequest.fetch(WebRequest.java:140)
... 15 more
When I try to access your website or this URL my browser is very slow and 1 time on 5 try I can display webpage. I've try from 5 differents Internet providers, same result ...
This is traceroute for this URLs :
[[email protected]]/root: traceroute www.filebot.net
traceroute: Warning: www.filebot.net has multiple addresses; using 104.27.153.61
traceroute to www.filebot.net (104.27.153.61), 64 hops max, 40 byte packets
1 XXXXXXXXXXXXXXXXXXXXXXXXX 41.167 ms 36.099 ms 40.670 ms
2 XXXXXXXXXXXXXXXXXXXXXXXXX 30.649 ms 130.684 ms 31.551 ms
3 XXXXXXXXXXXXXXXXXXXXXXXXX 46.891 ms 38.933 ms 43.813 ms
4 XXXXXXXXXXXXXXXXXXXXXXXXX 51.902 ms 53.283 ms 44.245 ms
5 XXXXXXXXXXXXXXXXXXXXXXXXX 53.388 ms 41.892 ms 43.053 ms
6 be4204.ccr21.par04.atlas.cogentco.com (149.11.115.13) 95.027 ms 100.518 ms 100.521 ms
7 be12309.ccr42.par01.atlas.cogentco.com (154.54.39.65) 100.748 ms 93.116 ms
be12308.ccr41.par01.atlas.cogentco.com (130.117.49.41) 101.118 ms
8 be12489.ccr42.lon13.atlas.cogentco.com (154.54.57.69) 108.722 ms 101.252 ms
be12497.ccr41.lon13.atlas.cogentco.com (154.54.56.129) 91.358 ms
9 be2871.ccr21.lon01.atlas.cogentco.com (154.54.58.186) 106.524 ms
be2868.ccr21.lon01.atlas.cogentco.com (154.54.57.154) 100.117 ms 107.390 ms
10 149.14.80.206 (149.14.80.206) 101.610 ms 110.591 ms 111.960 ms
11 104.27.153.61 (104.27.153.61) 108.226 ms 104.516 ms 101.816 ms
[[email protected]]/root: traceroute app.filebot.net
traceroute: Warning: app.filebot.net has multiple addresses; using 104.27.152.61
traceroute to app.filebot.net (104.27.152.61), 64 hops max, 40 byte packets
1 XXXXXXXXXXXXXXXXXXXXXXXXX 29.068 ms 40.486 ms 42.771 ms
2 XXXXXXXXXXXXXXXXXXXXXXXXX 29.407 ms 46.696 ms 35.424 ms
3 XXXXXXXXXXXXXXXXXXXXXXXXX 42.598 ms 41.845 ms 43.814 ms
4 XXXXXXXXXXXXXXXXXXXXXXXXX 51.759 ms 49.809 ms 64.142 ms
5 XXXXXXXXXXXXXXXXXXXXXXXXX 49.037 ms 47.638 ms 62.914 ms
6 be4204.ccr21.par04.atlas.cogentco.com (149.11.115.13) 97.882 ms 92.609 ms 100.052 ms
7 be12309.ccr42.par01.atlas.cogentco.com (154.54.39.65) 99.980 ms
be12308.ccr41.par01.atlas.cogentco.com (130.117.49.41) 109.514 ms
be12309.ccr42.par01.atlas.cogentco.com (154.54.39.65) 95.871 ms
8 be12497.ccr41.lon13.atlas.cogentco.com (154.54.56.129) 104.826 ms
be12489.ccr42.lon13.atlas.cogentco.com (154.54.57.69) 107.157 ms 96.441 ms
9 be2868.ccr21.lon01.atlas.cogentco.com (154.54.57.154) 101.096 ms
be2871.ccr21.lon01.atlas.cogentco.com (154.54.58.186) 101.448 ms
be2868.ccr21.lon01.atlas.cogentco.com (154.54.57.154) 109.141 ms
10 149.14.80.206 (149.14.80.206) 103.919 ms 96.160 ms 100.058 ms
11 104.27.152.61 (104.27.152.61) 104.856 ms 107.062 ms 98.230 ms
[[email protected]]/root:
Can you please let me know if you have something wrong with your website or your provider or if it's just a local problem or my installation/connexion ?
Thanks in advance.
I noticed the mi.groovy script does not currently output subtitle information. It only outputs audio track information.
Any chance on getting it to do both?
I would find this most useful as I have some files with embedded subtitles, and some without. This would make it easier to determine which ones need external subtitle files to be obtained.
Would be cool to have an argument to define if files without any extension should be deleted.
Cheers
Thanks for creating this script, much appreciated. I just tried running it on the original Star Trek series and unfortunately I got the following error:
Generate Episode NFO: Star Trek - 1x01 - The Man Trap [/TV Shows/Star Trek (1966)/Season 01/Star Trek (1966) - S01E01 - The Man Trap.nfo]
No such property: image for class: net.filebot.web.EpisodeInfo
groovy.lang.MissingPropertyException: No such property: image for class: net.filebot.web.EpisodeInfo
at Script1$_fetchEpisodeNfo_closure2$_closure3.doCall(Script1.groovy:26)
at Script1$_fetchEpisodeNfo_closure2$_closure3.doCall(Script1.groovy)
at Script1$_fetchEpisodeNfo_closure2.doCall(Script1.groovy:10)
at Script1$_fetchEpisodeNfo_closure2.doCall(Script1.groovy)
at net.filebot.cli.ScriptShellBaseClass.XML(Unknown Source)
at Script1.fetchEpisodeNfo(Script1.groovy:9)
at Script1$_run_closure1.doCall(Script1.groovy:89)
at Script1.run(Script1.groovy:80)
at net.filebot.cli.ScriptShell.evaluate(Unknown Source)
at net.filebot.cli.ScriptShell.runScript(Unknown Source)
at net.filebot.cli.ArgumentProcessor.runScript(Unknown Source)
at net.filebot.cli.ArgumentProcessor.run(Unknown Source)
at net.filebot.Main.main(Unknown Source)
Error (o_O)
Seems to be caused by line 26 in the script that is used to generate the thumb entry in the nfo file. Any chance this can be fixed without removing the thumb entry? I was hoping to use that info from the nfo file to download the thumb and store it along with the nfo file.
Hi,
First off thank you for your work on this project. it's a fantastic piece of software.
I'm using the amc.groovy script to automate some filebot jobs but I have noticed that when it can't find some files to download (e.g. fanart) it'll create a size zero file in the destination location anyway. For example I'll end up with a size zero file "fanart.jpg" or something else in the folder with the tvshow or movie. This wouldn't be an issue except that plex still reads these files as ones it should be using and so I end up with blank artwork in my plex library. It would be better to let plex have a go at finding something if filebot can't get the right files.
I think the simplest way to do this would be to do a quick check on the metadata files as they are created and delete any with size = 0 bytes. This would allow plex to have a go at finding things only if filebot fails to find the correct files.
Is this kind of quick pass over the files created by the script feasible?
Many Thanks.
Hi,
When I try to run the script against localized file names (ie: English movies titles translated to French) it fails and give some random name. Here is it in action:
root@seedbox:/shared/scripts# filebot -script /shared/scripts/filebot/amc.groovy -non-strict --log-file/var/log/amc.log --output /shared/storage/media-center --action hardlink --conflict override --def subtitles=true --def artwork=true --def plex=localhost --lang=fr --def 'exec=chmod 775 "{file}"' 'subtitles=fr' 'artwork=true' 'ut_title=Le Pont des espions.mkv' 'ut_dir=/shared/downloaded' 'ut_file=Le Pont des espions. mkv' 'ut_kind=single'
Locking /var/log/amc.log
Run script [/shared/scripts/filebot/amc.groovy] at [Sat Aug 06 20:19:30 CEST 2016]
Parameter: subtitles = fr
Parameter: artwork = true
Parameter: plex = localhost
Parameter: exec = chmod 775 "{file}"
Parameter: ut_title = Le Pont des espions.mkv
Parameter: ut_dir = /shared/downloaded
Parameter: ut_file = Le Pont des espions.mkv
Parameter: ut_kind = single
Input: /shared/downloaded/Le Pont des espions.mkv
xattr: [Le Pont des espions.mkv] => [Downloaded (2013)]
Group: [mov:downloaded 2013] => [Le Pont des espions.mkv]
Get [French] subtitles for 1 files
Looking up subtitles by hash via OpenSubtitles
No matching subtitles found: /shared/downloaded/Le Pont des espions.mkv
Rename movies using [TheMovieDB]
Auto-detect movie from context: [/shared/downloaded/Le Pont des espions.mkv]
[HARDLINK] Rename [/shared/downloaded/Le Pont des espions.mkv] to [/shared/storage/media-center/Movies/Downloaded (2013)/Downloaded (2013).mkv
]
Processed 1 files
Fetching movie artwork for [Downloaded (2013)] to [/shared/storage/media-center/Movies/Downloaded (2013)]
Generate Movie NFO: Downloaded [173210]
Fetching /shared/storage/media-center/Movies/Downloaded (2013)/poster.jpg => [posters/1400x2100, en, http://image.tmdb.org/t/p/original/tB7eZk
J71MGbrtDJ9qwORKuWlQw.jpg]
Fetching /shared/storage/media-center/Movies/Downloaded (2013)/fanart.jpg => [backdrops/1920x1080, en, http://image.tmdb.org/t/p/original/uSiQ
rmLTvp7216blCaed5TGGk6J.jpg]
Fanart not found: /shared/storage/media-center/Movies/Downloaded (2013)/clearart.png / hdmovieclearart
Fanart not found: /shared/storage/media-center/Movies/Downloaded (2013)/clearart.png / movieart
Fetching /shared/storage/media-center/Movies/Downloaded (2013)/logo.png => [hdmovielogo, en, 0.0, http://assets.fanart.tv/fanart/movies/173210
/hdmovielogo/downloaded-5286e1577f99d.png]
Fanart not found: /shared/storage/media-center/Movies/Downloaded (2013)/disc.png / moviedisc
Fanart not found: /shared/storage/media-center/Movies/Downloaded (2013)/disc.png / moviedisc
Fanart not found: /shared/storage/media-center/Movies/Downloaded (2013)/disc.png / moviedisc
Execute: chmod 775 "/shared/storage/media-center/Movies/Downloaded (2013)/Downloaded (2013).mkv"
Notify Plex: localhost
GET: http://localhost:32400/library/sections/all/refresh
Done ヾ(@⌒ー⌒@)ノ
Thanks in advance
Ignore list should be give to the cleanner script to prevent deletion of file unaffected by the process.
Hello,
Since i don't know, the cleaner don't detect anymore the left empty symlink.
When i launch the script, it just say Done, but nothing is done.
( i checked with find / -type l | perl -lne 'print if ! -e'
and it show me some of error symlink)
I am trying to download subtitles for media that is older than 30 days old using the suball
script, but when I give a value for the maxAgeDays option, it refuses for any value over 30. But if I don't provide a value, it defaults to 30 days. So how do I download subtitles for media that is over 30 days old?
filebot version: FileBot 4.8.5 (r6224) / OpenJDK Runtime Environment 11.0.5 / Linux 4.15.0-72-generic (amd64)
install method: deb repo
When running the amc script and it skips a small video file, I get the following error. This seems related to 4353caf.
Is this version of the amc script not meant to run with my version of filebot?
No such property: displaySize for class: java.io.File
groovy.lang.MissingPropertyException: No such property: displaySize for class: java.io.File
at Script1.acceptFile(Script1.groovy:260)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at Script1$_resolveInput_closure96.doCall(Script1.groovy:288)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at com.sun.proxy.$Proxy18.accept(Unknown Source)
at net.filebot.util.FileUtilities.getChildren(FileUtilities.java:522)
at net.filebot.cli.ScriptShellMethods.listFiles(ScriptShellMethods.java:95)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at Script1.resolveInput(Script1.groovy:288)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at Script1$_resolveInput_closure97.doCall(Script1.groovy:288)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at Script1.resolveInput(Script1.groovy:288)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at Script1$_resolveInput_closure97.doCall(Script1.groovy:288)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at Script1.resolveInput(Script1.groovy:288)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at Script1$_run_closure61.doCall(Script1.groovy:301)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at Script1.run(Script1.groovy:301)
at net.filebot.cli.ScriptShell.evaluate(ScriptShell.java:64)
at net.filebot.cli.ScriptShell.runScript(ScriptShell.java:74)
at net.filebot.cli.ArgumentProcessor.runScript(ArgumentProcessor.java:163)
at net.filebot.cli.ArgumentProcessor.run(ArgumentProcessor.java:37)
at net.filebot.Main.main(Main.java:132)
When you use amc script to process multiple files the subject of the email report contains the name of all the processed files (see attachments). This add wheight to the reading of the email, and maybe it could be simpler, for example deleting the entire getNotificationMessage from the email subject.
It's just a suggestion.
Above the two lines involved.
def getReportSubject = { getNotificationMessage('', ', ') }
def getReportTitle = { '[FileBot] ' + getReportSubject() }
Not sure why it sorted incorrectly. But, here is the log.
Run script [fn:amc] at [Sat Feb 13 02:02:31 CST 2016]
Parameter: excludeList = t:/amc.txt
Parameter: ut_label = Series
Parameter: clean = y
Argument: T:\BT Sync\TV Shows
Using excludes: t:\amc.txt (84)
Input: T:\BT Sync\TV Shows\The.Originals.S03E12.720p.HDTV.X264-DIMENSION.mkv
Group: [tvs:the originals] => [The.Originals.S03E12.720p.HDTV.X264-DIMENSION.mkv]
Rename episodes using [TheTVDB]
Auto-detected query: [The Originals]
Fetching episode data for [The Originals]
Error while loading XML resource: http://thetvdb.com/api/694FAD89942D3827/series/266883/all/en.xml (java.io.IOException: Malformed XML: http://thetvdb.com/api/694FAD89942D3827/series/266883/all/en.xml (XML document structures must start and end within the same entity.))
Fetching episode data for [SAS: The Originals]
Fetching episode data for [The Originals With Emeril]
[MOVE] Rename [T:\BT Sync\TV Shows\The.Originals.S03E12.720p.HDTV.X264-DIMENSION.mkv] to [t:\TV Shows\The Originals With Emeril\Season 01\The Originals With Emeril - S01E12 - New York City 2.mkv]
Processed 1 files
Clean clutter files and empty folders
Done ヾ(@⌒ー⌒@)ノ
I've been having problems with AMC while renaming movies, it groups dozens of movies in the same group which results in all these movies being renamed as the same wrong movie.
Command used:
filebot -script fn:amc --output "D:\output" --action move --conflict auto -no-xattr -non-strict "G:\movies" --log-file "D:\amc.log" --def movieFormat="G:\movies-sorted\{ny}\{fn}" skipExtract=y minFileSize=0 minLengthMS=0 "ut_label=Movies"
Log:
Run script [fn:amc] at [Wed Oct 24 11:12:06 BST 2018]
Parameter: movieFormat = G:\movies-sorted{ny}{fn}
Parameter: skipExtract = y
Parameter: minFileSize = 0
Parameter: minLengthMS = 0
Parameter: ut_label = Movies
Argument[0]: G:\movies
Input: G:\movies\3.An.Eye.For.an.Eye.2018.1080p.WEB-DL.H264.AC3-EVO.mkv
Input: G:\movies\420.Massacre.2018.1080p.AMZN.WEB-DL.DDP2.0.H.264-NTG.mkv
Input: G:\movies[16+] Garbage (2018) 1080p WEBHD DD 5.1 ESub - DTOne.mkv
Input: G:\movies\A.Man.Called.Jon.2015.1080p.AMZN.WEB-DL.AAC2.0.H.264-NTb.mkv
Input: G:\movies\An Elephants Journey.2018.1080p.WEB-DL.H264.AC3-EVO.mkv
Input: G:\movies\Another.Time.2018.1080p.WEB-DL.DD5.1.H264-CMRG.mkv
Input: G:\movies\Beyond.Words.2017.1080p.AMZN.WEB-DL.DD+5.1.H.264-Cinefeel.mkv
Input: G:\movies\Blossoms.of.Faith.1080p.AMZN.WEB-DL.DDP2.0.H.264-NTb.mkv
Input: G:\movies\Born.Racer.2018.1080p.AMZN.WEB-DL.DD+5.1.H.264-AJP69.mkv
Input: G:\movies\City.of.Joy.2018.1080p.NF.WEB-DL.DDP5.1.x264-NTG.mkv
Input: G:\movies\Cocaine.Godmother.2017.1080p.AMZN.WEB-DL.DDP2.0.x264-ABM.mkv
Input: G:\movies\Constantine.City.of.Demons.The.Movie.2018.1080p.BluRay.DTS.X264-CMRG.mkv
Input: G:\movies\Constantine.City.of.Demons.The.Movie.2018.1080p.BluRay.REMUX.AVC.DTS-HD.MA.5.1-EPSiLON.mkv
Input: G:\movies\Dark House.2017.WEBRip.RR.mkv
Input: G:\movies\Dead.Squad.Temple.of.the.Undead.2018.1080p.AMZN-CBR.WEB-DL.AAC2.0.H.264-NTG.mkv
Input: G:\movies\Desiree.2015.1080p.AMZN.WEB-DL.DDP5.1.H.264-NTG.mkv
Input: G:\movies\Dont.Leave.Home.2018.1080p.WEB-DL.H264.AC3-EVO.mkv
Input: G:\movies\Free.Birds.2014.1080p.BluRay-Remux-HiMMEL.mkv
Input: G:\movies\Gaagua.2017.1080p.WEB-DL.AAC2.0.x264-CMYK.mkv
Input: G:\movies\Garo.and.the.Wailing.Dragon.2012.1080p.BluRay.Remux.AVC.DTS-HD.MA.5.1-ALien.mkv
Input: G:\movies\Ghost Source Zero.2018.1080p.WEB-DL.H264.AC3-EVO.mkv
Input: G:\movies\GOGOL_STRASHNAJA_MEST_2018_WEB_DL_1080p-BLUEBIRD.mkv
Input: G:\movies\Goose Bumps The Movie 2 2014 1080p AMZN WEB-DL DDP2.0 x264-ARiN.mkv
Input: G:\movies\Het.Tweede.Gelaat.2017.1080p.BluRay.REMUX.AVC.DTS-HD.MA.5.1.mkv
Input: G:\movies\High.Resolution.2018.1080p.AMZN.WEB-DL.DDP5.1.H.264-NTG.mkv
Input: G:\movies\House.by.the.Lake.2017.1080p.KNPY.WEB-DL.AAC2.0.H264-AKME.mkv
Input: G:\movies\How.to.Train.Your.Husband.2018.1080p.AMZN.WEB-DL.DDP2.0.x264-ABM.mkv
Input: G:\movies\Howard.Lovecraft.and.the.Undersea.Kingdom.2018.1080p.WEB-DL.H264.AC3-EVO.mkv
Input: G:\movies\Independents_War_Of_The_Worlds_t00.mkv
Input: G:\movies\Jack.White.Kneeling.At.The.Anthem.D.C.2018.1080p.AMZN.WEB-DL.DDP5.1.H.264-NTG.mkv
Input: G:\movies\K.O.2017.FRENCH.1080p.WEB-DL.DD5.1.H264-PREUMS.mkv
Input: G:\movies\La.Mort.Dans.L.Ame.2017.FRENCH.180p.WEB.H264-PREUMS.mkv
Input: G:\movies\Land.of.Freedom.1970.1080p.AMZN.WEB-DL.DD+2.0.H.264-QOQ.mkv
Input: G:\movies\McDick.2017.1080p.AMZN.WEB-DL.DDP2.0.H.264-NTG.mkv
Input: G:\movies\Rabbit.School.Guardians.of.the.Golden.Egg.2018.1080p.WEB-DL.H264.AC3-EVO.mkv
Input: G:\movies\Raid.Dingue.2016.1080p.BluRay.REMUX.AVC.DTS-HD.MA-HR.mkv
Input: G:\movies\S.M.A.R.T.Chase.2017.1080p.BluRay.REMUX.AVC.DTS-HD.MA.5.1.mkv
Input: G:\movies\Saa.laenge.jeg.lever.2018.NORDiC.1080p.WEB-DL.H.264-RAPiDCOWS.mkv
Input: G:\movies\Sabina.K.2017.1080p.AMZN.WEB-DL.DDP5.1.H.264-NTb.mkv
Input: G:\movies\Sea.Monsters.2018.1080p.WEB-DL.AAC2.0.H264-FGT.mkv
Input: G:\movies\Seven.in.Heaven.2018.1080p.NF.WEB-DL.DD+5.1.x264-AJP69.mkv
Input: G:\movies\Severance.1988.1080p.Amazon.WEB-DL.DD+2.0.H.264-QOQ.mkv
Input: G:\movies\Sleep.No.More.2018.1080p.AMZN.WEB-DL.DDP5.1.H.264-NTG.mkv
Input: G:\movies\Sorry.For.Your.Loss.2018.1080p.AMZN.WEB-DL.DDP5.1.H.264-NTG.mkv
Input: G:\movies\Strange.Nature.2018.1080p.AMZN.WEB-DL.DDP5.1.H.264-NTG.mkv
Input: G:\movies\Teen.Titans.Go.To.the.Movies.1080p.WEB-DL.H264.AC3-EVO.mkv
Input: G:\movies\Terrortory.2.2018.1080p.AMZN-CBR.WEB-DL.AAC2.0.H.264-NTG.mkv
Input: G:\movies\Th'dread Rattlin'.2018.WEB-DL.RR.mkv
Input: G:\movies\The Legend of Hallowaiian.2018.1080p.WEB-DL.H264.AC3-EVO.mkv
Input: G:\movies\The.God.Plant.2018.1080p.AMZN-CBR.WEB-DL.AAC2.0.H.264-NTG.mkv
Input: G:\movies\The.Hidden.Soldier.2018.1080p.WEB-DL.H264.AC3-EVO.mkv
Input: G:\movies\The.Outer.Wild.2018.1080p.WEB-DL.DD5.1.H264-CMRG.mkv
Input: G:\movies\The.Punished.2018.1080p.WEB-DL.H264.AC3-EVO.mkv
Input: G:\movies\The.Witch.Files.2018.1080p.AMZN.WEB-DL.DDP5.1.H.264-NTG.mkv
Input: G:\movies\Valentine.DayZ.2018.1080p.AMZN.WEB-DL.DDP2.0.H264-SiGMA.mkv
Input: G:\movies\We.Are.The.Others.2017.FRENCH.1080p.WEB.H264-PREUMS.mkv
Group: [mov:3 2018] => [3.An.Eye.For.an.Eye.2018.1080p.WEB-DL.H264.AC3-EVO.mkv]
Group: [mov:teste de elenco 2011] => [420.Massacre.2018.1080p.AMZN.WEB-DL.DDP2.0.H.264-NTG.mkv, [16+] Garbage (2018) 1080p WEBHD DD 5.1 ESub - DTOne.mkv, Desiree.2015.1080p.AMZN.WEB-DL.DDP5.1.H.264-NTG.mkv, Dont.Leave.Home.2018.1080p.WEB-DL.H264.AC3-EVO.mkv, Gaagua.2017.1080p.WEB-DL.AAC2.0.x264-CMYK.mkv, Garo.and.the.Wailing.Dragon.2012.1080p.BluRay.Remux.AVC.DTS-HD.MA.5.1-ALien.mkv, Ghost Source Zero.2018.1080p.WEB-DL.H264.AC3-EVO.mkv, Goose Bumps The Movie 2 2014 1080p AMZN WEB-DL DDP2.0 x264-ARiN.mkv, Howard.Lovecraft.and.the.Undersea.Kingdom.2018.1080p.WEB-DL.H264.AC3-EVO.mkv, Jack.White.Kneeling.At.The.Anthem.D.C.2018.1080p.AMZN.WEB-DL.DDP5.1.H.264-NTG.mkv, La.Mort.Dans.L.Ame.2017.FRENCH.180p.WEB.H264-PREUMS.mkv, McDick.2017.1080p.AMZN.WEB-DL.DDP2.0.H.264-NTG.mkv, S.M.A.R.T.Chase.2017.1080p.BluRay.REMUX.AVC.DTS-HD.MA.5.1.mkv, Saa.laenge.jeg.lever.2018.NORDiC.1080p.WEB-DL.H.264-RAPiDCOWS.mkv, Sabina.K.2017.1080p.AMZN.WEB-DL.DDP5.1.H.264-NTb.mkv, Sea.Monsters.2018.1080p.WEB-DL.AAC2.0.H264-FGT.mkv, Th'dread Rattlin'.2018.WEB-DL.RR.mkv, The.God.Plant.2018.1080p.AMZN-CBR.WEB-DL.AAC2.0.H.264-NTG.mkv, The.Hidden.Soldier.2018.1080p.WEB-DL.H264.AC3-EVO.mkv, We.Are.The.Others.2017.FRENCH.1080p.WEB.H264-PREUMS.mkv]
Group: [mov:a man called jon 2015] => [A.Man.Called.Jon.2015.1080p.AMZN.WEB-DL.AAC2.0.H.264-NTb.mkv]
Logs above, you can see that huge group "[mov:teste de elenco 2011]". This happens with a random number of movies, with random groups names.
The script does not clean URL files unless they are explicitly defined via --def exts="URL".
I don't know if it makes a difference that the file extension is in upper case, but as I understand it, the script should ignore upper and lower case.
Anyway - explicitly defined it works.
Thanks a lot
Hey there,
Running into an issue with amc.groovy.
Background:
Assuming this issue is related to groovy not detecting the mount path as a directory..?
Hey
I have an issue with AMC.
I'm looking to make some enhancements, maybe resulting in a pull request.
TL;DR i'm getting the follow error while trying test/develop
filebot -script /config/filebot-scripts/amc.groovy --output=/tv -no-xattr --action copy --conflict auto -non-strict --log-file /config/logs/amc.log --log INFO --def ignore=/downloads/temp/ 'seriesFormat=/tv/{n}/{'\''Season '\''+s}/{n} - {sxe} - {t}' subtitles=en extras=y music=y artwork=y clean=y deleteAfterExtract=y ut_dir=/downloads/work/Trailer.Park.Boys.S12E01.1080p.WEB.x264-METCON ut_kind=multi ut_title=Trailer.Park.Boys.S12E01.1080p.WEB.x264-METCON ut_label=TV
No such property: license for class: Script1
groovy.lang.MissingPropertyException: No such property: license for class: Script1
at Script1.run(Script1.groovy:14)
at net.filebot.cli.ScriptShell.evaluate(Unknown Source)
at net.filebot.cli.ScriptShell.runScript(Unknown Source)
at net.filebot.cli.ArgumentProcessor.runScript(Unknown Source)
at net.filebot.cli.ArgumentProcessor.run(Unknown Source)
at net.filebot.Main.main(Unknown Source)
Platform
root@a4bb28f776f6:/# cat /etc/*-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=22.04
DISTRIB_CODENAME=jammy
DISTRIB_DESCRIPTION="Ubuntu 22.04 LTS"
PRETTY_NAME="Ubuntu 22.04 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
filebot version
root@a4bb28f776f6:/# filebot -script fn:sysinfo
FileBot 4.9.6 (r9125)
JNA Native: 6.1.2
MediaInfo: 21.09
7-Zip-JBinding: 16.02
Tools: fpcalc/1.5.0
Extended Attributes: OK
Unicode Filesystem: OK
Script Bundle: 2022-06-20 (r828)
Groovy: 3.0.9
JRE: OpenJDK Runtime Environment 17.0.2
JVM: OpenJDK 64-Bit Server VM
CPU/MEM: 20 Core / 16 GB Max Memory / 23 MB Used Memory
OS: Linux (amd64)
HW: Linux a4bb28f776f6 5.18.0-2-amd64 #1 SMP PREEMPT_DYNAMIC Debian 5.18.5-1 (2022-06-16) x86_64 x86_64 x86_64 GNU/Linux
CPU/MEM: Intel(R) Core(TM) i9-10900K CPU @ 3.70GHz [MemTotal: 67 GB | MemFree: 916 MB | MemAvailable: 11 GB]
STORAGE: overlay [/] @ 836 GB | cifs [/movies] @ 15 TB | cifs [/music] @ 14 TB | cifs [/tv] @ 14 TB | ext4 [/config] @ 836 GB | ext4 [/data] @ 836 GB | cifs [/documentaries] @ 14 TB | ext4 [/downloads] @ 1.8 TB
USER: root
DATA: /data/.filebot
Package: DEB
License: FileBot License PX9869015 (Valid-Until: 2069-10-20)
Done ヾ(@⌒ー⌒@)ノ
I'm not quite sure thats the real error?
" No such property: license for class: Script1"
When testing with
filebot -script /config/filebot-scripts/amc.groovy
as opposed to
filebot -script fn:amc
are there some "PATH"s and or other things to be defined for dev and testing?
i found this:
https://www.filebot.net/forums/viewtopic.php?t=6114
But i'm on version r9125.
In 18bcc76 this line was changed:
Lines 299 to 302 in a921ac5
Previously it exited with status 0, and now it exits with status 100.
Exiting with a non-zero status code tells my Synology that execution failed and it notifies me about it. If there are no files selected for processing, this doesn't seem like an exceptional situation? At least in my situation of running a scheduled task, it would be much more useful if it continued to exit with a zero status code unless there truly was an error. What are your thoughts?
I currently am using Sickrage (Sickbeard fork) to monitor and download torrents. It's able to start the download, but has no way to monitor completion because I have post-processing turned off and instead use filebot (because it's absolutely amazing!!)
I'd like to have Sickrage re-scan the directory where the renamed files go once filebot has finished copying the file to the renamed directory. This will update the library. To do this, Sickrage needs the tvdb ID of the show that was just downloaded and renamed by filebot. I've been trying to figure out the best way to get the tvdb ID after the download completes, but am not sure of how to do so unfortunately.
Ideally, I'd be able to pass the tvdb ID that's gathered by filebot into this API after filebot is done: http://sickbeard.com/api/#showrefresh
Such that I call this URL after filebot in my Deluge script: http://[IP where I'm hosting Sickrage]:8081/api/[API key from Sickrage]/?cmd=show.refresh&tvdbid=[tvdb ID from filebot]
This would refresh the Sickrage library for whatever show is represented by the tvdb ID.
Do you have any suggestions for how I could go about this? If it makes sense to incorporate into the amc groovy script to execute at the end (must be after file has finished copying since Sickrage tracks size of directory and that should be accurate), that would be awesome :)
Appreciate your help and the hard work you've put in to make filebot so so good @rednoah. Apologies for such a long post!
Was just trying to use fn:miss and kept running into this error every time I tried to use it. I noticed that the change to seriesInfo was a recent one in the commits and yet backing up that commit doesn't fix it either (since the previous commits before it were form 2014).
Anyway, I'm guessing it has something to do with me rather than the script, but I have run it in a folder where I know for a fact that I'm missing an episode.
This is the line that was run:
filebot -script fn:miss .
which led to the following error message.
NullPointerException: Cannot get property 'seriesInfo' on null object
java.lang.NullPointerException: Cannot get property 'seriesInfo' on null object
at Script1$_run_closure1.doCall(Script1.groovy:9)
at Script1.run(Script1.groovy:6)
at net.filebot.cli.ScriptShell.evaluate(ScriptShell.java:61)
at net.filebot.cli.ScriptShell.runScript(ScriptShell.java:82)
at net.filebot.cli.ArgumentProcessor.process(ArgumentProcessor.java:116)
at net.filebot.Main.main(Main.java:169)
Failure (°_°)
I was wondering if this was returning due to some tagging error, however, I have renamed the files on a Mac using the FileBot App so I assume the files have been tagged properly.
When I run the script without specifying a directory, it runs correctly, since nothing is being processed and returns Done ヾ(@⌒ー⌒@)ノ
.
Some of us like to curate all information including episode details. Unfortunately creating episode nfo files doesn't seem to be possible in the AMC script. That means either using FileBot first and then having to use another tool to generate the episode nfo files or just using another tool that does support doing everything including generating episode nfo files. Using two tools will probably cause people to switch away from FileBot in favor of the one tool that does everything.
The changes made to the AMC dev:script causes my automation setup to fail
Attaching log
MultipleCompilationErrorsException: startup failed:
Script1.groovy: 133: unable to resolve class FileSet
@ line 133, column 22.
def excludePathSet = new FileSet()
^
1 error
org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
Script1.groovy: 133: unable to resolve class FileSet
@ line 133, column 22.
def excludePathSet = new FileSet()
^
1 error
at net.filebot.cli.ScriptShell.evaluate(ScriptShell.java:61)
at net.filebot.cli.ScriptShell.runScript(ScriptShell.java:82)
at net.filebot.cli.ArgumentProcessor.process(ArgumentProcessor.java:112)
at net.filebot.Main.main(Main.java:169)
Failure (°_°)
Filebot supports using TMDB for series. I'm trying to tag the Millennium series, which is in this weird place between a movie and a TV show. TheTVDB refuses to keep an entry for it, so I need to use TMDB instead. But the Groovy script for tagging with TMDB is focused on movies only.
Is there a straightforward way to support using TMDB for series in the Groovy scripts?
since upgrading to win 10, latest version of filebot and Java my amc cmd fails as below worked for years before this without any issues any help will be appreciated.
Thanks
SSLException: Received fatal alert: close_notify
javax.net.ssl.SSLException: Received fatal alert: close_notify
at net.filebot.web.WebRequest.fetch(WebRequest.java:123)
at net.filebot.web.WebRequest.fetchIfModified(WebRequest.java:101)
at net.filebot.web.CachedResource.fetchData(CachedResource.java:28)
at net.filebot.web.CachedResource.fetchData(CachedResource.java:11)
at net.filebot.web.AbstractCachedResource.fetch(AbstractCachedResource.java:137)
at net.filebot.web.AbstractCachedResource.get(AbstractCachedResource.java:82)
at net.filebot.cli.ArgumentProcessor$DefaultScriptProvider.fetchScript(ArgumentProcessor.java:210)
at net.filebot.cli.ScriptShell.runScript(ScriptShell.java:82)
at net.filebot.cli.ArgumentProcessor.process(ArgumentProcessor.java:116)
at net.filebot.Main.main(Main.java:169)
Failure (°_°)
AMC should use the collection name as part of the directory
Here is one example that I use
FORMAT_MOVIE="{genres[0]}/{\"\$collection/\"}{n.ascii().replaceAll(/[!?]+\$/)} ({y})"
Please mind that if the collection is missing, it will have no effect, which is great.
is there a way to run a pre-exec script? meaning running a command before the actual files are copied ?
I tried to run the same script with "test" instead of "copy" as action but that, unfortunately, does not populate the "{n}", "{s}" etc variables...
running on filebot 4.7.2 on OSX, with TV shows.
so i have a bunch of files and came across the duplicates script,
upon running it, the only output i get is Done ヾ(@⌒ー⌒@)ノ
xattr is also installed
It seems that amc.groovy script can load custom format options only from the command line, but this makes these almost impossible to use because if you have both double quotes and single quotes in the format strings you will not be able to properly escape them.
The proper solution seems to load the formats from pref.properties instead. In fact this should be the default behavior and it could fallback to hardcoded values if pref.properties does not contain them.
Examples:
SERIES_FORMAT+"{genres[0]}/{n}/Season {s.pad(2)}/{n} - {s00e00} - {t.ascii().replaceAll(/[!?.*]+\$/).replaceAll(/[:\u005C]/, ' -').replaceAll(/[\u0060\u00B4\u2018\u2019\u02BB]/, \"'\").lowerTrail().replacePart(', Part \$
1')}{'.'+lang}"
MOVIE_FORMAT="{genres[0]}/{\"\$collection/\"}/{n.ascii().replaceAll(/[!?]+\$/)} ({y})"
Note, I think I know how to implement this myself, but I would like to implement it in a way that would make it being pulled into the master. I don't want to have my own amc.groovy script, as I want to benefit from further updates.
Hello
Thanks a lot for "artwork.tmdb" script but i don't know why it always take wrong movie info from tmdb?
this happens especially for new movies
for example:
Everlasting.2016.1080p.WEB-DL.AAC2.0.H264
Taken.Heart.2017.1080p.WEB-DL.DD5.1.H264
Another.Yeti.a.Love.Story.Life.on.the.Streets.2017.1080p.WEB-DL.AAC2.0.H264
The.Abduction.of.Jennifer.Grayson.2017.1080p.WEB-DL.AAC2.0.H264
filebot -script fn:artwork.tmdb -non-strict C:\Users\User\Desktop\new\movies
will be
Love Everlasting (2016)
Taken (2008)
Another (2014)
The Abduction of Jennifer Grayson (2017)
Only "The Abduction of Jennifer Grayson (2017)" info is correct on this list
i don't know why this script confused, this is really simple there is not some movie title on the same year
I tried to modify amc.groovy and tested the downloaded amc.groovy with my current script script by only changing -script fn:amc to -script /path/to/amc.groovy (downloaded with wget).
Version used: 31f3390
The Error message:
CmdlineException: Failed to match files to episode data
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.codehaus.groovy.reflection.CachedClass (file:/usr/share/filebot/jar/groovy.jar) to method javax.script.AbstractScriptEngine.getScriptContext(javax.script.Bindings)
WARNING: Please consider reporting this to the maintainers of org.codehaus.groovy.reflection.CachedClass
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
No signature of method: org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.sendmail() is applicable for argument types: (LinkedHashMap) values: [[subject:[FileBot] Failure, message:Failed to process group: [tvs:zzz], ...]]
Possible solutions: findAll()
groovy.lang.MissingMethodException: No signature of method: org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.sendmail() is applicable for argument types: (LinkedHashMap) values: [[subject:[FileBot] Failure, message:Failed to process group: [tvs:zzz], ...]]
Possible solutions: findAll()
at Script1.sendEmailReport(Script1.groovy:104)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at Script1.fail(Script1.groovy:111)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at Script1$_run_closure54.doCall(Script1.groovy:448)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at Script1.run(Script1.groovy:418)
at net.filebot.cli.ScriptShell.evaluate(ScriptShell.java:64)
at net.filebot.cli.ScriptShell.runScript(ScriptShell.java:74)
at net.filebot.cli.ArgumentProcessor.runScript(ArgumentProcessor.java:149)
at net.filebot.cli.ArgumentProcessor.run(ArgumentProcessor.java:36)
at net.filebot.Main.main(Main.java:128)
I only what to create a PR for the "Failed" E-Mail Report to add the path used because "Finished without processing any files" is a bit useless ;-)
FileBot 4.6.1 (r3315) / Java(TM) SE Runtime Environment 1.8.0_71 on WHS2011
When I run the following script:
C:\Program Files (x86)\SABnzbd\Post-Process_Scripts\nzbToMedia>filebot -script fn:renall "D:/Videos/JC/_NEW_/Movies" -non-strict --db TheMovieDB --output "D:/Videos/JC/Movies" --format "{n} ({y}) ({vf})/{n} ({y}) ({vf})"
I see this in the command window:
C:\Program Files (x86)\SABnzbd\Post-Process_Scripts\nzbToMedia>"Filebot - JC - Movies.bat"
C:\Program Files (x86)\SABnzbd\Post-Process_Scripts\nzbToMedia>REM @ECHO OFF
C:\Program Files (x86)\SABnzbd\Post-Process_Scripts\nzbToMedia>filebot -script fn:renall "D:/Videos/
JC/_NEW_/Movies" -non-strict --db TheMovieDB --output "D:/Videos/JC/Movies" --format "{n} ({y}) ({vf
})/{n} ({y}) ({vf})" --action test . 1>"D:/Videos/JC/_NEW_/filebot-movies.log"
I see this in the log:
Rename movies using [TheMovieDB]
Auto-detect movie from context: [C:\Program Files (x86)\SABnzbd\Post-Process_Scripts\nzbToMedia\tests\test.mp4]
[TEST] Rename [C:\Program Files (x86)\SABnzbd\Post-Process_Scripts\nzbToMedia\tests\test.mp4] to [D:\Videos\JC\Movies\Abduction (2009) (576p)\Abduction (2009) (576p).mp4]
Processed 1 files
Rename movies using [TheMovieDB]
Auto-detect movie from context: [D:\Videos\JC_NEW_\Movies\Crimson.Peak.2015.1080p.BluRay.x264.DTS-JYK-Obfuscated\Mbpew44sQytpMppGyt0FS8yKWsyqrVzDenhSBwYNd4kVXy9kvxkDx.mkv]
[TEST] Rename [D:\Videos\JC_NEW_\Movies\Crimson.Peak.2015.1080p.BluRay.x264.DTS-JYK-Obfuscated\Mbpew44sQytpMppGyt0FS8yKWsyqrVzDenhSBwYNd4kVXy9kvxkDx.mkv] to [D:\Videos\JC\Movies\Crimson Peak (2015) (1080p)\Crimson Peak (2015) (1080p).mkv]
Processed 1 files
Rename movies using [TheMovieDB]
Auto-detect movie from context: [D:\Videos\JC_NEW_\Movies\The.Last.Witch.Hunter.2015.1080p.BluRay.AC3.x264-ETRG-Obfuscated\ub1u9XcG37FJc.mkv]
[TEST] Rename [D:\Videos\JC_NEW_\Movies\The.Last.Witch.Hunter.2015.1080p.BluRay.AC3.x264-ETRG-Obfuscated\ub1u9XcG37FJc.mkv] to [D:\Videos\JC\Movies\The Last Witch Hunter (2015) (1080p)\The Last Witch Hunter (2015) (1080p).mkv]
Processed 1 files
Done ?(?????)?
The bolded section is the one I can't get to work correctly. In the script I am specifying the directory that all my new movies are in but FB seems to always want to include the dir that it's in. I wouldn't think that would be desired if I am setting that in the script itself? I have the script in that dir because SABnzbd expects it there and I have other scripts already there. Is there a way to make FB only look in the dir I specify? Thanks!
The latest version of artwork.tmdb.groovy
fails with the following error:
MissingPropertyException: No such property: keywords for class: net.filebot.web.MovieInfo
According to the source documentation, there is indeed no such property. On my instance, I zapped the three lines related to keyword gathering in the script and it works fine now. Did this property exist before and get removed?
Ignore list should be instantiated before extract function to allow the exclusion of already processed archives preventing an archive bring extracted multiple times if it still exists in input folder.
Hi,
i've had my filebot running for years now on synology nas... an update to filebot is now causing errors. the "--output" command now seems to be forced.
but this is a problem, because i have an amc script, which then shifts either to series or to movies. but if output must be included, then i can't make multiple outputs here.
my script:
LOG="/volume1/Download/amc.log"
EXC="/volume1/Download/amc.txt"
SERIEN="/volume1/Serien/{n}/{n} - {s00e00} - {t}"
FILME="/volume1/video/-------##NEU-UNGESEHEN##-------/{file.parentFile.name}/{n} ({y})"
UNSORTIERT="/volume1/Download/{file.parentFile.name}/{file.structurePathTail}"
/var/packages/filebot/target/filebot.sh -script fn:amc --lang de --log-file $LOG --action move "$1" --def "seriesFormat=$SERIEN" "movieFormat=$FILME" "unsortedFormat=$UNSORTIERT" -non-strict --def unsorted=y "artwork=n" --def clean=y
/var/packages/filebot/target/filebot.sh -script fn:cleaner "$1" --def root=y
if i now specify --output "/volume1/series", of course movies will also be pushed in there etc...
Check:
FileNotFoundException: https://raw.githubusercontent.com/filebot/scripts/master/amc.groovy
java.io.FileNotFoundException: https://raw.githubusercontent.com/filebot/scripts/master/amc.groovy
at net.sourceforge.filebot.web.WebRequest.fetch(WebRequest.java:140)
at net.sourceforge.filebot.web.WebRequest.fetchIfModified(WebRequest.java:118)
at net.sourceforge.filebot.web.CachedResource.fetchData(CachedResource.java:32)
at net.sourceforge.filebot.web.CachedResource.fetchData(CachedResource.java:11)
at net.sourceforge.filebot.web.AbstractCachedResource.fetch(AbstractCachedResource.java:133)
at net.sourceforge.filebot.web.AbstractCachedResource.get(AbstractCachedResource.java:78)
at net.sourceforge.filebot.cli.ArgumentProcessor$DefaultScriptProvider.fetchScript(ArgumentProcessor.java:236)
at net.sourceforge.filebot.cli.ScriptShell.runScript(ScriptShell.java:84)
at net.sourceforge.filebot.cli.ArgumentProcessor.process(ArgumentProcessor.java:123)
at net.sourceforge.filebot.Main.main(Main.java:192)
java.nio.file.NoSuchFileException: /mnt/drobo-nas/Movies/Indiana Jones and the Last Crusade (1989)/trailers/Indiana Jones And The Last Crusade - Official�� Trailer [HD].mp4
java.lang.RuntimeException: java.nio.file.NoSuchFileException: /mnt/drobo-nas/Movies/Indiana Jones and the Last Crusade (1989)/trailers/Indiana Jones And The Last Crusade - Official�� Trailer [HD].mp4
at net.filebot.format.ExpressionFormatMethods.getCreationDate(ExpressionFormatMethods.java:418)
at Script1$_run_closure17.doCall(Script1.groovy:27)
at Script1$_run_closure18.doCall(Script1.groovy:72)
at net.filebot.cli.ScriptShellMethods.getFiles(ScriptShellMethods.java:140)
at Script1.run(Script1.groovy:72)
at net.filebot.cli.ScriptShell.evaluate(ScriptShell.java:62)
at net.filebot.cli.ScriptShell.runScript(ScriptShell.java:72)
at net.filebot.cli.ArgumentProcessor.runScript(ArgumentProcessor.java:113)
at net.filebot.cli.ArgumentProcessor.run(ArgumentProcessor.java:28)
at net.filebot.Main.main(Main.java:124)
Caused by: java.nio.file.NoSuchFileException: /mnt/drobo-nas/Movies/Indiana Jones and the Last Crusade (1989)/trailers/Indiana Jones And The Last Crusade - Official�� Trailer [HD].mp4
at net.filebot.format.ExpressionFormatMethods.getCreationDate(ExpressionFormatMethods.java:411)
... 9 more
Failure (°_°)
My kodi instance is running on port 80, not 8080 so the notifications fail. Can you add a kodi-port option or something?
Thanks for the great program!
I think it would be better if the script sent the updated show name to my push bullet account instead of the pre updated show name.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.