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

Add AniMaunt tracker #442

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions burst/burst.py
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ def extract_subpage(q, id, name, torrent, size, seeds, peers, info_hash, referer
if info_hash_search:
log.debug("[%s] Parser debug | Matched '%s' iteration for query '%s': %s" % (provider, 'info_hash', info_hash_search, info_hash))
if referer_search:
log.debug("[%s] Parser debug | Matched '%s' iteration for query '%s': %s" % (provider, 'info_hash', referer_search, referer))
log.debug("[%s] Parser debug | Matched '%s' iteration for query '%s': %s" % (provider, 'referer', referer_search, referer))

if description:
name = '{} ({})'.format(name, description)
Expand Down Expand Up @@ -609,7 +609,7 @@ def extract_from_page(provider, content):
matches = re.findall(r'magnet:\?[^\'"\s<>\[\]]+', content)
if matches:
result = matches[0]
log.debug('[%s] Matched magnet link: %s' % (provider, repr(result)))
log.debug('[%s] Matched magnet info_hash search: %s' % (provider, repr(result)))
return result

matches = re.findall(r'http(.*?).torrent["\']', content)
Expand Down Expand Up @@ -646,6 +646,13 @@ def extract_from_page(provider, content):
matches = re.findall(r'/download.php\?id=([A-Za-z0-9]{40})\W', content)
if matches:
result = "magnet:?xt=urn:btih:" + matches[0]
log.debug('[%s] Matched magnet info_hash search: %s' % (provider, repr(result)))
return result

matches = re.findall(r'/engine/download.php\?id=[A-Za-z0-9]+[^\s\'"]*', content) # animaunt
if matches:
result = definition['root_url'] + matches[0]
result += "|Referer=" + result # we need to add Referer header to download .torrent
log.debug('[%s] Matched download link: %s' % (provider, repr(result)))
return result

Expand Down
Binary file added burst/providers/icons/animaunt.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
28 changes: 28 additions & 0 deletions burst/providers/providers.json
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,34 @@
"subpage": false,
"tv_keywords": "{title:ru:jp}"
},
"animaunt": {
"anime_keywords": "{title:ru:jp}",
"base_url": "https://animaunt.org/",
"post_data": "{'story': 'QUERY', 'do': 'search', 'subaction': 'search'}",
"color": "FFFFFFFF",
"enabled": true,
"general_keywords": "{title}",
"language": "ru",
"languages": "ru",
"movie_keywords": "{title:ru:jp}",
"name": "AniMaunt",
"parser": {
"infohash": "",
"name": "item(tag='a', select=('class', 'th-title'))",
"description": "'WebDL 1080p'",
"peers": "",
"row": "find_all(tag='div', select=('class', 'thumb'))",
"seeds": "1",
"size": "",
"torrent": "item(tag='a', select=('class', 'th-title'), attribute='href')"
},
"predefined": false,
"private": false,
"season_keywords": "{title:ru:jp}",
"separator": "+",
"subpage": true,
"tv_keywords": "{title:ru:jp}"
},
"ArabP2P": {
"anime_extra": "",
"anime_keywords": "{title:original} s{season:2}e{episode:2}",
Expand Down
4 changes: 4 additions & 0 deletions resources/settings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@
<setting id="anilibria_alias" label="32077" type="text" default="" subsetting="true" visible="eq(-1,true)" />
<setting id="anilibria_contains" type="enum" label="32080" subsetting="true" lvalues="32081|32082|32083" visible="eq(-2,true)" />

<setting label="[B]AniMaunt[/B] [COLOR gray][$ADDON[script.elementum.burst 32114]][/COLOR]" id="use_animaunt" type="bool" default="false" />
<setting id="animaunt_alias" label="32077" type="text" default="" subsetting="true" visible="eq(-1,true)" />
<setting id="animaunt_contains" type="enum" label="32080" subsetting="true" lvalues="32081|32082|32083" visible="eq(-2,true)" />

<setting label="[B]Cpasbien[/B] [COLOR gray][$ADDON[script.elementum.burst 32113]][/COLOR]" id="use_cpasbien" type="bool" default="false" />
<setting id="cpasbien_alias" label="32077" type="text" default="" subsetting="true" visible="eq(-1,true)" />
<setting id="cpasbien_contains" type="enum" label="32080" subsetting="true" lvalues="32081|32082|32083" visible="eq(-2,true)" />
Expand Down