Help with CLI call for qbittorrent.

Support for Ubuntu and other Desktop Linux distributions
Post Reply
hcker2000
Posts: 6
Joined: 20 May 2015, 13:56

Help with CLI call for qbittorrent.

Post by hcker2000 »

I picked up filebot off the ubuntu app store last night and worked up what I thought would work with my qbittorrent. Here is the cli.

Code: Select all

filebot -script fn:amc --log-file amc.log --action copy --conflict override -non-strict --def "movieFormat=/media/hcker2000/Video/Movies/{n} ({y}) [vf]/{n} ({y}) [vf] {'CD'+pi}" "seriesFormat=/media/hcker2000/TV/{n}/{'Season '+s}/{n} {s00e00} {t}" music=y subtitles=en artwork=y "ut_label=%L" "ut_state=%S" "ut_title=%N" "ut_kind=%K" "ut_file=%F" "ut_dir=%D" --def plex=hostname
This is based on another cli I found online. The first problem I have is I'm not sure where its going to make the amc.log file. Would it be best to specify some thing like /home/hcker2000/Desktop/amc.log?

Also being brand new to this is there any thing that stands out as wrong?
hcker2000
Posts: 6
Joined: 20 May 2015, 13:56

Re: Help with CLI call for qbittorrent.

Post by hcker2000 »

I did a bit more research and found this thread about qbittorrent: viewtopic.php?f=4&t=2131&p=15171&hilit= ... ent#p15171

So I think my command needs to look more like this:

Code: Select all

filebot -script fn:amc --log-file amc.log --action copy --conflict override -non-strict --def "movieFormat=/media/hcker2000/Video/Movies/{n} ({y}) [vf]/{n} ({y}) [vf] {'CD'+pi}" "seriesFormat=/media/hcker2000/TV/{n}/{'Season '+s}/{n} {s00e00} {t}" music=y subtitles=en artwork=y  --def plex=127.0.0.1 --def exludeList=amc.txt "%f" 
hcker2000
Posts: 6
Joined: 20 May 2015, 13:56

Re: Help with CLI call for qbittorrent.

Post by hcker2000 »

Ok so I have made some more progress on another computer. The previous posts script is working as intended. The only thing that is not is the ignore list is not ignoring things. Here is my log output.

Code: Select all

