qBittorrent and AMC in Windows

Running FileBot from the console, Groovy / FileBot scripting, shell scripts, etc
Post Reply
TheChunkyMonkey
Posts: 4
Joined: 27 Mar 2015, 06:16

qBittorrent and AMC in Windows

Post by TheChunkyMonkey »

Hello,

Trying to get this figured out... I'm currently using the parameters:
filebot -script fn:amc --output "D:/Downloads/" --log-file amc.log --action keeplink --conflict auto -non-strict --def subtitles=en artwork=y exludeList=amc.txt plex=%token% "%f"
Here is my log:
Get [English] subtitles for 1 files
Looking up subtitles by hash via OpenSubtitles
Matched [Castle.2009.S07E18.720p.HDTV.X264-DIMENSION.mkv] to [Castle.2009.S07E18.HDTV.x264-LOL] via hash
Fetching [Castle.2009.S07E18.HDTV.x264-LOL.srt]
Export [Castle.2009.S07E18.HDTV.x264-LOL.srt] as: SubRip / UTF-8
Writing [Castle.2009.S07E18.HDTV.x264-LOL.srt] to [Castle.2009.S07E18.720p.HDTV.X264-DIMENSION.eng.srt]
Rename episodes using [TheTVDB]
Auto-detected query: [Castle 2009]
Fetching episode data for [Castle (2009)]
Auto-detected query: [Castle 2009]
Fetching episode data for [Castle (2009)]
[KEEPLINK] Rename [D:\Download\Bittorrent\Castle.2009.S07E18.720p.HDTV.X264-DIMENSION.eng.srt] to [D:\Downloads\TV Shows\Castle (2009)\Season 07\Castle (2009) - S07E18 - At Close Range.eng.srt]
[KEEPLINK] Failed to rename [D:\Download\Bittorrent\Castle.2009.S07E18.720p.HDTV.X264-DIMENSION.eng.srt]
FileSystemException: D:\Download\Bittorrent\Castle.2009.S07E18.720p.HDTV.X264-DIMENSION.eng.srt: A required privilege is not held by the client.

Get [English] subtitles for 1 files
Looking up subtitles by hash via OpenSubtitles
Matched [Dallas.Buyers.Club.2013.720p.BluRay.x264.YIFY.mp4] to [Dallas.Buyers.Club.2013.720p.BluRay.x264.YIFY.en] via hash
Fetching [Dallas.Buyers.Club.2013.720p.BluRay.x264.YIFY.en.srt]
Export [Dallas.Buyers.Club.2013.720p.BluRay.x264.YIFY.en.srt] as: SubRip / UTF-8
Writing [Dallas.Buyers.Club.2013.720p.BluRay.x264.YIFY.en.srt] to [Dallas.Buyers.Club.2013.720p.BluRay.x264.YIFY.eng.srt]
Rename movies using [TheMovieDB]
Auto-detect movie from context: [D:\Download\Bittorrent\Dallas.Buyers.Club.2013.720p.BluRay.x264.YIFY.mp4]
[KEEPLINK] Rename [D:\Download\Bittorrent\Dallas.Buyers.Club.2013.720p.BluRay.x264.YIFY.mp4] to [D:\Downloads\Movies\Dallas Buyers Club (2013)\Dallas Buyers Club (2013).mp4]
[KEEPLINK] Failed to rename [D:\Download\Bittorrent\Dallas.Buyers.Club.2013.720p.BluRay.x264.YIFY.mp4]
FileSystemException: D:\Download\Bittorrent\Dallas.Buyers.Club.2013.720p.BluRay.x264.YIFY.mp4: A required privilege is not held by the client.

