#117 Web Search

open
nobody
None
5
2009-06-02
2009-05-25
Giacomo Lacava
No

Most digital comics are downloaded through BitTorrent. It would be very cool to be able to search for a book on the major trackers, and initiate a download, straight from Comix. This could be done by:
1) implementing an OpenSearch-compatible search box, so that you can reuse straight away all the search plugins for Firefox which most trackers already provide.
2) on hitting "return" in the search box, Comix should either open an embedded or external browser with the result of the search query.

I do work with Python, but I'm not familiar with PyGTK. How hard would it be to add the required GUI elements (a search box and a tab in Preferences to manage the plugins)? If you can give me a pointer, I could probably come up with a patch.

Discussion

  • Giacomo Lacava
    Giacomo Lacava
    2009-05-27

    Attached an initial patch and plugin to test it with.
    The OS backend is organised in a "searchplugin" subfolder of the main datadir; create it and place there the google-torrent-search.xml before starting Comix.
    The UI addition is on the Library screen. There is an Entry for the search parameters and a ComboBoxEntry to select one of the available engines. I don't know if that space is the best place, that's up to you. Once you enter the search parameters and press enter, we launch the browser with the results.

    (note the GPL notice on top of the new file -- you really should have one on all your files.)

     
  • Giacomo Lacava
    Giacomo Lacava
    2009-05-28

    WebSearch patch

     
    Attachments
  • Giacomo Lacava
    Giacomo Lacava
    2009-05-28

    I modified the patch to be about a more politically-correct (and more useful) "Web Search".
    Also, you can now right-click on a collection and "search for this collection on the web" with the last-used engine (which is now remembered through a preference).
    The new patch includes a few default plugins, also added to installation script; they are added to home dir at first installation (the code to find where they are is not fantastic). Note that some plugins call the search url passing the standard firefox identifiers, you should probably change them to your own ones (i.e. to get referral fees from amazon or google).

     
  • Giacomo Lacava
    Giacomo Lacava
    2009-06-02

    • summary: BitTorrent search on major trackers --> Web Search
     
  • Giacomo Lacava
    Giacomo Lacava
    2009-06-02

    search plugin for comic-db.dcom

     
  • Giacomo Lacava
    Giacomo Lacava
    2009-06-02

    search plugin for Grand Comic DB

     
  • Giacomo Lacava
    Giacomo Lacava
    2009-06-02

    Attached also a couple of search plugins for the largest comic db.

    Once per-archive metadata support is added (through ComicInfo support or whatever), you could probably do things like WebSearch -> "other comics by this writer" etc.