Parameter: movieFormat = F:/Movies{n} ({y}) [vf]/{n} ({y}) [vf] {'CD'+pi}
Parameter: seriesFormat = F:/TV/{n}/{'Season '+s}/{n} {s00e00} {t}
Parameter: music = y
Parameter: subtitles = en
Parameter: artwork = y
Parameter: exludeList = c:/amc.txt
Argument: C:\Users\webmaster\Documents\Downloads
Input: C:\Users\webmaster\Documents\Downloads\Adventure.Time.S06E35.Graybles.1000.Plus.HDTV.x264-W4F[rarbg]\adventure.time.s06e35.graybles.1000.plus.hdtv.x264-w4f.mp4
Input: C:\Users\webmaster\Documents\Downloads\Adventure.Time.S06E36.Hoots.HDTV.x264-W4F[rarbg]\adventure.time.s06e36.hoots.hdtv.x264-w4f.mp4
Exclude: C:\Users\webmaster\Documents\Downloads\Adventure.Time.S06E35.Graybles.1000.Plus.HDTV.x264-W4F[rarbg]\adventure.time.s06e35.graybles.1000.plus.hdtv.x264-w4f.nfo
Exclude: C:\Users\webmaster\Documents\Downloads\Adventure.Time.S06E35.Graybles.1000.Plus.HDTV.x264-W4F[rarbg]\RARBG.com.txt
Exclude: C:\Users\webmaster\Documents\Downloads\Adventure.Time.S06E35.Graybles.1000.Plus.HDTV.x264-W4F[rarbg]\SAMPLE\adventure.time.s06e35.graybles.1000.plus.hdtv.x264-w4f-sample.mp4
Exclude: C:\Users\webmaster\Documents\Downloads\Adventure.Time.S06E36.Hoots.HDTV.x264-W4F[rarbg]\adventure.time.s06e36.hoots.hdtv.x264-w4f.nfo
Exclude: C:\Users\webmaster\Documents\Downloads\Adventure.Time.S06E36.Hoots.HDTV.x264-W4F[rarbg]\RARBG.com.txt
Group: [tvs:adventure time] => [adventure.time.s06e35.graybles.1000.plus.hdtv.x264-w4f.mp4, adventure.time.s06e36.hoots.hdtv.x264-w4f.mp4]
Get [English] subtitles for 2 files
CmdlineException: OpenSubtitles: Please enter your login details by calling `filebot -script fn:configure`
Rename episodes using [TheTVDB]
Auto-detected query: [adventure time]
Fetching episode data for [Adventure Time]
[COPY] Rename [C:\Users\webmaster\Documents\Downloads\Adventure.Time.S06E35.Graybles.1000.Plus.HDTV.x264-W4F[rarbg]\adventure.time.s06e35.graybles.1000.plus.hdtv.x264-w4f.mp4] to [F:\TV\Adventure Time\Season 6\Adventure Time S06E35 Graybles 1000+.mp4]
[COPY] Rename [C:\Users\webmaster\Documents\Downloads\Adventure.Time.S06E36.Hoots.HDTV.x264-W4F[rarbg]\adventure.time.s06e36.hoots.hdtv.x264-w4f.mp4] to [F:\TV\Adventure Time\Season 6\Adventure Time S06E36 Hoots.mp4]
Processed 2 files
Fetching series artwork for [Adventure Time] to [F:\TV\Adventure Time\Season 6]
Fetching F:\TV\Adventure Time\poster.jpg => {id=693341, BannerMirror=http://thetvdb.com/banners/, BannerPath=posters/152831-2.jpg, BannerType=poster, BannerType2=680x1000, Language=en, Rating=8.3000, RatingCount=20}
Fetching F:\TV\Adventure Time\banner.jpg => {id=521451, BannerMirror=http://thetvdb.com/banners/, BannerPath=graphical/152831-g2.jpg, BannerType=series, BannerType2=graphical, Language=en, Rating=7.7647, RatingCount=17}
Fetching F:\TV\Adventure Time\fanart.jpg => {id=934723, BannerMirror=http://thetvdb.com/banners/, BannerPath=fanart/original/152831-13.jpg, BannerType=fanart, BannerType2=1920x1080, Colors=|230,80,79|84,140,199|86,186,90|, Language=en, Rating=8.5455, RatingCount=11, SeriesName=false, ThumbnailPath=_cache/fanart/original/152831-13.jpg, VignettePath=fanart/vignette/152831-13.jpg}
Fetching F:\TV\Adventure Time\Season 6\poster.jpg => {id=1009957, BannerMirror=http://thetvdb.com/banners/, BannerPath=seasons/152831-6.jpg, BannerType=season, BannerType2=season, Season=6, Language=en, Rating=7.8000, RatingCount=5}
Banner not found: F:\TV\Adventure Time\Season 6\banner.jpg / season:seasonwide
Fetching F:\TV\Adventure Time\clearart.png => {type=clearart, id=10739, url=http://assets.fanart.tv/fanart/tv/152831/clearart/adventure-time-with-finn-and-jake-4dc5ab6659929.png, lang=en, likes=0}
Fetching F:\TV\Adventure Time\logo.png => {type=clearlogo, id=27, url=http://assets.fanart.tv/fanart/tv/152831/clearlogo/adventuretime-152831-2.png, lang=en, likes=0}
Fetching F:\TV\Adventure Time\landscape.jpg => {type=tvthumb, id=15936, url=http://assets.fanart.tv/fanart/tv/152831/tvthumb/adventure-time-with-finn-and-jake-4f303da8462ae.jpg, lang=en, likes=0}
Fanart not found: F:\TV\Adventure Time\Season 6\landscape.jpg / seasonthumb
Done ヾ(@⌒ー⌒@)ノ
Any idea why it is not creating the exclude list when it runs? I tried adding the file by hand and this is whats inside after my script gets run.

Code: Select all

{\rtf1}
User avatar
rednoah
The Source
Posts: 23004
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Help with CLI call for qbittorrent.

Post by rednoah »

You typed it, and you typed it wrong. Use copy & paste next time.
:idea: Please read the FAQ and How to Request Help.
hcker2000
Posts: 6
Joined: 20 May 2015, 13:56

Re: Help with CLI call for qbittorrent.

Post by hcker2000 »

rednoah wrote:You typed it, and you typed it wrong. Use copy & paste next time.
Sorry I dont follow. Which part did I type wrong?
User avatar
rednoah
The Source
Posts: 23004
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Help with CLI call for qbittorrent.

Post by rednoah »

excludeList
:idea: Please read the FAQ and How to Request Help.
hcker2000
Posts: 6
Joined: 20 May 2015, 13:56

Re: Help with CLI call for qbittorrent.

Post by hcker2000 »

rednoah wrote:excludeList
Thanks! Now when I run it I'm getting this error:

Code: Select all

Parameter: movieFormat = F:/Movies/{n} ({y}) [vf]/{n} ({y}) [vf] {'CD'+pi}
Parameter: seriesFormat = F:/TV/{n}/{'Season '+s}/{n} {s00e00} {t}
Parameter: music = y
Parameter: subtitles = en
Parameter: artwork = y
Parameter: excludeList = C:/amc.txt
Argument: C:\Users\webmaster\Documents\Downloads
IOException: Access is denied
java.io.IOException: Access is denied
	at java_io_File$createNewFile$3.call(Unknown Source)
	at Script1.run(Script1.groovy:138)
	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 (°_°)
I'm going to try pointing it at my already created file.
hcker2000
Posts: 6
Joined: 20 May 2015, 13:56

Re: Help with CLI call for qbittorrent.

Post by hcker2000 »

Pointing it at the already created txt file did the trick. Thanks again for the help.
Post Reply