elgatito / script.elementum.burst

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

create a burst provider in Portuguese (Brazil) #144

Open videofree opened 4 years ago

videofree commented 4 years ago

I am trying to create a burst provider in Portuguese (Brazil) en to use in elementum I would like some help

elgatito commented 4 years ago

@videofree you can write link, if invite needed - then also invite, or credentials, so I can login and browse that website. If addition is possible - I will add it.

videofree commented 4 years ago

I'm interested. I would like some support regarding some commands. I managed to make some website work but I didn't quite understand what each thing does in the configuration below.

videofree commented 4 years ago

"1337x": { "enabled": true, "predefined": true, "private": false, "name": "1337x", "languages": "en", "anime_extra": "", "anime_keywords": "{title} {episode}", "anime_query": "", "base_url": "https://www.1337x.to/search/QUERYEXTRA/1/", "color": "FFF14E13", "general_extra": "", "general_keywords": "{title}", "general_query": "", "language": null, "login_failed": "", "login_object": "", "login_path": null, "movie_extra": "", "movie_keywords": "{title} {year}", "movie_query": "", "parser": { "infohash": "", "name": "item('a', order=2)", "peers": "item(tag='td', order=3)", "row": "find_once(tag='tbody').find_all('tr')", "seeds": "item(tag='td', order=2)", "size": "item(tag='td', order=5)", "torrent": "'https://www.1337x.to%s' % item(tag='a', attribute='href', order=2)" }, "season_extra": "", "season_extra2": "", "season_keywords": "{title} s{season:2}", "season_keywords2": "", "season_query": "", "separator": "+", "show_query": "", "subpage": true, "tv_extra": "", "tv_extra2": "", "tv_keywords": "{title} s{season:2}e{episode:2}", "tv_keywords2": "{title} {season:2}x01|S{season:2}", "tv_keywords_fallback": "{title} s{season}" },

videofree commented 4 years ago

sorry for the translation, i'm using google it may not translate properly.

elgatito commented 4 years ago

Sorry, I cannot write description of each field. Elementum's Burst is a continuation of Quasar's Burst, so main information about fields you can get from documentation it's: https://quasar-burst.readthedocs.io/en/latest/

videofree commented 4 years ago

Good Morning. I am already using this documentation. Some settings are not in the documentation. I would like to understand how it works because it has a lot of QUERY and an Extra command that I don't know what information it brings. The parser configuration I was able to use but I can't get tag 'b' information that is the size of the file on the site commandotorrents.com. Thanks for listening.

videofree commented 4 years ago

when you do a search Example '15 minutos' works normal, when is 'O Rei leão' does not work because of the '~' the browser does not recognize how I resolve it.

"comandotorrents": {
    "enabled": true,
    "predefined": false,
    "private": false,
    "name": "Comando Torrents",
    "languages": "pt",
    "anime_extra": "",
    "anime_keywords": "",
    "anime_query": "",
    "base_url": "https://www.comandotorrents.com/QUERY",
    "color": "FF238234",
    "general_extra": "",
    "general_keywords": "{title}",
    "general_query": "",
    "language": null,
    "login_failed": "",
    "login_object": "",
    "login_path": null,
    "movie_extra": "",
    "movie_keywords": "{title:br} torrent {year}",
    "movie_query": null,
    "parser": {
        "infohash": "",
        "name": "'%s ' % (item(tag='a').replace(' Torrent', ''))",
        "peers": "20",
        "row": "find_all('h1', select=('class', 'entry-title'), start=1)",
        "seeds": "1",
        "size": "",
        "torrent": "item(tag='a', attribute='href', order=1)"
    },
    "season_extra": "",
    "season_extra2": "",
    "season_keywords": "",
    "season_keywords2": "",
    "season_query": "",
    "separator": "-",
    "show_query": "",
    "subpage": true,
    "tv_extra": "",
    "tv_extra2": "",
    "tv_keywords": "",
    "tv_keywords2": null,
    "tv_keywords_fallback": null
},
mvnitro commented 4 years ago

Take a look at this topic @videofree

https://github.com/elgatito/script.elementum.burst/issues/121

@danny1990 helped a lot and managed to make it work with megatorrentbr which is similar to commandootorrent, it was not 100% but it worked

There are also two Kodi addons that use bludv and commandotorrent to provide the movies (play torrent and atto torrent) I think I just change the names, maybe it will help you.

videofree commented 4 years ago

Thanks for the tip.

I'm already using this tip, I'm having trouble searching with special character titles.

kpinheiro256612 commented 4 years ago

Good afternoon!

I'm using Google Translate, so something can happen to be out of context.

I took the script as a template, and I'm trying to adapt it for the bj-shared site, with a username and password but it's not rolling, can you help me?

