--def clean=y Automatically empty folders and clutter files that may be left behind after moving the video files or temporary extracted files after copying
2. Yes, it's very easy for anyone who knows a bit of programming
--def clean=y Automatically empty folders and clutter files that may be left behind after moving the video files or temporary extracted files after copying
Code: Select all
#!/bin/bash
# transmission_filebot.sh
/usr/bin/filebot -script "/home/paully/Bin/amc_paully.groovy" --output "/home/paully/Videos" --log-file "/home/paully/.filebot/logs/amc_paully.log" --action copy --conflict override -non-strict --def "ut_dir=$TR_TORRENT_DIR/$TR_TORRENT_NAME" "ut_kind=multi" "ut_title=$TR_TORRENT_NAME"
Code: Select all
/etc/transmission-daemon/settings.json
"script-torrent-done-enabled": true,
"script-torrent-done-filename": "/home/paully/Bin/transmission_filebot.sh",
Code: Select all
-rwxrwxr-x 1 paully paully 344 Mar 12 14:10 /home/paully/Bin/transmission_filebot.sh*
Code: Select all
$ TR_TORRENT_DIR="/home/paully/Downloads/transmission/tv" TR_TORRENT_NAME="Marvels.Agents.of.S.H.I.E.L.D.S01E15.720p.HDTV.x264-REMARKABLE" ~/Bin/transmission_filebot.sh
Code: Select all
Parameter: ut_dir = /home/paully/Downloads/transmission/tv/Marvels.Agents.of.S.H.I.E.L.D.S01E15.720p.HDTV.x264-REMARKABLE
Parameter: ut_kind = multi
Parameter: ut_title = Marvels.Agents.of.S.H.I.E.L.D.S01E15.720p.HDTV.x264-REMARKABLE
Read archive [marvels.agents.of.s.h.i.e.l.d.s01e15.720p.hdtv.x264-remarkable.rar] and extract to [/home/paully/Downloads/transmission/tv/Marvels.Agents.of.S.H.I.E.L.D.S01E15.720p.HDTV.x264-REMARKABLE/marvels.agents.of.s.h.i.e.l.d.s01e15.720p.hdtv.x264-remarkable/Marvels.Agents.of.S.H.I.E.L.D.S01E15.720p.HDTV.x264-REMARKABLE]
Extracting files [/home/paully/Downloads/transmission/tv/Marvels.Agents.of.S.H.I.E.L.D.S01E15.720p.HDTV.x264-REMARKABLE/marvels.agents.of.s.h.i.e.l.d.s01e15.720p.hdtv.x264-remarkable/Marvels.Agents.of.S.H.I.E.L.D.S01E15.720p.HDTV.x264-REMARKABLE/Marvels.Agents.of.S.H.I.E.L.D.S01E15.720p.HDTV.x264-REMARKABLE.mkv]
Input: /home/paully/Downloads/transmission/tv/Marvels.Agents.of.S.H.I.E.L.D.S01E15.720p.HDTV.x264-REMARKABLE/marvels.agents.of.s.h.i.e.l.d.s01e15.720p.hdtv.x264-remarkable/Marvels.Agents.of.S.H.I.E.L.D.S01E15.720p.HDTV.x264-REMARKABLE/Marvels.Agents.of.S.H.I.E.L.D.S01E15.720p.HDTV.x264-REMARKABLE.mkv
Group: [tvs:Marvels Agents of S H I E L D] => [Marvels.Agents.of.S.H.I.E.L.D.S01E15.720p.HDTV.x264-REMARKABLE.mkv]
Rename episodes using [TheTVDB]
Auto-detected query: [Marvels Agents of S H I E L D]
Fetching episode data for [Marvel's Agents of S.H.I.E.L.D.]
[COPY] Rename [/home/paully/Downloads/transmission/tv/Marvels.Agents.of.S.H.I.E.L.D.S01E15.720p.HDTV.x264-REMARKABLE/marvels.agents.of.s.h.i.e.l.d.s01e15.720p.hdtv.x264-remarkable/Marvels.Agents.of.S.H.I.E.L.D.S01E15.720p.HDTV.x264-REMARKABLE/Marvels.Agents.of.S.H.I.E.L.D.S01E15.720p.HDTV.x264-REMARKABLE.mkv] to [/home/paully/Videos/TV/Marvel's_Agents_of_S_H_I_E_L_D/Marvel's_Agents_of_S_H_I_E_L_D_S01E15.mkv]
Processed 1 files
Done ヾ(@⌒ー⌒@)ノ
Code: Select all
#!/bin/bash
# torrent_done.sh
{
LOG_FILE=/tmp/torrent_done.log
echo "${TR_TORRENT_ID}/${TR_TORRENT_DIR}/${TR_TORRENT_NAME}" >>$LOG_FILE
} &
Code: Select all
/etc/transmission-daemon/settings.json
"script-torrent-done-enabled": true,
"script-torrent-done-filename": "/home/paully/Bin/torrent_done.sh",
Code: Select all
/tmp/torrent_done.log
1//home/paully/Downloads/transmission/tv/The.Big.Bang.Theory.S07E18.720p.HDTV.X264-DIMENSION
2//home/paully/Downloads/transmission/tv/The.Crazy.Ones.S01E18.720p.HDTV.x264-KILLERS
Code: Select all
/home/paully/.filebot/logs/amc_paully.log (Permission denied)
Code: Select all
chgrp -R debian-transmission ~/.filebot
chmod -R g+w ~/.filebot
Code: Select all
$ sudo /etc/init.d/transmission-daemon stop
$ sudo nano /etc/init.d/transmission-daemon
USER=paully
$ sudo chown paully /etc/transmission-daemon/*
$ sudo chown -R paully /var/lib/transmission-daemon/
$ sudo /etc/init.d/transmission-daemon start
Code: Select all
#!/bin/bash
/Applications/Filebot.app/Contents/MacOS/filebot -script fn:amc --output "/Users/ErsinB/Downloads" --log-file amc.log --action copy --conflict override -non-strict --def artwork=n subtitles=en,nl --def [email protected] "ut_dir=$TR_TORRENT_DIR/$TR_TORRENT_NAME" "ut_kind=multi" "ut_title=$TR_TORRENT_NAME"
So I looked in the /Applications/Filebot.app/Contents/MacOS/filebot folder, and only saw filebot.sh. So i changed the script into this:Last login: Mon Jun 16 19:04:42 on ttys000
imac-van-ersinb:~ ErsinB$ /Users/ErsinB/Desktop/transmission-postprocess ; exit;
/Users/ErsinB/Desktop/transmission-postprocess: line 2: /Applications/Filebot.app/Contents/MacOS/filebot: No such file or directory
logout
[Proces voltooid]
Code: Select all
#!/bin/bash
/Applications/Filebot.app/Contents/MacOS/filebot.sh -script fn:amc --output "/Users/ErsinB/Downloads" --log-file amc.log --action copy --conflict override -non-strict --def artwork=n subtitles=en,nl --def [email protected] "ut_dir=$TR_TORRENT_DIR/$TR_TORRENT_NAME" "ut_kind=multi" "ut_title=$TR_TORRENT_NAME"
I already installed Oracle Java SE Runtime Environment 8, that didn't solve anything. I tried to delete/reinstall the latest FileBot, but that didn't fix it neither. So I'm out of ideas.Last login: Mon Jun 16 19:43:13 on ttys000
/Users/ErsinB/Desktop/transmission-postprocess ; exit;
imac-van-ersinb:~ ErsinB$ /Users/ErsinB/Desktop/transmission-postprocess ; exit;
Exception in thread "main" java.lang.UnsupportedClassVersionError: net/filebot/Main : Unsupported major.minor version 51.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:637)
at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
logout
[Proces voltooid]
Code: Select all
Exception in thread "main" java.lang.UnsupportedClassVersionError: net/filebot/Main : Unsupported major.minor version 51.0
But when I execute the transmission-postprocess, it gives me this now:Last login: Mon Jun 16 20:41:06 on ttys000
imac-van-ersinb:~ ErsinB$ java -version
java version "1.8.0_05"
Java(TM) SE Runtime Environment (build 1.8.0_05-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.5-b02, mixed mode)
imac-van-ersinb:~ ErsinB$
So what's wrong nowLast login: Mon Jun 16 20:44:30 on ttys000
imac-van-ersinb:~ ErsinB$ /Users/ErsinB/Desktop/transmission-postprocess ; exit;
Locking /Users/ErsinB/.filebot/logs/amc.log
Parameter: artwork = n
Parameter: subtitles = en,nl
Parameter: mailto = *****
Parameter: ut_dir = /
Parameter: ut_kind = multi
Parameter: ut_title = null
NullPointerException: java.lang.NullPointerException
java.lang.NullPointerException
at net.filebot.media.ReleaseInfo$FolderEntryFilter.accept(ReleaseInfo.java:421)
at net.filebot.media.MediaDetection.isDiskFolder(MediaDetection.java:92)
at net.filebot.cli.ScriptShellMethods.isDisk(ScriptShellMethods.java:89)
at Script1.resolveInput(Script1.groovy:141)
at Script1$_resolveInput_closure80.doCall(Script1.groovy:142)
at Script1.resolveInput(Script1.groovy:142)
at Script1$_run_closure46.doCall(Script1.groovy:165)
at Script1.run(Script1.groovy:165)
at net.filebot.cli.ScriptShell.evaluate(ScriptShell.java:60)
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)
Failure (°_°)
logout
[Proces voltooid]
Code: Select all
$ java -version
java version "1.8.0_11"
Java(TM) SE Runtime Environment (build 1.8.0_11-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.11-b03, mixed mode)
Code: Select all
#!/bin/bash
filebot -script fn:amc --output "/Volumes/Media" --log-file amc.log --action copy -non-strict "ut_dir=$TR_TORRENT_DIR/$TR_TORRENT_NAME" "ut_kind=multi" "ut_title=$TR_TORRENT_NAME"
Code: Select all
#!/bin/bash
filebot -script fn:amc --output "/Volumes/Media" --log-file amc.log --action copy -non-strict "/Users/Myself/Downloads"