Page 1 of 1

trigger search with command line arguments

Posted: Mon Mar 03, 2014 4:22 pm
by rhere123456
is initiating search with X Y Z keywords with command line parameters possible ?

i tried

Code: Select all

C:\Program Files (x86)\qBittorrent>qbittorrent.exe /?
but no info

and i found some related posts, but no mention of search:

Command line options + Single instance detection questions [Solved]
http://qbforums.shiki.hu/index.php/topi ... g3821.html

qbittorrent run commands?
http://qbforums.shiki.hu/index.php?topic=673.0

Re: trigger search with command line arguments

Posted: Mon Mar 03, 2014 5:13 pm
by sledgehammer_999
No it's not possible.

qbt is a GUI application. We don't support actions through the command line. The only exception is adding torrents/magnets (duh!)

Re: trigger search with command line arguments

Posted: Mon Mar 03, 2014 5:50 pm
by rhere123456
thanks. if i tried to implement it in source, is there a method i could call?
a la someObject.SearchPluginObject.Search(searchKeywords)
- sorry for the c# syntax..

Re: trigger search with command line arguments

Posted: Mon Mar 03, 2014 6:16 pm
by sledgehammer_999
Offtopic: I think

Code: Select all

qbittorrent.exe --help
might work.

As for the method: The search is implemented with python scripts. You can call the "mother" script that will call the appropriate search engine script and output the results.
Running nova2.py without args will display helpful info.
Depending on whether you use python2 or python3 go for the nova or nova3 folder: https://github.com/qbittorrent/qBittorr ... archengine

Also the wiki entry about how to write a search plugin might inform you too: https://github.com/qbittorrent/qBittorr ... rch-plugin