Can you help me?

Create a provider for BJ-Shared

{ "megatorrentshd": { "enabled": true, "base_url": "http://www.megatorrentshd.org/?s=QUERY", "color": "FFF14E13", "general_extra": "", "general_keywords": "{title:pt}", "general_query": "EXTRA", "language": "pt", "movie_extra": "", "movie_keywords": "{title:pt}", "movie_query": "EXTRA", "name": "MEGA_TORRENTS_HD", "language": "pt", "parser": { "infohash": "", "name": "item(tag='img', attribute='alt', order=1)", "peers": "20", "row": "find_all('div', select=('class', 'peli'), start=1)", "seeds": "3", "size": "", "torrent": "item(tag='a', attribute='href', order=1)" }, "separator": "+", "show_query": "", "subpage": true } }

antonsoroko commented 1 year ago

all links are dead. can be closed, i think.

icarok99 commented 7 months ago

This fork has Brazilian providers https://github.com/addon-rajada/script.elementum.rajada

antonsoroko commented 7 months ago

so instead of making PRs they decided to maintain a fork.

although, this GUI tool looks interesting: https://github.com/addon-rajada/script.elementum.rajada/tree/master/scripts/check_provider

CC: @elgatito

antonsoroko commented 7 months ago

this also looks interesting https://github.com/addon-rajada/script.elementum.rajada/commit/2264bf4ef4c7913de85d2358fe7739ddcbb76a68#diff-f98d6c421c678b4515fde7fcbc457c0cf7b27c380c35735d4def634eb9e7e918R141

a check for "real" number of seeds/peers on burst side. but i do not remember if we already have this functionality but inside elementum daemon itself.

icarok99 commented 7 months ago

so instead of making PRs they decided to maintain a fork.

although, this GUI tool looks interesting: https://github.com/addon-rajada/script.elementum.rajada/tree/master/scripts/check_provider

CC: @elgatito

Many changes were made to find content from Brazilian providers, recently I added a provider to elementum burst and only finds 1 resolution.

antonsoroko commented 7 months ago

what i mean - if those changes are not "hacks" for specific providers but changes that can be useful for all providers - then they could just contribute to burst (and to all its users). but if those changes are "hacks" for specific providers - then i can understand why they keep those changes to themselves.

also i do not know what makes Brazilian providers so special, for example, i added english/russian/bulgarian/arabic/etc providers - have not seen any real difference.

but if by providers you mean something like cinetorrent - then yeah i see why hacks are needed. this is not a torrent tracker! it is just a web site with links. no info about seers/peers (so that's why they added a hack to get number of seeds/peers). search also is awful. it is more like a blog.

so yes, for sites like that - you would need to make a lot of hacks.

but anyway, it is nice that they were able to make it work.

icarok99 commented 7 months ago

what i mean - if those changes are not "hacks" for specific providers but changes that can be useful for all providers - then they could just contribute to burst (and to all its users). but if those changes are "hacks" for specific providers - then i can understand why they keep those changes to themselves.

also i do not know what makes Brazilian providers so special, for example, i added english/russian/bulgarian/arabic/etc providers - have not seen any real difference.

but if by providers you mean something like cinetorrent - then yeah i see why hacks are needed. this is not a torrent tracker! it is just a web site with links. no info about seers/peers (so that's why they added a hack to get number of seeds/peers). search also is awful. it is more like a blog.

so yes, for sites like that - you would need to make a lot of hacks.

but anyway, it is nice that they were able to make it work.

Yes it's a hack all Brazilian providers are the same as the cinetorrent site.

antonsoroko commented 7 months ago

@icarok99 I see. Thanks for info! It is sad that they do not use standard torrent tracker engines.

icarok99 commented 7 months ago

@antonsoroko The filtering option is also interesting. Provider bitseach, Only content results in my language. Screenshot_2024-02-07-11-30-12-820_org xbmc kodi

antonsoroko commented 7 months ago

@icarok99 i do not see any change in code about that. BUT there is standard feature of burst - enable search for titles in your language image

so then obviously you will get results in your language, unless in providers.json it is forced to use original title for tracker.

addon-rajada commented 6 months ago

@antonsoroko There are a lot of hacks to parse from those sites. I didn't expect you guys to apply so many changes in favor of brazilian sites, thats why the fork was created.

I don't see any idea/change here that will improve burst significantly, but if you do see, feel free to port the code back to burst.

About the language preference option, many titles are in pt-PT not pt-BR (or not even translated). Because of this some searches end up failing.

antonsoroko commented 6 months ago

@addon-rajada I see, thanks for info. If at some point you will make some interesting change that can benefit all users - please do not hesitate to create a PR or notify us. Thanks.