Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow Creation of Custom Search Engines for Private Trackers #18

Closed
SchizoDuckie opened this issue Feb 17, 2014 · 11 comments
Closed

Allow Creation of Custom Search Engines for Private Trackers #18

SchizoDuckie opened this issue Feb 17, 2014 · 11 comments
Assignees

Comments

@SchizoDuckie
Copy link
Owner

Make it as simple as possible to define a scraper that fetches relevant info

SchizoDuckie added a commit that referenced this issue Dec 13, 2014
…ericTorrentSearch interface and config.

Still needs work on mirrorresolver and grabbing the configured server from settings.
Also, another improvement would be to add detailUrl fetchers and queryselectors for search engines that hide magnet links and torrent linkes onto the details page. re #18
SchizoDuckie added a commit that referenced this issue Dec 18, 2014
@Js41637 Js41637 modified the milestone: Roadmap v1.0 Jan 18, 2015
@SchizoDuckie SchizoDuckie changed the title Create a generic tracker scraping API Create a generic (private) tracker scraping API May 31, 2015
@SchizoDuckie SchizoDuckie reopened this May 31, 2015
SchizoDuckie added a commit that referenced this issue May 31, 2015
@garfield69 garfield69 modified the milestones: Roadmap v1.1, Roadmap v1.0 Jun 1, 2015
@SchizoDuckie
Copy link
Owner Author

todos / braindump:

  • allow remote torrents to be fetched and uploaded as file upload to the torrent client (if it supports that)
    (because torrents can be behind cookie/login and then sent to a remote)
  var xhr = new XMLHttpRequest();
                xhr.open("POST", http+localStorage["host"]+":"+localStorage["port"]+relpath+"?token="+token+"&action=add-file", true, localStorage["login"], localStorage["password"]);
                xhr.onreadystatechange = ut_handleResponse;
                // mostly stolen from https://github.com/igstan/ajax-file-upload/blob/master/complex/uploader.js
                var boundary = "AJAX-----------------------"+(new Date).getTime();
                xhr.setRequestHeader("Content-Type", "multipart/form-data; boundary=" + boundary);
                var message = "--" + boundary + "\r\n";
                   message += "Content-Disposition: form-data; name=\"torrent_file\"; filename=\"file.torrent\"\r\n";
                   message += "Content-Type: application/x-bittorrent\r\n\r\n";
                   message += torrentdata + "\r\n";
                   message += "--" + boundary + "--\r\n";

                xhr.sendAsBinary(message);

@garfield69 garfield69 added v1.1 and removed v1.0 labels Jun 28, 2015
@SchizoDuckie SchizoDuckie modified the milestones: Roadmap v1.2.0, Roadmap v1.1.0 Jul 2, 2015
@Js41637 Js41637 changed the title Create a generic (private) tracker scraping API Allow Creation of Custom Search Engines for Private Trackers Jul 19, 2015
Js41637 referenced this issue Jul 19, 2015
Also allow disabling/enabling default engines
Js41637 referenced this issue Jul 19, 2015
Note to self: Maybe actually try making sure that they work.
Js41637 referenced this issue Jul 19, 2015
Added a log that is shown on the page that will be able to show stuff.
@SchizoDuckie
Copy link
Owner Author

I just discovered

https://github.com/zone117x/Jackett/

zone117x/Jackett@abdca8c

Note to self: contact these guys when the time comes, see if we can share a common repo with tracker info

[edit] moved to https://github.com/Jackett/Jackett.
Also note: jacket supports only private trackers.

@SchizoDuckie
Copy link
Owner Author

SchizoDuckie commented Oct 2, 2015

happy to report: This latest commit basically makes the custom search engines work!

Todos:

  • support functions (such as those in 1337x, ExtraTorrent, Idope, ThePrateBay, Zooqle and IsoHunt)
  • support %o (in endpoints) and orderby, as introduced by option on torrent dialogue to change sort order #668
  • Permanently store the custom searchengine data as a database fixture
    • add 1337x
    • add kat
    • add KATcr
    • add Idope
    • add tpb
    • add nyaa
    • add torrentz torrentZ2
    • add RARbg (note: this is an API not a scraper)
    • add strike IsoHunt
    • add showrss
    • add torrentleech
    • add ExtraTorrent SkyTorrents
    • add Zooqle
    • add LineTorrents
    • add EzTV.ag
    • torrentDownloads
  • Provide a way to export these engines
  • Autoload enabled engines on page load
  • Figure out a way around the ugly confirm dialog. Should notify the user he should login, but not lock the UI
  • Allow the user to edit all the existing genericsearch implementations, show these by default in the customsearch panel
  • make enable/disable buttons work
  • Figure out an easy way to export/import/share custom search engines

@garfield69
Copy link
Collaborator

Looking to understand fixtures...

  • Are fixtures basically pre-loaded DB entities in a table?
  • They get loaded into the table during the table creation phase?
  • How does making subsequent changes to the fixtures definitions get propagated to the existing DB entities previously created (like the nyaa change you made later to the already created nyaa fixures in the prior commit) ?

@SchizoDuckie
Copy link
Owner Author

Are fixtures basically pre-loaded DB entities in a table?

Yes.

They get loaded into the table during the table creation phase?

Correct :)

How does making subsequent changes to the fixtures definitions get propagated to the existing DB entities previously created (like the nyaa change you made later to the already created nyaa fixures in the prior commit) ?

They don't currently :) While developing this, i'm dropping the database table using

CRUD.executeQuery('DROP table SearchEngine') in the console

@garfield69
Copy link
Collaborator

replaced by Jackett #899

@ManoharOfficial
Copy link

So, a fully private tracker like td.af would be able to fully integrate with the chrome extension V.1.1.5?

@garfield69
Copy link
Collaborator

Yes, Jackett has Torrent Day on it's list of supported sites.

@ManoharOfficial
Copy link

awesome! can't wait for the stable 1.1.5 release!

@garfield69
Copy link
Collaborator

garfield69 commented Jun 11, 2017

@ManoharOfficial
Copy link

ManoharOfficial commented Jun 11, 2017

Awesome! Just got everything setup. Can't wait for the stable release!
[edit] You guys are very through with your guides. I'm surprised that you don't accept donations.
Question : Is DuckieTV out of passion or, as an open source collaboration between various enthusiasts?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants