elgatito / script.elementum.burst

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

Adding TNTVillage #35

Closed kalika303 closed 6 years ago

kalika303 commented 6 years ago

Hello!

I'm trying to create a provider for TNTVillage (a pretty reliable torrent site in Italy). I definitely need some help. First issue for me is that it uses XMLHttp POST request to search for result.

Once we get the results page, it should be pretty easy, as it is just a table to parse. Here is the site: http://www.tntvillage.scambioetico.org/?releaselist

Can someone help bootstrap the provider? I'm trying to add it to provider.json. Thanks.

kalika303 commented 6 years ago

Is there any other provider with POST requests that I can take as reference? Thanks.

rik91 commented 6 years ago

It seems that there is no parameter for post request in search engine, except for authentification request. :-( And in provider.json, I don't see any other providers which do that...

Possible enhancement ?

elgatito commented 6 years ago

Possible, but currently not implemented. Needs proper post data submission and generation.

mancuniancol commented 6 years ago

The implementation is there, but it is not well documented.
Just add: "post_data" : "{'cat': '0', 'page': '1', 'srcrel': 'QUERY'}", to the definition json of the provider

witsche commented 6 years ago

@mancuniancol is it correct my json? { "TNTVillage": { "anime_extra": "", "anime_keywords": "{title} {episode}", "anime_query": "EXTRA", "base_url": "http://www.tntvillage.scambioetico.org/?releaselist", "color": "FFF14E13", "general_extra": "", "general_keywords": "{title}", "general_query": "EXTRA", "language": null, "login_failed": "", "login_object": "", "login_path": null, "movie_extra": "", "movie_keywords": "{title} {year}", "movie_query": "EXTRA", "name": "TNTVillage", "parser": { "infohash": "", "name": "item('a', order=2)", "peers": "item(tag='td', order=3)", "row": "find_once(tag='body').find_all('tr')", "seeds": "item(tag='td', order=2)", "size": "item(tag='td', order=5)", "torrent": "item(tag='a', attribute='href', order=2)" }, "post_data" : "{'cat': '0', 'page': '1', 'srcrel': 'QUERY'}", "private": false, "season_extra": "", "season_extra2": "", "season_keywords": "{title} Stagione {season:2}", "season_keywords2": "{title} Stagione{season}", "season_query": "EXTRA", "separator": "+", "show_query": "", "subpage": true, "tv_extra": "", "tv_extra2": "", "tv_keywords": "{title} s{season:2}e{episode:2}", "tv_keywords2": "" } } Thanks

mancuniancol commented 6 years ago

No, it is not. Even you base_url is incomplete. :(

mancuniancol commented 6 years ago

I have the right one in my fork. I need to do different pull requests to be integrated here.

witsche commented 6 years ago

@mancuniancol please, can you share your json here?

thanks

LinearLambda commented 6 years ago

For italian users this feature will transform Elementun into the best addon ever, please add TNT as provider!

elgatito commented 6 years ago

Please, try with Burst v0.0.18. TNTVillage added and looks good for searching. Send kudo's to @mancuniancol

LinearLambda commented 6 years ago

Yesterday i tried Burst v0.0.18, i don't understand if is already working or not but from my side is just showing random torrent with no correlation with search text.

witsche commented 6 years ago

for me, like LinearLambda, is the same: no correlation between search text and showed torrent

but I switched on TNTVillage provide and switched off any other provider

andreabisello commented 6 years ago

20180629_232641 Ad you Can see searching for young Sheldon Ita on TNT Village you find not related results

andreabisello commented 6 years ago

Aspected results screenshot_20180629-232834_chrome

andreabisello commented 6 years ago

@kalika303 i don't use http://www.tntvillage.scambioetico.org/src/releaselist.php , i use http://www.tntvillage.scambioetico.org/?releaselist but i see that http://www.tntvillage.scambioetico.org/?releaselist calls http://www.tntvillage.scambioetico.org/src/releaselist.php with post form data parameter, for example

http://www.tntvillage.scambioetico.org/src/releaselist.php

cat: 0
page: 1
srcrel: the 100

this returns the same table you mentioned, but with the same result. due the provider is passing the right parameters, image i think the problem is on the scraper, but i'm not sure, because the elements returned from the query are totally not related with the query.

elgatito commented 6 years ago

I will make a fix on the next week, not earlier.

elgatito commented 6 years ago

Will be fixed in the next version. As well as iscorsanero.

elgatito commented 6 years ago

Please, try v0.0.19

andreabisello commented 6 years ago

@elgatito tntvillage works, thanks. i have to test corsaronero

LinearLambda commented 6 years ago

Dear all,

TNT works, for long search text you need to increase the delay time to don't be timed out.

I want to say thanks you very much for your work @elgatito and all the other users that contribute to improve elementum.

elgatito commented 6 years ago

@LinearLambda @abioneperhobby great.

Feel free to submit proposal for adding more trackers.