Get [English] subtitles for 1 files
Looking up subtitles by hash via OpenSubtitles
Matched [Marvels.Agents.of.S.H.I.E.L.D.S02E14.720p.HDTV.x264-IMMERSE.mkv] to [Marvels.Agents.of.S.H.I.E.L.D.S02E14.HDTV.x264-ASAP] via hash
Fetching [Marvels.Agents.of.S.H.I.E.L.D.S02E14.HDTV.x264-ASAP.srt]
Export [Marvels.Agents.of.S.H.I.E.L.D.S02E14.HDTV.x264-ASAP.srt] as: SubRip / UTF-8
Writing [Marvels.Agents.of.S.H.I.E.L.D.S02E14.HDTV.x264-ASAP.srt] to [Marvels.Agents.of.S.H.I.E.L.D.S02E14.720p.HDTV.x264-IMMERSE.eng.srt]
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.]
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.]
Stripping invalid characters from new path: TV Shows/Marvel's Agents of S.H.I.E.L.D./Season 02/Marvel's Agents of S.H.I.E.L.D. - S02E14 - Love in the Time of Hydra
Stripping invalid characters from new path: TV Shows/Marvel's Agents of S.H.I.E.L.D./Season 02/Marvel's Agents of S.H.I.E.L.D. - S02E14 - Love in the Time of Hydra.eng
[KEEPLINK] Rename [D:\Download\Bittorrent\Marvels.Agents.of.S.H.I.E.L.D.S02E14.720p.HDTV.x264-IMMERSE.mkv] to [D:\Downloads\TV Shows\Marvel's Agents of S.H.I.E.L.D\Season 02\Marvel's Agents of S.H.I.E.L.D. - S02E14 - Love in the Time of Hydra.mkv]
[KEEPLINK] Failed to rename [D:\Download\Bittorrent\Marvels.Agents.of.S.H.I.E.L.D.S02E14.720p.HDTV.x264-IMMERSE.mkv]
FileSystemException: D:\Download\Bittorrent\Marvels.Agents.of.S.H.I.E.L.D.S02E14.720p.HDTV.x264-IMMERSE.mkv: A required privilege is not held by the client.

Get [English] subtitles for 1 files
Looking up subtitles by hash via OpenSubtitles
No matching subtitles found: D:\Download\Bittorrent\The.Blacklist.S02E17.720p.HDTV.X264-DIMENSION[rarbg]\The.Blacklist.S02E17.720p.HDTV.X264-DIMENSION.mkv
Rename episodes using [TheTVDB]
Auto-detected query: [The Blacklist]
Fetching episode data for [The Blacklist]
[KEEPLINK] Rename [D:\Download\Bittorrent\The.Blacklist.S02E17.720p.HDTV.X264-DIMENSION[rarbg]\The.Blacklist.S02E17.720p.HDTV.X264-DIMENSION.mkv] to [D:\Downloads\TV Shows\The Blacklist\Season 02\The Blacklist - S02E17 - The Longevity Initiative.mkv]
[KEEPLINK] Failed to rename [D:\Download\Bittorrent\The.Blacklist.S02E17.720p.HDTV.X264-DIMENSION[rarbg]\The.Blacklist.S02E17.720p.HDTV.X264-DIMENSION.mkv]
FileSystemException: D:\Download\Bittorrent\The.Blacklist.S02E17.720p.HDTV.X264-DIMENSION[rarbg]\The.Blacklist.S02E17.720p.HDTV.X264-DIMENSION.mkv -> D:\Downloads\TV Shows\The Blacklist\Season 02\The Blacklist - S02E17 - The Longevity Initiative.mkv: The process cannot access the file because it is being used by another process.

Finished without processing any files
Failure (°_°)
I would really like to have symbolic links working (drive is formatted in NTFS) so that the files can continue seeding after they have been renamed for Plex. Not sure if that is possible.

A few things are happening.

1) Filebot is creating a second D:\Downloads folder despite there already being one present. Files are being dropped into there.
2) The Blacklist was not moved.
3) Symbolic Links were not created (obviously)

I would also like to manually designate a separate Music folder in D:\Music.

If need be, I can move my Movies and TV Shows folder to D:\ flat.

What am I doing wrong?
User avatar
rednoah
The Source
Posts: 19150
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: qBittorrent and AMC in Windows

