elgatito / script.elementum.burst

Development of this addon has been stopped!
MIT License
118 stars 118 forks source link

Jackett as provider #246

Closed daanvandevliet closed 1 year ago

daanvandevliet commented 3 years ago

Kind of a wacky idea but it seems to work. How about adding Jackett as a provider option?

{
    "jackett": {
        "enabled": true,
        "predefined": false,
        "languages": "en",
        "anime_extra": "",
        "anime_keywords": "{title} {episode}",
        "anime_query": "",
        "base_url": "http://192.168.2.200:9117/api/v2.0/indexers/all/results/potato?passkey={redacted}&",
        "color": "FFF14E13",
        "general_extra": "",
        "general_keywords": "{title:original}",
        "general_query": "offset=0&limit=3&search=QUERY&cat=2000,5000",
    "charset":"utf-8",
    "response_charset": "utf-8",
    "is_api": true,
        "language": null,
    "languages": "kr",
        "login_failed": "",
        "login_object": "",
        "login_path": "",
        "movie_extra": "",
        "movie_keywords": "{title} {year}",
        "movie_query": "offset=0&limit=3&search=QUERY&cat=2000",
    "charset":"utf-8",
        "name": "jackett",
        "api_format": {
            "name": "release_name",
            "peers": "leechers",
            "results": "results",
        "seeds": "seeders",
        "size": "size",
            "torrent": "download_url"
        },
        "private": false,
        "season_extra": "",
        "season_extra2": "",
        "season_keywords": "{title} Season {season:2}",
        "season_keywords2": "{title} Season{season}",
        "season_query": "EXTRA",
        "separator": "+",
        "show_query": "offset=0&limit=3&search=QUERY&cat=5000",
    "charset":"utf-8",
        "subpage": false,
        "tv_extra": "",
        "tv_extra2": "",
        "tv_keywords": "{title} s{season:2}e{episode:2}",
        "tv_keywords2": ""
    }
}
iz8mbw commented 3 years ago

Hi @daanvandevliet Many thanks for sharing it! I'm testing but it seems the file size is wrong. See here: image

The sizes shown in Elementum are in "KB" but the real size are in GB. For example this first result in Elementum is "3.1 KB" but the real size is about "3.3 GB": image

daanvandevliet commented 3 years ago

@iz8mbw Glad it's of use!

Here is the current version of the script. The size does output correctly for me. Please check with this.:

{
    "jackett": {
        "enabled": true,
        "predefined": false,
        "languages": "en",
        "anime_extra": "",
        "anime_keywords": "{title} {episode}",
        "anime_query": "",
        "base_url": "http://{IP}:9117/api/v2.0/indexers/{tracker}/results?apikey={pass}",
        "color": "FFF14E13",
        "general_extra": "",
        "general_keywords": "{title:original}",
        "general_query": "&query=QUERY&cat=2000,5000",
    "charset":"utf-8",
    "response_charset": "utf-8",
    "is_api": true,
        "language": null,
    "languages": "kr",
        "login_failed": "",
        "login_object": "",
        "login_path": "",
        "movie_extra": "",
        "movie_keywords": "{title} {year}",
        "movie_query": "&query=QUERY&cat=2000",
    "charset":"utf-8",
        "name": "jackett",
        "api_format": {
            "name": "Title",
            "peers": "Peers",
            "results": "Results",
        "seeds": "Seeders",
        "size": "Size",
            "torrent": "Link"
        },
        "private": false,
        "season_extra": "",
        "season_extra2": "",
        "season_keywords": "{title} Season {season:2}",
        "season_keywords2": "{title} Season{season}",
        "season_query": "EXTRA",
        "separator": "+",
        "show_query": "&query=QUERY&cat=5000",
    "charset":"utf-8",
        "subpage": false,
        "tv_extra": "",
        "tv_extra2": "",
        "tv_keywords": "{title} s{season:2}e{episode:2}",
        "tv_keywords2": ""
    }
}
iz8mbw commented 3 years ago

Thanks. But as tracker value? Not good to set all trackers?

iz8mbw commented 3 years ago

works and not works. Try multiple search and some results in Kodi.log has "unsupported protocol scheme "magnet".

elgatito commented 1 year ago

I think it is better to use a separate Kodi addon for Jacket searches. Elementum is searching through all script.elementum.* addons.

You should try to use https://github.com/fugkco/script.elementum.jackett