Script is saving files in more than one location - utorrent

Support for Windows users
Post Reply
musigny
Posts: 23
Joined: 17 Sep 2015, 17:09

Script is saving files in more than one location - utorrent

Post by musigny »

Using the following script and everthing is being sorted properly once downloaded (e.g., movies in "movies" tv shows in "tv shows" etc.)

the root media directory is called "videos"

any time i download a new anything using utorrent, after it downloads, the script starts properly and organizes everything (formats, etc.) but ALSO leaves the original download in the root videos folder (so you have two of everything). if you go back into utorrent and click on the seeding file and remove and delete torrent and data, it does indeed remove the file(s) from the root video folder but leaves them alone in the filebot created subfolder (e.g., tv shows)

is there a way to prevent this doubling up? auto delete? or just prevent filebot from doing something? not sure what the proper workaround is.

here's the script:

filebot -script fn:amc --output "C:\Users\ybars_000\Videos" --log-file C:\Users\ybars_000\Desktop\log.txt --action hardlink --conflict override -non-strict --def music=y subtitles=en artwork=y "ut_label=%L" "ut_state=%S" "ut_title=%N" "ut_kind=%K" "ut_file=%F" "ut_dir=%D"


and here's a recent log:

Run script [fn:amc] at [Thu Sep 17 13:06:48 EDT 2015]
Parameter: music = y
Parameter: subtitles = en
Parameter: artwork = y
Parameter: ut_label =
Parameter: ut_state = 5
Parameter: ut_title = Youre.the.Worst.S02E02.HDTV.x264-LOL[ettv]
Parameter: ut_kind = multi
Parameter: ut_file = Sample\youre.the.worst.202.hdtv-lol.sample.mp4
Parameter: ut_dir = C:\Users\ybars_000\Videos\Youre.the.Worst.S02E02.HDTV.x264-LOL[ettv]
Input: C:\Users\ybars_000\Videos\Youre.the.Worst.S02E02.HDTV.x264-LOL[ettv]\youre.the.worst.202.hdtv-lol.mp4
Exclude: C:\Users\ybars_000\Videos\Youre.the.Worst.S02E02.HDTV.x264-LOL[ettv]\Sample\youre.the.worst.202.hdtv-lol.sample.mp4
Exclude: C:\Users\ybars_000\Videos\Youre.the.Worst.S02E02.HDTV.x264-LOL[ettv]\Torrent-Downloaded-From-extratorrent.cc.txt
Exclude: C:\Users\ybars_000\Videos\Youre.the.Worst.S02E02.HDTV.x264-LOL[ettv]\youre.the.worst.202.hdtv-lol.nfo
Group: [tvs:youre the worst] => [youre.the.worst.202.hdtv-lol.mp4]
Get [English] subtitles for 1 files
Sep 17, 2015 1:06:53 PM java.util.prefs.WindowsPreferences <init>
WARNING: Could not open/create prefs root node Software\JavaSoft\Prefs at root 0x80000002. Windows RegCreateKeyEx(...) returned error code 5.
CmdlineException: OpenSubtitles: Please enter your login details by calling `filebot -script fn:configure`
Rename episodes using [TheTVDB]
Auto-detected query: [Youre the Worst]
Fetching episode data for [You're the Worst]
[HARDLINK] Rename [C:\Users\ybars_000\Videos\Youre.the.Worst.S02E02.HDTV.x264-LOL[ettv]\youre.the.worst.202.hdtv-lol.mp4] to [C:\Users\ybars_000\Videos\TV Shows\You're the Worst\Season 02\You're the Worst - S02E02 - Crevasses.mp4]
Processed 1 files
Sep 17, 2015 1:06:57 PM net.filebot.media.MediaDetection storeMetaInfo
WARNING: Failed to set xattr: java.lang.RuntimeException: java.nio.file.AccessDeniedException: C:\Users\ybars_000\Videos\TV Shows\You're the Worst\Season 02\You're the Worst - S02E02 - Crevasses.mp4:net.filebot.metadata
Fetching series artwork for [You're the Worst] to [C:\Users\ybars_000\Videos\TV Shows\You're the Worst\Season 02]
Fetching C:\Users\ybars_000\Videos\TV Shows\You're the Worst\poster.jpg => {id=1021679, BannerMirror=http://thetvdb.com/banners/, BannerPath=posters/281776-1.jpg, BannerType=poster, BannerType2=680x1000, Language=en, Rating=9.8750, RatingCount=8}
Fetching C:\Users\ybars_000\Videos\TV Shows\You're the Worst\banner.jpg => {id=1023856, BannerMirror=http://thetvdb.com/banners/, BannerPath=graphical/281776-g2.jpg, BannerType=series, BannerType2=graphical, Language=en, Rating=10.0000, RatingCount=4}
Fetching C:\Users\ybars_000\Videos\TV Shows\You're the Worst\fanart.jpg => {id=1093438, BannerMirror=http://thetvdb.com/banners/, BannerPath=fanart/original/281776-12.jpg, BannerType=fanart, BannerType2=1920x1080, Language=en, Rating=10.0000, RatingCount=1, SeriesName=false, ThumbnailPath=_cache/fanart/original/281776-12.jpg, VignettePath=fanart/vignette/281776-12.jpg}
Fetching C:\Users\ybars_000\Videos\TV Shows\You're the Worst\Season 02\poster.jpg => {id=1094444, BannerMirror=http://thetvdb.com/banners/, BannerPath=seasons/281776-2-2.jpg, BannerType=season, BannerType2=season, Season=2, Language=en, RatingCount=0}
Fetching C:\Users\ybars_000\Videos\TV Shows\You're the Worst\Season 02\banner.jpg => {id=1094445, BannerMirror=http://thetvdb.com/banners/, BannerPath=seasonswide/281776-2.jpg, BannerType=season, BannerType2=seasonwide, Season=2, Language=en, RatingCount=0}
Fanart not found: C:\Users\ybars_000\Videos\TV Shows\You're the Worst\clearart.png / clearart
Fanart not found: C:\Users\ybars_000\Videos\TV Shows\You're the Worst\logo.png / clearlogo
Fetching C:\Users\ybars_000\Videos\TV Shows\You're the Worst\landscape.jpg => {type=tvthumb, id=48717, url=http://assets.fanart.tv/fanart/tv/28177 ... c65559.jpg, lang=en, likes=0}
Fanart not found: C:\Users\ybars_000\Videos\TV Shows\You're the Worst\Season 02\landscape.jpg / seasonthumb
Done ヾ(@⌒ー⌒@)ノ
User avatar
rednoah
The Source
Posts: 22998
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Script is saving files in more than one location - utorr

Post by rednoah »

1.
Since you're using HARDLINK you're only duplicating the file entry, not the file content, a perfect solution in most cases. Since files are locked by utorrent only copy/hardlink/symlink will work reliable since those actions don't touch the original file entry.

2.
Once files are organised into a new structure (either COPY or HARDLINK) deleting the original file entry (via utorrent or otherwise) will not affect the organised entry. That's how it should be.
:idea: Please read the FAQ and How to Request Help.
musigny
Posts: 23
Joined: 17 Sep 2015, 17:09

Re: Script is saving files in more than one location - utorr

Post by musigny »

thanks - so that i'm totally clear; are there two copies of the files on my HD? and if not, why does deleting the utorrent one not affect the other?

ideally, i'd like to have a system that auto deletes the non filebot-organized content.
User avatar
rednoah
The Source
Posts: 22998
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Script is saving files in more than one location - utorr

Post by rednoah »

1.
No. The data will only exist once on the physical HD regardless of how many hardlinks you create. The the OS will free the physical space once all hardlinks have been removed.

@see https://en.wikipedia.org/wiki/Hard_link#Example


2.
There is --def clean=y but if said "non filebot-organized content" is locked by utorrent then the OS won't allow filebot to delete any of it.
:idea: Please read the FAQ and How to Request Help.
musigny
Posts: 23
Joined: 17 Sep 2015, 17:09

Re: Script is saving files in more than one location - utorr

Post by musigny »

got it! thanks so much. this shit is bananas.

i'll just leave it and clean it up once in a while.
umetnic
Posts: 1
Joined: 22 Sep 2015, 13:04

Re: Script is saving files in more than one location - utorr

Post by umetnic »

Or OYu could even use some other program for this, that is usually used for syncing or backing...and just set rules in a way, that after torrent is deleted, plex file (link) is deleted to. :)
Post Reply