[Linux] Move files without stripping Windows "illegal" chars
Posted: 23 Mar 2015, 00:08
First, this program is FREAKING amazing, and even more so with what the scripting can do..
Haven't ran any linux flavor in years (never used scripts), just installed Ubuntu yesterday and paid for and installed Filebot through Ubuntu Software Center to replace TVrenamer I used on Windows 7.
still knocking the rust off my term skills, just let me know if you need me to run anything or if I left anything out...
Groovy Pad sysinfo
transmission-postprocess.sh
I was trying the above filebot command in term, and it repeated failed because the "ut_dir=$TR_TORRENT_DIR/$TR_TORRENT_NAME" "ut_kind=multi" "ut_title=$TR_TORRENT_NAME" variables weren't being provided by Transmission since it wasn't running the script. (should be a note somewhere that I didn't find about that one, took hours of this and the transmission forum to figure that one out).
amc.log from running in term
I know ya'll have seen that tons of times, just from digging through these forums.
I was unable to get Transmission to run the script it seemed until I did what plittlefield did here http://www.filebot.net/forums/viewtopic ... t=50#p8524 with the following commands changing ownership and user.. code with changes for my username.
Ubuntu doesn't install the daemon by default so I had to install the daemon prior to Paullys changes.
amc.log with Transmission running script using --action test realized I had the wrong path for my circumstances
amc.log from Transmission running script without --action test fixed path
I am guessing that it may have something to do the with path, or path ownership.. or something along those lines..
The path I got directly from filebot, which allowed to use a Nautilus bookmark that turns into this long complex path when it shows in filebot.
My Episode Format
I used to use the ZeroDay for my Completed download dump folder since it is part of my DLNA server.. Then I would rename once I had watched whatever.. I would like to continue to use it as such.
I know as the script runs now it will created more folders than I want..
Right now I just want help getting the script to work.. I have downloaded the same episode like 5 times now testing it..
On a side note, is there something for Linux that can keep track airdates of the shows I want, and auto add a torrent to transmission once it is available letting Filebot take over from there?
Haven't ran any linux flavor in years (never used scripts), just installed Ubuntu yesterday and paid for and installed Filebot through Ubuntu Software Center to replace TVrenamer I used on Windows 7.
still knocking the rust off my term skills, just let me know if you need me to run anything or if I left anything out...
Groovy Pad sysinfo
Code: Select all
FileBot 4.5.6 (r2820)
JNA Native: 4.0.0
MediaInfo: MediaInfoLib - v0.7.69
7-Zip-JBinding: OK
chromaprint-tools: fpcalc version 1.1.0 (/opt/filebot/fpcalc)
Extended Attributes: OK
GVFS: OK
Groovy Engine: 2.3.9
JRE: Java(TM) SE Runtime Environment 1.8.0_31
JVM: 64-bit Java HotSpot(TM) 64-Bit Server VM
CPU/MEM: 2 Core / 1 GB Max Memory / 59 MB Used Memory
OS: Linux (amd64)
uname: Linux Beast 3.16.0-31-generic #43-Ubuntu SMP Tue Mar 10 17:37:36 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
Code: Select all
#!/bin/bash
filebot -script fn:amc --output "/run/user/1000/gvfs/smb-share:server=nastysid,share=share/Media/ZeroDay/" --log-file amc.log --action move --conflict override -non-strict --def music=n artwork=y "ut_dir=$TR_TORRENT_DIR/$TR_TORRENT_NAME" "ut_kind=multi" "ut_title=$TR_TORRENT_NAME"
amc.log from running in term
Code: Select all
Parameter: music = n
Parameter: artwork = y
Parameter: ut_dir = /
Parameter: ut_kind = multi
Parameter: ut_title =
Invalid arguments: pass in either file arguments or ut_dir/ut_file parameters but not both
Failure (°_°)
I was unable to get Transmission to run the script it seemed until I did what plittlefield did here http://www.filebot.net/forums/viewtopic ... t=50#p8524 with the following commands changing ownership and user.. code with changes for my username.
Code: Select all
$ sudo /etc/init.d/transmission-daemon stop
$ sudo nano /etc/init.d/transmission-daemon
USER=james
$ sudo chown james /etc/transmission-daemon/*
$ sudo chown -R james /var/lib/transmission-daemon/
$ sudo /etc/init.d/transmission-daemon start
Code: Select all
sudo apt install transmission-daemon
amc.log with Transmission running script using --action test realized I had the wrong path for my circumstances
Code: Select all
Parameter: music = n
Parameter: artwork = y
Parameter: ut_dir = /home/james/Downloads/NCIS.S12E17.HDTV.x264-LOL.mp4
Parameter: ut_kind = multi
Parameter: ut_title = NCIS.S12E17.HDTV.x264-LOL.mp4
Input: /home/james/Downloads/NCIS.S12E17.HDTV.x264-LOL.mp4
Group: [tvs:ncis] => [NCIS.S12E17.HDTV.x264-LOL.mp4]
Rename episodes using [TheTVDB]
Auto-detected query: [NCIS]
Fetching episode data for [NCIS]
Fetching episode data for [NCIS: Los Angeles]
Fetching episode data for [NCIS: New Orleans]
Stripping invalid characters from new path: TV Shows/NCIS/Season 12/NCIS - S12E17 - The Artful Dodger
[TEST] Rename [/home/james/Downloads/NCIS.S12E17.HDTV.x264-LOL.mp4] to [b][/run/user/1000/gvfs/smb-shareserver=nastysid,share=share/Media/TV/TV Shows/NCIS/Season 12/NCIS - S12E17 - The Artful Dodger.mp4]
[/b]Processed 1 files
Done ヾ(@⌒ー⌒@)ノ
Code: Select all
Parameter: music = n
Parameter: artwork = y
Parameter: ut_dir = /home/james/Downloads/NCIS.S12E17.HDTV.x264-LOL.mp4
Parameter: ut_kind = multi
Parameter: ut_title = NCIS.S12E17.HDTV.x264-LOL.mp4
Input: /home/james/Downloads/NCIS.S12E17.HDTV.x264-LOL.mp4
Group: [tvs:ncis] => [NCIS.S12E17.HDTV.x264-LOL.mp4]
Rename episodes using [TheTVDB]
Auto-detected query: [NCIS]
Fetching episode data for [NCIS]
Fetching episode data for [NCIS: Los Angeles]
Fetching episode data for [NCIS: New Orleans]
Stripping invalid characters from new path: TV Shows/NCIS/Season 12/NCIS - S12E17 - The Artful Dodger
[MOVE] Rename [/home/james/Downloads/NCIS.S12E17.HDTV.x264-LOL.mp4] to [b][/run/user/1000/gvfs/smb-shareserver=nastysid,share=share/Media/ZeroDay/TV Shows/NCIS/Season 12/NCIS - S12E17 - The Artful Dodger.mp4][/b]
[MOVE] Failed to rename [/home/james/Downloads/NCIS.S12E17.HDTV.x264-LOL.mp4]
IOException: Failed to create folder: /run/user/1000/gvfs/smb-shareserver=nastysid,share=share/Media/ZeroDay/TV Shows/NCIS/Season 12
Finished without processing any files
Failure (°_°)
The path I got directly from filebot, which allowed to use a Nautilus bookmark that turns into this long complex path when it shows in filebot.
My Episode Format
Code: Select all
/run/user/1000/gvfs/smb-share:server=nastysid,share=share/Media/TV/{n}/{'Season '+s}/{n} {s00e00} - {t}
I know as the script runs now it will created more folders than I want..
- share/Media/ZeroDay/TV Shows/NCIS/Season 12/NCIS - S12E17 - The Artful Dodger.mp4
Right now I just want help getting the script to work.. I have downloaded the same episode like 5 times now testing it..
On a side note, is there something for Linux that can keep track airdates of the shows I want, and auto add a torrent to transmission once it is available letting Filebot take over from there?