trigger search with command line arguments

Windows specific questions, problems.
Post Reply
rhere123456

trigger search with command line arguments

Post 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
sledgehammer_999
Administrator
Administrator
Posts: 2443
Joined: Sun Jan 23, 2011 1:17 pm

Re: trigger search with command line arguments

Post 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!)
rhere123456

Re: trigger search with command line arguments

Post 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..
sledgehammer_999
Administrator
Administrator
Posts: 2443
Joined: Sun Jan 23, 2011 1:17 pm

Re: trigger search with command line arguments

Post 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
Post Reply