Skip to content

Commit

Permalink
release: v2.89.0
Browse files Browse the repository at this point in the history
  • Loading branch information
newt-sc committed Oct 17, 2024
1 parent 2388dfe commit 764219e
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
* [v2.89.0](https://github.com/a4k-openproject/a4kScrapers/releases/tag/a4kScrapers-2.89.0):
* bring back magnetdl

* [v2.88.0](https://github.com/a4k-openproject/a4kScrapers/releases/tag/a4kScrapers-2.88.0):
* increase bitsearch limit

Expand Down
2 changes: 1 addition & 1 deletion meta.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"author": "Unknown",
"version":"2.88.0",
"version":"2.89.0",
"name":"a4kScrapers",
"update_directory": "https://github.com/a4k-openproject/a4kScrapers/archive/",
"remote_meta": "https://raw.githubusercontent.com/newt-sc/a4kScrapers/master/meta.json",
Expand Down
7 changes: 6 additions & 1 deletion providerModules/a4kScrapers/urls.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,12 @@
]
},
"-lime": { "search": "", "domains": [{ "base": "" }] },
"-magnetdl": { "search": "", "domains": [{ "base": "" }] },
"magnetdl": {
"search": "/%s/%s/se/desc/",
"domains": [
{ "base": "https://torrentquest.com" }
]
},
"-movcr": { "search": "", "domains": [{ "base": "" }] },
"nyaa": {
"search": "/?f=0&c=1_0&q=%s",
Expand Down
14 changes: 14 additions & 0 deletions providers/a4kScrapers/en/torrent/magnetdl.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# -*- coding: utf-8 -*-

from providerModules.a4kScrapers import core

class sources(core.DefaultSources):
def __init__(self, *args, **kwargs):
super(sources, self).__init__(__name__, *args, **kwargs)

def _search_request(self, url, query):
query_first_letter = query.decode('utf-8')[0].lower()
query = core.quote_plus(query).replace('+', '-').lower()
search_url = url.base + url.search % (query_first_letter, query)
headers = { 'Accept': 'text/html' }
return self._request.get(search_url, headers=headers)

0 comments on commit 764219e

Please sign in to comment.