Post by rednoah »

Code: Select all

A required privilege is not held by the client.
Only Administrators users are allowed to create symlinks on Windows. Most likely this will apply to HARDLINK as well.

Code: Select all

The process cannot access the file because it is being used by another process.
KEEPLINK means that the (1) the file is first moved and (2) then a symlink is created in the original location. This can't work if you torrent client is still accessing the file.

I recommend using DUPLICATE which will try creating HARDLINKs first and fall back to COPY. If the script is ran as Administrator then SYMLINK / HARDLINK should work.
:idea: Please read the FAQ and How to Request Help.
TheChunkyMonkey
Posts: 4
Joined: 27 Mar 2015, 06:16

Re: qBittorrent and AMC in Windows

Post by TheChunkyMonkey »

Thanks, that's helpful. Here's the log output from a test run.

Code: Select all

Parameter: subtitles = en
Parameter: artwork = y
Parameter: exludeList = amc.txt
Parameter: plex = qtGaRJeM1CsahTysM6E5
Argument: D:\Download\Bittorrent\The.Blacklist.S02E17.720p.HDTV.X264-DIMENSION[rarbg]\The.Blacklist.S02E17.720p.HDTV.X264-DIMENSION.mkv
Input: D:\Download\Bittorrent\The.Blacklist.S02E17.720p.HDTV.X264-DIMENSION[rarbg]\The.Blacklist.S02E17.720p.HDTV.X264-DIMENSION.mkv
Group: [tvs:the blacklist] => [The.Blacklist.S02E17.720p.HDTV.X264-DIMENSION.mkv]
Get [English] subtitles for 1 files
Looking up subtitles by hash via OpenSubtitles
No matching subtitles found: D:\Download\Bittorrent\The.Blacklist.S02E17.720p.HDTV.X264-DIMENSION[rarbg]\The.Blacklist.S02E17.720p.HDTV.X264-DIMENSION.mkv
Rename episodes using [TheTVDB]
Auto-detected query: [The Blacklist]
Fetching episode data for [The Blacklist]
[DUPLICATE] Rename [D:\Download\Bittorrent\The.Blacklist.S02E17.720p.HDTV.X264-DIMENSION[rarbg]\The.Blacklist.S02E17.720p.HDTV.X264-DIMENSION.mkv] to [D:\Download\TV Shows\The Blacklist\Season 02\The Blacklist - S02E17 - The Longevity Initiative.mkv]
Processed 1 files
Fetching series artwork for [The Blacklist] to [D:\Download\TV Shows\The Blacklist\Season 02]
Fetching D:\Download\TV Shows\The Blacklist\poster.jpg => {id=969788, BannerMirror=http://thetvdb.com/banners/, BannerPath=posters/266189-3.jpg, BannerType=poster, BannerType2=680x1000, Language=en, Rating=6.1515, RatingCount=33}
Fetching D:\Download\TV Shows\The Blacklist\banner.jpg => {id=1038049, BannerMirror=http://thetvdb.com/banners/, BannerPath=graphical/266189-g12.jpg, BannerType=series, BannerType2=graphical, Language=en, Rating=10.0000, RatingCount=2}
Fetching D:\Download\TV Shows\The Blacklist\fanart.jpg => {id=999055, BannerMirror=http://thetvdb.com/banners/, BannerPath=fanart/original/266189-9.jpg, BannerType=fanart, BannerType2=1920x1080, Language=en, Rating=7.3333, RatingCount=3, SeriesName=false, ThumbnailPath=_cache/fanart/original/266189-9.jpg, VignettePath=fanart/vignette/266189-9.jpg}
Fetching D:\Download\TV Shows\The Blacklist\Season 02\poster.jpg => {id=1026087, BannerMirror=http://thetvdb.com/banners/, BannerPath=seasons/266189-2.jpg, BannerType=season, BannerType2=season, Season=2, Language=en, Rating=10.0000, RatingCount=4}
Banner not found: D:\Download\TV Shows\The Blacklist\Season 02\banner.jpg / season:seasonwide
Fanart not found: D:\Download\TV Shows\The Blacklist\clearart.png / clearart
Fetching D:\Download\TV Shows\The Blacklist\logo.png => {type=clearlogo, id=29528, url=http://assets.fanart.tv/fanart/tv/266189/clearlogo/the-blacklist-51abb3aa08489.png, lang=en, likes=2}
Fetching D:\Download\TV Shows\The Blacklist\landscape.jpg => {type=tvthumb, id=33778, url=http://assets.fanart.tv/fanart/tv/266189/tvthumb/the-blacklist-5240763259dbe.jpg, lang=en, likes=4}
Fetching D:\Download\TV Shows\The Blacklist\Season 02\landscape.jpg => {type=seasonthumb, id=49333, url=http://assets.fanart.tv/fanart/tv/266189/seasonthumb/the-blacklist-54fd7b6a2b66d.jpg, lang=de, likes=0, season=2}
Notify Plex: qtGaRJeM1CsahTysM6E5
http://qtGaRJeM1CsahTysM6E5:32400/library/sections/all/refresh
UnknownHostException: qtGaRJeM1CsahTysM6E5
Done ヾ(@⌒ー⌒@)ノ
So two questions remaining.

1) Is setting filebot to run in administrative mode giving it access to create symlinks? The file is now in both places, but pardon my ignorance, it doesn't seem to indicate if it is taking up extra file space or just a symlink.

2) How would I set it to have Music go to a separate base directory? In this case, just D:\.

Thanks for your help, appreciate it!
User avatar
rednoah
The Source
Posts: 19150
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: qBittorrent and AMC in Windows

Post by rednoah »

1) You can set it to HARDLINK if you want it to HARDLINK or fail. EVERY FILE is a HARDLINK so both "files" are the original.

2) Override the musicFormat. Read the manual for details.
:idea: Please read the FAQ and How to Request Help.
TheChunkyMonkey
Posts: 4
Joined: 27 Mar 2015, 06:16

Re: qBittorrent and AMC in Windows

Post by TheChunkyMonkey »

I'm sorry, I don't understand. The question was... how do I get filebot using symlinks via script in Windows. I understand it has to be in administrative mode, so is that setting filebot to run in administrative mode? qbittorrent?
User avatar
rednoah
The Source
Posts: 19150
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: qBittorrent and AMC in Windows

Post by rednoah »

I suppose if you run your torrent client as admin it'll also call FileBot as admin. Worth a try. Otherwise Google.
:idea: Please read the FAQ and How to Request Help.
TheChunkyMonkey
Posts: 4
Joined: 27 Mar 2015, 06:16

Re: qBittorrent and AMC in Windows

Post by TheChunkyMonkey »

I've given up on Symlinks... not sure how to get that to work under windows, unfortunately. It'd be extremely handy.

Last question!

For expressions, I'm not sure how it names music by default, I believe it is:

Music/Artist/Album/##.Artist - Track.mp3

If I wanted filebot to name it as:

Music/Artist/Album/## - Track.mp3

would my string be:

Code: Select all

"--def musicFormat=Music/{n}/{album+'/'}{pi.pad(2)} - {t}"
I've searched around for an expressions guide, but haven't been able to find one.
User avatar
rednoah
The Source
Posts: 19150
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: qBittorrent and AMC in Windows

Post by rednoah »

Expressions Guide linked on the front page:
http://www.filebot.net/naming.html

More Expressions Guide here in the forums with LOTS of examples:
viewtopic.php?f=5&t=2

Whole forum full of Expressions Guide for specific use-cases:
viewforum.php?f=5
:idea: Please read the FAQ and How to Request Help.
xflak
Power User
Posts: 53
Joined: 25 Feb 2015, 01:51

Re: qBittorrent and AMC in Windows

Post by xflak »

FYI, u can make a shortcut or bat file with your command and adjust the properties to run as an administrator.
Post Reply