diff --git a/burst/burst.py b/burst/burst.py index 5cd15fa5..e08a1537 100644 --- a/burst/burst.py +++ b/burst/burst.py @@ -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) @@ -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) @@ -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 diff --git a/burst/providers/icons/animaunt.png b/burst/providers/icons/animaunt.png new file mode 100644 index 00000000..7e6bb3b8 Binary files /dev/null and b/burst/providers/icons/animaunt.png differ diff --git a/burst/providers/providers.json b/burst/providers/providers.json index e683edf4..de5f172d 100644 --- a/burst/providers/providers.json +++ b/burst/providers/providers.json @@ -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}", diff --git a/resources/settings.xml b/resources/settings.xml index 7a633f51..0590eee1 100644 --- a/resources/settings.xml +++ b/resources/settings.xml @@ -59,6 +59,10 @@ + + + +