rembo10 / headphones

Automatic music downloader for SABnzbd
GNU General Public License v3.0
3.41k stars 600 forks source link

Support for nzbindex.com with RSS #390

Open Jarcol opened 12 years ago

Jarcol commented 12 years ago

Hi,

First of all, thanks for the great work with Headphones!

Now my request: Would it be possible to add nzbindex.com support (should be relatively easy with the RSS functionality).

The RSS line is build up from several parts: The entire link (with the Cold Play Mylo Xyloto album in flac as example) http://www.nzbindex.com/rss/?q=cold+play+mylo+xyloto+flac&sort=agedesc&minsize=350&maxsize=10000&max=25&more=1

q stands for query = movie title & year & quality q=cold+play+mylo+xyloto+flac

age stands for the number of days the post is posted age=400

sort stands for the order by date sort=agedesc

minsize stands for minimum size (in MB's) of the results minsize=350

maxsize stands for the maximum size (in MB's) for the results maxsize=10000

max stands for the number of results max=1

I don't think you realy needed this explanattion, but I certainly hope you can build in some support for nzbindex.

mapero commented 12 years ago

+1 for this. Please consider adding nzbindex to search providers.

ghost commented 12 years ago

Like, +1, Reddit

DO IT DO IT DO IT DO IT

peterschen commented 11 years ago

+1

Parodontose commented 11 years ago

I created a little PHP script (api.php) on my webserver containing only the following code:

echo str_replace("/release/", "/download/", file_get_contents("http://nzbindex.nl/rss/?q=".$_REQUEST["q"]));

In Headphones under search providers i just entered: Newznab Host: http://localhost/nzbindex/ Newznab API: random characters

nzbindex is just a directory on the webserver localhost.

In that directory I added a .htaccess to handle the call from headphones: ErrorDocument 404 api.php

Voila. Headphones using NZBIndex.nl Additional parameters for nzbindex have to be hardcoded (minsize, etc.) but works like a charm.

uncenteredDiv commented 11 years ago

Hey Parodontose,

thank you for the workaround - i done anything like you explained it, but it's not working.

I get the error: INFO:headphones:CP Server Thread-6 : Parsing results from http://localhost:9995/nzbindex/

16-Aug-2013 19:11:01 - WARNING :: CP Server Thread-6 : Error fetching data from http://localhost:9995/nzbindex/: HTTP Error 404: Not Found

I have the api.php + .htaccess added to the dir /nzbindex/

Hope you can help me ... thanks in advance

jayme-github commented 10 years ago

I've added a first version of an NZBClub searcher (almost same results as NZBIndex) in https://github.com/jayme-github/headphones/tree/nzbclub

Needs some testing (and testers) so please send feedback.

jbrines commented 9 years ago

Hi Parodontose,

Thanks for the script, Headphones likes it but it never finds anything I am looking for!!

John.