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

New provider (Brazil) #121

Open
mvnitro opened this issue May 10, 2019 · 37 comments
Open

New provider (Brazil) #121

mvnitro opened this issue May 10, 2019 · 37 comments

Comments

@mvnitro
Copy link

mvnitro commented May 10, 2019

Please add a provider below, I look for a national provider for the Brazilians due to the audio in Portuguese

http://www.megatorrentshd.org/

is public

I'm trying to figure out how to add cached providers but I'm not aware enough, I'm using a BR + Elementum addon but this BR addon has lots of problems and the elementum alone works great!

@dtc2344
Copy link

dtc2344 commented May 10, 2019

I have checked the website and there doesn't seem to be a way to filter the results, The results would need to be filtered from the addon but it's not possible to do currently in burst.

If you have any other websites you can post them here and i'll take a look at them and if it's possible i'll try to create providers from them.

@mvnitro
Copy link
Author

mvnitro commented May 13, 2019

Thanks for the feedback Danny1990

Is this the link below? in the case I used the term matrix in the search
http://www.megatorrentshd.org/?s=matrix

I also attached the file below taken from another addon BR that uses this site to do streaming it can help
http://www.amsandaimes.com.br/teste/addon.zip

If it does not work, let me know if I can track a private tracker.

@dtc2344
Copy link

dtc2344 commented May 14, 2019

Yeah, If you search for movies that has multiple names such as "the matrix" it will show them all in the results. If the title is unique then it should be ok as long as the website has links. So all the results on "http://www.megatorrentshd.org/?s=matrix" that is what burst will find as you see it has multiple movies including other movies that are not related such as "commando" and "todo-mundo-em-panico-hd-720p" which cannot be filtered from burst without editing the addon but "http://www.megatorrentshd.org/?s=matrix+reloaded" returns the correct results.

Also the website does not have seeders/peers so you won't know if the torrent is good or not until you try to play it. I just used set them to fake values for now just so you get results other wise they may be hidden when burst checks for no seeders.

You can try this, in your kodi "userdata" ( Windows: - %APPDATA%\kodi\userdata - Linux ~/.kodi/userdata ) folder open "script.elementum.burst" then open "providers" ( If providers folder doesn't exist just create it) then create a new text file and name it "providers.json" then copy and paste the code below into the file and save it. You don't need to exit kodi just back out of elementum to kodi home screen then go back in and try to play a movie as normal.

It's best to disable other providers for testing so you can see it working, The code below only works for movies but if you want tv shows just let me know.

{
    "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
    }
}

Note that these providers cannot be disabled from inside kodi, To disable it rename the file ext to something else like ".txt"

I hope that helps.

@mvnitro
Copy link
Author

mvnitro commented May 15, 2019

@Danny1990 I do not know how to thank !!! Thank you so much.

Really the search was not 100% more to use very well! I will be able to set up here the kodi 18.2 + elementum for my wife kk

@Danny1990 could you help me understand the logic as it would apply in other private trackers I tried to add another tracker but did not return any link see the codes below what I am doing wrong

My code

{
    "amigos-share": {
        "enabled": true,
	"private": true,
        "base_url": "https://amigos-share.club/torrents-search.php?search=QUERY",
        "color": "FFF14E13",
        "general_extra": "",
        "general_keywords": "{title:pt}",
        "general_query": "EXTRA",
        "language": "pt",
        "movie_extra": "",
        "movie_keywords": "{title:pt}",
        "movie_query": "EXTRA",
        "name": "amigos-share",
        "language": "pt",
	"login_failed": "Login failed!",
        "login_object": "{'myuser': USERNAME, 'mypassword': PASSWORD}",
        "login_path": "/account-login.php",
        "parser": {
          "infohash": "",
            "name": "item(tag='a', attribute='title', order=2)",
            "peers": "20",
            "row": "find_all('div', select=('class', 'tooltips'), start=1)",
            "seeds": "3",
            "size": "",
            "torrent": "'https://amigos-share.club/' % item(tag='a', attribute='href', order=2)"
        },
        "separator": "+",
        "show_query": "",
        "subpage": true
    }
}

print

I need to learn more about html but if you can help me I want to learn how to add the trackers alone who knows I add more tracker to my private ones

I am sending the print of the code because I could not copy the same

@dtc2344
Copy link

dtc2344 commented May 15, 2019

I have not made any private trackers myself so i'm not sure but i think the problem maybe you are entering your username and password in the json file but it expects the attribute name from the input tag

<input type="text" pattern="^[_A-z0-9]{1,}$" maxlength="15" placeholder="Login" id="username" name="username" class="form-control" required="">
<input type="password" placeholder="Senha" id="password" name="password" class="form-control" required="">

I think maybe it should be this?

"login_object": "{'username': USERNAME, 'password': PASSWORD}",
And your username and password goes inside "settings.xml"

Example

<setting id="amigoshare_username" value="" />
<setting id="amigoshare_password" value="" />

The "amigo" must match the name of the provider but i don't think it will work with - or multiple of _. You would need to remove the - from "amigos-share".

You also may need to add the hidden tags too, but i don't know if you can add custom hidden values.

<input type="hidden" name="returnto" value="/">

If the website doesn't check the hidden values it should work.

Again i'm not 100% sure but you can try it.

@mvnitro
Copy link
Author

mvnitro commented May 15, 2019

Okay, thanks, Danny, I'll take a look at it later.

@dtc2344
Copy link

dtc2344 commented May 15, 2019

I had a look at some other providers that are using custom values so it should be possible to add the hidden tag.

"login_object": "{'username': USERNAME, 'password': PASSWORD, 'returnto': '/'}",

@mvnitro
Copy link
Author

mvnitro commented May 15, 2019

Danny

was giving a read and it seems that the password and the login must be placed manually in login_object

https://quasar-burst.readthedocs.io/en/latest/adding_providers.html#private-providers

I think the quasar burst is equal to the elementum

login_object
The login_object represents the form elements sent to the login_path. For built-in private providers, placeholders are used to replace setting values for the username and password (USERNAME and PASSWORD respectively). Custom providers can not define new settings, and must therefore put the username and password in the login_object directly.

@dtc2344
Copy link

dtc2344 commented May 15, 2019

Ah ok thanks Do you have it working now?

@mvnitro
Copy link
Author

mvnitro commented May 16, 2019

@Danny1990 I am confused I do not know if the login was and now it is giving problem in the parser, inside the kodi is returning that found the provider but did not return any link, it follows a part of the log

2019-05-16 07:41:57.638 T:5340  NOTICE: [script.elementum.burst] Burstin' with amigosshare
2019-05-16 07:41:57.671 T:4008   DEBUG: ------ Window Init (DialogExtendedProgressBar.xml) ------
2019-05-16 07:41:57.672 T:1236   DEBUG: [script.elementum.burst] Processing amigosshare with general method
2019-05-16 07:41:57.672 T:1236   DEBUG: CSettingsManager: requested setting (filter_music) was not found.
2019-05-16 07:41:57.673 T:5340   DEBUG: [script.elementum.burst] Timer: 0s / 28s
2019-05-16 07:41:57.673 T:1236   DEBUG: CSettingsManager: requested setting (amigosshare_alias) was not found.
2019-05-16 07:41:57.673 T:1236   DEBUG: [script.elementum.burst] General URL: https://amigos-share.club/torrents-search.php?search=QUERYEXTRA
2019-05-16 07:41:57.673 T:1236   DEBUG: [script.elementum.burst] execute_process for amigosshare with <function extract_torrents at 0x0000000010DCB278>
2019-05-16 07:41:57.674 T:1236   DEBUG: CSettingsManager: requested setting (amigosshare_alias) was not found.
2019-05-16 07:41:57.678 T:1236   DEBUG: CAddonSettings[plugin.video.elementum]: loading setting definitions
2019-05-16 07:41:57.678 T:1236   DEBUG: CAddonSettings[plugin.video.elementum]: trying to load setting definitions from old format...
2019-05-16 07:41:57.682 T:1236   DEBUG: CAddonSettings[plugin.video.elementum]: loading setting values
2019-05-16 07:41:57.685 T:1236   DEBUG: [script.elementum.burst] [amigosshare] Queries: [u'{title:pt}']
2019-05-16 07:41:57.685 T:1236   DEBUG: [script.elementum.burst] [amigosshare] Extras:  [u'']
2019-05-16 07:41:57.685 T:1236   DEBUG: [script.elementum.burst] [amigosshare] Before keywords - Query: u'{title:pt}' - Extra: u''
2019-05-16 07:41:57.686 T:1236   DEBUG: [script.elementum.burst] [amigosshare] After keywords  - Query: 'matrix' - Extra: ''
2019-05-16 07:41:57.686 T:1236   DEBUG: [script.elementum.burst] -   amigosshare query: 'matrix'
2019-05-16 07:41:57.686 T:1236   DEBUG: [script.elementum.burst] --  amigosshare url_search before token: u'https://amigos-share.club/torrents-search.php?search=matrix'
2019-05-16 07:41:57.686 T:1236   DEBUG: [script.elementum.burst] --- amigosshare using POST payload: {}
2019-05-16 07:41:57.687 T:1236   DEBUG: [script.elementum.burst] ----amigosshare filtering with post_data: {}
2019-05-16 07:41:57.687 T:1236   DEBUG: CSettingsManager: requested setting (amigosshare_username) was not found.
2019-05-16 07:41:57.687 T:1236   DEBUG: CSettingsManager: requested setting (amigosshare_password) was not found.
2019-05-16 07:41:57.687 T:1236   DEBUG: CSettingsManager: requested setting (amigosshare_passkey) was not found.
2019-05-16 07:41:57.687 T:1236   ERROR: EXCEPTION: Unknown addon id 'script.magnetic.amigosshare'.
2019-05-16 07:41:57.687 T:1236   ERROR: Previous line repeats 1 times.
2019-05-16 07:41:57.687 T:1236   ERROR: EXCEPTION: Unknown addon id 'script.magnetic.amigosshare-mc'.
2019-05-16 07:41:57.687 T:1236   ERROR: Previous line repeats 1 times.
2019-05-16 07:41:57.687 T:1236   DEBUG: [script.elementum.burst] Opening URL: 'https://amigos-share.club/account-login.php'
2019-05-16 07:41:57.687 T:1236   DEBUG: [script.elementum.burst] Proxies: {'http': u'http://192.168.1.12:65222', 'https': u'http://192.168.1.12:65222'}
2019-05-16 07:41:57.694 T:1236   DEBUG: [script.elementum.burst] Cookies for 'https://amigos-share.club/account-login.php': <LWPCookieJar[Cookie(version=0, name='__cfduid', value='d46350a42a4fc35c55e5ddc69110435351557853877', port=None, port_specified=False, domain='.1337x.to', domain_specified=True, domain_initial_dot=True, path='/', path_specified=True, secure=True, expires=1589389877, discard=False, comment=None, comment_url=None, rest={'HttpOnly': 'None'}, rfc2109=False), Cookie(version=0, name='__cfduid', value='d80244fb0120371a8e1c7ad402fe522ea1557855130', port=None, port_specified=False, domain='.amigos-share.club', domain_specified=True, domain_initial_dot=True, path='/', path_specified=True, secure=True, expires=1589391130, discard=False, comment=None, comment_url=None, rest={'HttpOnly': 'None'}, rfc2109=False), Cookie(version=0, name='__cfduid', value='ddb8512cb45c5db7d98d61ffecd131e501557853873', port=None, port_specified=False, domain='.megatorrentshd.org', domain_specified=True, domain_initial_dot=True, path='/', path_specified=True, secure=False, expires=1589389873, discard=False, comment=None, comment_url=None, rest={'HttpOnly': 'None'}, rfc2109=False), Cookie(version=0, name='__cfduid', value='d8b93132e4c1ffa47714d4e7a4078a4161557938906', port=None, port_specified=False, domain='.torlock2.com', domain_specified=True, domain_initial_dot=True, path='/', path_specified=True, secure=True, expires=1589474906, discard=False, comment=None, comment_url=None, rest={'HttpOnly': 'None'}, rfc2109=False), Cookie(version=0, name='__cfduid', value='dd2490dd6d478fd35077310558b2c6b0f1557945361', port=None, port_specified=False, domain='.torrentapi.org', domain_specified=True, domain_initial_dot=True, path='/', path_specified=True, secure=False, expires=1589481361, discard=False, comment=None, comment_url=None, rest={'HttpOnly': 'None'}, rfc2109=False)]>
2019-05-16 07:41:57.824 T:6084  NOTICE: [plugin.video.elementum] DEBU  proxy        ▶ dumpRequest      [6] --> POST https://amigos-share.club:443/account-login.php
2019-05-16 07:41:57.924 T:5340   DEBUG: [script.elementum.burst] Timer: 0s / 28s
2019-05-16 07:41:58.490 T:6084   DEBUG: Previous line repeats 2 times.
2019-05-16 07:41:58.490 T:6084  NOTICE: [plugin.video.elementum] DEBU  proxy        ▶ dumpResponse     [6] <-- 200 https://amigos-share.club:443/account-login.php
2019-05-16 07:41:58.500 T:1236   DEBUG: [script.elementum.burst] Status for 'https://amigos-share.club/account-login.php' : 200
2019-05-16 07:41:58.501 T:1236  NOTICE: [script.elementum.burst] [amigosshare] Login successful
2019-05-16 07:41:58.501 T:1236  NOTICE: [script.elementum.burst] >          amigosshare search URL: https://amigos-share.club/torrents-search.php?search=matrix
2019-05-16 07:41:58.501 T:1236   DEBUG: [script.elementum.burst] Opening URL: 'https://amigos-share.club/torrents-search.php?search=matrix'
2019-05-16 07:41:58.501 T:1236   DEBUG: [script.elementum.burst] Proxies: {'http': u'http://192.168.1.12:65222', 'https': u'http://192.168.1.12:65222'}
2019-05-16 07:41:58.509 T:1236   DEBUG: [script.elementum.burst] Cookies for 'https://amigos-share.club/torrents-search.php?search=matrix': <LWPCookieJar[Cookie(version=0, name='__cfduid', value='d46350a42a4fc35c55e5ddc69110435351557853877', port=None, port_specified=False, domain='.1337x.to', domain_specified=True, domain_initial_dot=True, path='/', path_specified=True, secure=True, expires=1589389877, discard=False, comment=None, comment_url=None, rest={'HttpOnly': 'None'}, rfc2109=False), Cookie(version=0, name='__cfduid', value='d80244fb0120371a8e1c7ad402fe522ea1557855130', port=None, port_specified=False, domain='.amigos-share.club', domain_specified=True, domain_initial_dot=True, path='/', path_specified=True, secure=True, expires=1589391130, discard=False, comment=None, comment_url=None, rest={'HttpOnly': 'None'}, rfc2109=False), Cookie(version=0, name='__cfduid', value='ddb8512cb45c5db7d98d61ffecd131e501557853873', port=None, port_specified=False, domain='.megatorrentshd.org', domain_specified=True, domain_initial_dot=True, path='/', path_specified=True, secure=False, expires=1589389873, discard=False, comment=None, comment_url=None, rest={'HttpOnly': 'None'}, rfc2109=False), Cookie(version=0, name='__cfduid', value='d8b93132e4c1ffa47714d4e7a4078a4161557938906', port=None, port_specified=False, domain='.torlock2.com', domain_specified=True, domain_initial_dot=True, path='/', path_specified=True, secure=True, expires=1589474906, discard=False, comment=None, comment_url=None, rest={'HttpOnly': 'None'}, rfc2109=False), Cookie(version=0, name='__cfduid', value='dd2490dd6d478fd35077310558b2c6b0f1557945361', port=None, port_specified=False, domain='.torrentapi.org', domain_specified=True, domain_initial_dot=True, path='/', path_specified=True, secure=False, expires=1589481361, discard=False, comment=None, comment_url=None, rest={'HttpOnly': 'None'}, rfc2109=False), Cookie(version=0, name='PHPSESSID', value='nt5hl08uicnlts1n6sc1m7peg7', port=None, port_specified=False, domain='amigos-share.club', domain_specified=False, domain_initial_dot=False, path='/', path_specified=True, secure=False, expires=None, discard=True, comment=None, comment_url=None, rest={}, rfc2109=False)]>
2019-05-16 07:41:58.674 T:5340   DEBUG: [script.elementum.burst] Timer: 1s / 28s
2019-05-16 07:41:58.865 T:6084  NOTICE: [plugin.video.elementum] DEBU  proxy        ▶ dumpRequest      [8] --> GET https://amigos-share.club:443/torrents-search.php?search=matrix
2019-05-16 07:41:58.924 T:5340   DEBUG: [script.elementum.burst] Timer: 1s / 28s
2019-05-16 07:41:59.179 T:6084   DEBUG: Previous line repeats 1 times.
2019-05-16 07:41:59.179 T:6084  NOTICE: [plugin.video.elementum] DEBU  proxy        ▶ dumpResponse     [8] <-- 200 https://amigos-share.club:443/torrents-search.php?search=matrix
2019-05-16 07:41:59.188 T:1236   DEBUG: [script.elementum.burst] Status for 'https://amigos-share.club/torrents-search.php?search=matrix' : 200
2019-05-16 07:41:59.188 T:1236   DEBUG: [script.elementum.burst] [amigosshare] Accepted resolutions: ['filter_480p', 'filter_720p', 'filter_1080p', 'filter_2k', 'filter_4k']
2019-05-16 07:41:59.188 T:1236   DEBUG: [script.elementum.burst] [amigosshare] Accepted release types: [u'480[p\u0440]', u'xvid|dvd|dvdrip|hdtv|web\\-(dl)?rip|iptv|sat\\-?rip|tv\\-?rip', u'720[p\u0440]|1280x720', u'hd720p?|hd\\-?rip|b[rd]rip', u'1080[pi\u0440]|1920x1080', u'hd1080p?|fullhd|fhd|blu\\W*ray|bd\\W*remux', u'1440[p\u0440]', u'2k', u'4k|2160[p\u0440]|uhd', u'4k|hd4k', u'hd\\-?tv', u'dvd|dvd\\-?rip|vcd\\-?rip', u'screener|scr', u'web_?\\-?dl|web\\-?rip|dl\\-?rip|yts', u'dvd\\-?scr', u'hd\\-?rip', u'iptv\\-?rip', u'tv\\-?rip|sat\\-?rip', u'brrip|bd\\-?rip|blu\\-?ray|bd\\-?remux']
2019-05-16 07:41:59.189 T:1236   DEBUG: [script.elementum.burst] [amigosshare] Blocked release types: [u'3d', u'workprint', u'trailer|\u0442\u0440\u0435\u0439\u043b\u0435\u0440|\u0442\u0438\u0437\u0435\u0440', u'cam|hd\\-?cam', u'vhs\\-?rip', u'line', u'telesync|ts|tc']
2019-05-16 07:41:59.189 T:1236   DEBUG: [script.elementum.burst] [amigosshare] Minimum size: 0.0 GB
2019-05-16 07:41:59.189 T:1236   DEBUG: [script.elementum.burst] [amigosshare] Maximum size: 100.0 GB
2019-05-16 07:41:59.189 T:1236   DEBUG: CSettingsManager: requested setting (amigosshare_alias) was not found.
2019-05-16 07:41:59.189 T:1236   DEBUG: Previous line repeats 1 times.
2019-05-16 07:41:59.189 T:1236   DEBUG: [script.elementum.burst] Extracting torrents from amigosshare using definitions: {u'show_query': u'', u'movie_extra': u'', u'color': u'FFF14E13', u'parser': {u'peers': u'20', u'name': u"item(tag='img', attribute='alt', order=1)", u'seeds': u'3', u'row': u"find_all('div', select=('class', 'peli'), start=1)", u'infohash': u'', u'torrent': u"item(tag='a', attribute='href', order=1)", u'size': u''}, u'private': True, u'general_query': u'EXTRA', 'id': '', 'predefined': False, 'root_url': u'https://amigos-share.club', 'alias': '', 'response_charset': None, 'charset': 'utf8', u'base_url': u'https://amigos-share.club/torrents-search.php?search=QUERY', 'custom': True, 'languages': '', u'movie_keywords': u'{title:pt}', u'movie_query': u'EXTRA', u'login_object': u"{'username': USERNAME, 'password': PASSWORD}", u'subpage': True, u'general_keywords': u'{title:pt}', u'name': u'amigosshare', u'language': u'pt', u'enabled': True, u'general_extra': u'', u'login_failed': u'Login failed!', u'separator': u'+', u'login_path': u'/account-login.php'}
2019-05-16 07:41:59.189 T:1236   DEBUG: [script.elementum.burst] >>>>>> amigosshare would send 0 torrents to Elementum <<<<<<<
2019-05-16 07:41:59.194 T:1236   DEBUG: CSettingsManager: requested setting (amigosshare_alias) was not found.
2019-05-16 07:41:59.194 T:1236  NOTICE: [script.elementum.burst] >>         amigosshare returned  0 results in 1.6 seconds
2019-05-16 07:41:59.424 T:5340   DEBUG: [script.elementum.burst] all provider_results: []
2019-05-16 07:41:59.424 T:5340   DEBUG: [script.elementum.burst] Filtered results: []
2019-05-16 07:41:59.424 T:5340   DEBUG: [script.elementum.burst] all filtered_results: []
2019-05-16 07:41:59.424 T:5340  NOTICE: [script.elementum.burst] Providers returned 0 results in 1.79 seconds
2019-05-16 07:41:59.428 T:6084  NOTICE: [plugin.video.elementum] [GIN] 2019/05/16 - 07:41:59 | 200 |            0s |       127.0.0.1 | POST     /callbacks/104483616716863065
2019-05-16 07:41:59.429 T:5340   DEBUG: [script.elementum.burst] callback returned: 200
2019-05-16 07:41:59.429 T:5340    INFO: CPythonInvoker(10, C:\Users\Marcos\AppData\Roaming\Kodi\addons\script.elementum.burst\burst.py): script successfully run
2019-05-16 07:41:59.429 T:5340   DEBUG: CPythonInvoker::onExecutionDone(10, C:\Users\Marcos\AppData\Roaming\Kodi\addons\script.elementum.burst\burst.py)
2019-05-16 07:41:59.495 T:5340    INFO: Python interpreter stopped

@mvnitro
Copy link
Author

mvnitro commented May 16, 2019

@elgatito Good afternoon can you help us ?

basically I want to add the provider amigos-share and we are in doubt where to put the username and password

@dtc2344
Copy link

dtc2344 commented May 16, 2019

The login is working, I was looking on the wrong line lol.

[script.elementum.burst] [amigosshare] Login successful

You are using the same parser code i gave for for megatorrentshd that won't work for this website.

Can you search for a movie and copy the HTML and post it to pastebin and post the link here.

@elgatito
Copy link
Owner

@mvnitro

basically I want to add the provider amigos-share and we are in doubt where to put the username and password

If you add provider through overrides file, you can only enter login/password in that file, because Kodi will not give you settings for defining that.

Adding provider to providers.json is bad, because on next plugin update that file will be overwritten and you will lose all the changes.

Best way is to add provider and PR the change to include in the next version.

Do you have other torrent websites, that can be added?

@mvnitro
Copy link
Author

mvnitro commented May 17, 2019

Good Morning @Danny1990

Follow link I copy all the content of this part of the research I believe that is the most important to be able to mount the parser

https://pastebin.com/gHk9eLGc

image

@mvnitro
Copy link
Author

mvnitro commented May 17, 2019

@mvnitro

basicamente eu quero adicionar o provedor amigos-share e ficamos com dúvidas onde colocar o nome de usuário e senha

Se você adicionar provedor por meio de overridesarquivo, só poderá inserir login / senha nesse arquivo, porque o Kodi não fornecerá configurações para defini-lo.

Adicionando provedor para providers.jsoné ruim, porque na próxima atualização do plugin que o arquivo será substituído e você perderá todas as alterações.

A melhor maneira é adicionar provedor e PR a mudança para incluir na próxima versão.

Você tem outros sites de torrent, que podem ser adicionados?

Good Morning @elgatito
So among the temporary options the best would be to put the data in the file overrides.json in the \ Kodi \ userdata \ addon_data \ script.elementum.burst
Instead of putting the providers.json file in the \ Kodi \ userdata \ addon_data \ script.elementum.burst \ providers folder
So I avoid losing the provider when there is update of the plugin, correct?

Well I'll wait for Danny to help me make the provider work then it would be great if you could put it directly into the plugin natively at least one Brazilian provider would be great for us due to the dubbed and national content

Of those I have knowledge and access are;

http://megatorrentshd.org - This is public I've seen other addon BR use it so I told Danny to help me configure it.

https://amigos-share.club - This is private has a better and more organized content.

https://filewarez.tv/ - This is one of the best here in Brazil but I am without access, my friend stayed to send an invitation this week to me

@dtc2344
Copy link

dtc2344 commented May 18, 2019

I found an other website that looks similar https://friends-share.me/

But the search page will not load any results if you try to make a simple GET request because it requires an XMLHttpRequest which i cannot send.

DEBUG: [script.elementum.burst] [FRIENDS_SHARE] Parser debug | Page content is empty
{
    "FRIENDS_SHARE": {
        "root_url": "https://friends-share.me",
        "base_url": "https://friends-share.me/ajax_torr_pes.php",
        "post_data": "{'search': 'QUERY', 'cat': '0', 'search_in': 'titles', 'termos': 'exata', 'incldead': '1','freeleech': '1', 'number': '20', 'order': '', 'cat': 'null', 'offset': '0', 'number': '20', 'action': 'scrollpagination'}",
        "private": true,
        "enabled": true,
        "language": "pt",
        "login_failed": "Senha incorreta",
        "login_object": "{'username': 'YOUR_USERNAME_HERE', 'password': 'YOUR_PASSWORD_HERE', 'returnto': '/index.php'}",
        "login_headers": "{'Origin': 'https://friends-share.me', 'Referer': 'https://friends-share.me/account-login.php?returnto=%2Findex.php'}",
        "login_path": "https://friends-share.me/account-login.php",
        "color": "FFF14E13",
        "general_extra": "",
        "general_keywords": "{title:original} {year}",
        "general_query": "EXTRA",
        "movie_extra": "",
        "movie_keywords": "{title:original} {year}",
        "movie_query": "EXTRA",
        "season_keywords": "{title:original} - S{season:2}",
        "season_query": "",
        "tv_keywords": "{title:original} - S{season:2}E{episode:2}",
        "tv_query": "EXTRA",
        "tv_extra": "",
        "parser": {
            "row": "find_all('li', select=('class', 'listitem'), start=1)",
            "name": "item(tag='b', order=8)",
            "size": "item(tag='div', order=11)",
            "seeds": "item(tag='b', order=11)",
            "peers": "item(tag='b', order=13)",
            "torrent": "item(tag='a', attribute='href', order=3)"
        },
        "separator": "+",
        "show_query": "",
        "subpage": false
    }
}

If amigo-share.club is the same then it won't work too.

It's difficult for me to find any torrent websites for Brazil they either need an invite code or they are no longer working. I found this https://torrentinvites.org/f31/brazilian-police-shut-down-private-torrent-site-operation-copyright-512291/ so that maybe the reason why.

@mvnitro
Copy link
Author

mvnitro commented May 20, 2019

Good Morning @Danny1990

Really this site https://friends-share.me/ is similar to http://amigos-share.club because Amigos is the translation of friends but they are not the same site

About the invitation policy really the trackers are very afraid and beware against the authorities.

I can pass my login or send you an invitation from the site http://amigos-share.club, I searched but I think gitub does not allow sending private messages, could you send me an email to return with login and password?

My email: [email protected]

@dtc2344
Copy link

dtc2344 commented May 21, 2019

I will send you an email so you can send the invite code too.

@Tiagocolbyodonis
Copy link

Tiagocolbyodonis commented Jul 4, 2019

Yeah, If you search for movies that has multiple names such as "the matrix" it will show them all in the results. If the title is unique then it should be ok as long as the website has links. So all the results on "http://www.megatorrentshd.org/?s=matrix" that is what burst will find as you see it has multiple movies including other movies that are not related such as "commando" and "todo-mundo-em-panico-hd-720p" which cannot be filtered from burst without editing the addon but "http://www.megatorrentshd.org/?s=matrix+reloaded" returns the correct results.

Also the website does not have seeders/peers so you won't know if the torrent is good or not until you try to play it. I just used set them to fake values for now just so you get results other wise they may be hidden when burst checks for no seeders.

You can try this, in your kodi "userdata" ( Windows: - %APPDATA%\kodi\userdata - Linux ~/.kodi/userdata ) folder open "script.elementum.burst" then open "providers" ( If providers folder doesn't exist just create it) then create a new text file and name it "providers.json" then copy and paste the code below into the file and save it. You don't need to exit kodi just back out of elementum to kodi home screen then go back in and try to play a movie as normal.

It's best to disable other providers for testing so you can see it working, The code below only works for movies but if you want tv shows just let me know.

{
    "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
    }
}

Note that these providers cannot be disabled from inside kodi, To disable it rename the file ext to something else like ".txt"

I hope that helps.

@ danny1990 Could you help me create a site provider https://www.baixarfilmetorrent.net/ I tried but I do not get any results.

@dtc2344
Copy link

dtc2344 commented Jul 9, 2019

Movies and TV shows pages are different so we can only scrape one or the other, We would need to create a providers for each of them.

The results does not contain the amount of peers or seeds so i have set them to 1.

This will only scrape movies.

{
  "baixarfilmetorrent": {
    "base_url": "https://baixarfilmetorrent.net/QUERY",
    "color": "FFF14E13",
    "general_extra": "",
    "general_keywords": "{title:br} torrent dublado e legendado",
    "general_query": "EXTRA",
    "language": "br",
    "login_failed": "",
    "login_object": "",
    "login_path": null,
    "movie_extra": "",
    "movie_keywords": "{title:br} torrent dublado e legendado",
    "movie_query": "EXTRA",
    "name": "BaixarFilmeTorrent",
    "parser": {
      "row": "find_once('table', select=('class', 'tbl-mv-list'), order=1)",
      "name": "'%s %s %s' % (item(tag='th').replace('Baxar ', '').replace(' Torrent', ''), item(tag='td', select=('class', 'td-ep-eps'), order=1), item(tag='td', select=('class', 'td-mv-res'), order=1))",
      "peers": "1",
      "seeds": "1",
      "size": "item(tag='td', select=('class', 'td-mv-tam'), order=1).replace(',', '.')",
      "torrent": "item(tag='a', attribute='href', order=1)",
      "infohash": ""
    },
    "separator": "+",
    "show_query": "",
    "subpage": null
    }
}

If you have any problems let me know.

@Tiagocolbyodonis
Copy link

@ danny1990 You have to prioritize 1080p movies instead of 720 and a last scraping request for the series. If you can not, thank you very much for the help.

@Tiagocolbyodonis
Copy link

@ danny1990 I managed to scrape the 1080p and 720p resolutions thank you very much for showing me the way. My last request is with series help if you can help me.

@dtc2344
Copy link

dtc2344 commented Jul 13, 2019

No problem, I'm not at home right now but I will do that later. If you know any other websites post them here and I'll take a look at them.

@dtc2344
Copy link

dtc2344 commented Jul 13, 2019

Elementum/Burst does the prioritising itself which i think is based on the seeders and quality of the torrent but the baixarfilmetorrent.net does not contain the number of seeders it just has a blank value burst filters out torrents that do not have any seeders and no results will show so i just set it to 1 so that all results are shown.

TV shows on baixarfilmetorrent.net cannot filtered by episode the only way is by the season. I have had to ignore a lot of data to get results. It should find complete torrents that contain the episodes and elementum will handle playing the correct episode.

I cannot scrape the title from the webpage but i have set it to show the audio type (Subtitled, Dual Audio, ...) and the quality if it finds any torrents. There is a problem with elementum and large torrents it seems ignore some torrents that have big file sizes and so i have ignored the file size.

{
  "baixarfilmetorrent_tvshows": {
    "base_url": "https://baixarfilmetorrent.net/QUERY",
    "color": "FFF14E13",
    "general_extra": "",
    "general_keywords": "",
    "general_query": "EXTRA",
    "movie_extra": "",
    "movie_keywords": "",
    "movie_query": "EXTRA",
    "language": "br",
    "login_failed": "",
    "login_object": "",
    "login_path": null,
    "season_keywords": "{title:br} {season}a temporada completa torrent legendada",
    "season_keywords2": "{title:br} {season}a temporada completa torrent legendada",
    "season_extra": "",
    "season_extra2": "",
    "season_query": "EXTRA",
    "tv_extra": "",
    "tv_extra2": "",
    "tv_keywords": "{title:br} {season}a temporada completa torrent legendada",
    "tv_keywords2": "{title:br} {season}a temporada completa torrent legendada",
    "name": "BaixarFilmeTorrent",
    "parser": {
      "row": "find_once(tag='table', select=('class', 'tbl-tp-list')).find_all(tag='tr')",
      "name": "'%s %s' % (item(tag='td', select=('class', 'td-tp-aud')), item(tag='td', select=('class', 'td-tp-res'), order=1))",
      "peers": "1",
      "seeds": "1",
      "size": "",
      "torrent": "item(tag='a', attribute='href', order=1)",
      "infohash": ""
    },
    "separator": "+",
    "show_query": "",
    "subpage": null
    }
}

I tried the websites you provided bludv.tv is using a packer and thepiratefilmeshd.biz is way too complicated to scrape there is not enough unique elements on the page to get a match for the movie/tvshow you're searching for.

Many Brazilian/Portuguese torrents sites are difficult to create providers for because they require a lot more filtering than can be done within the json file.

If you are struggling to find torrents with dual audio or embedded subtitles there is addons available that will look for subtitles automatically so that you can use other providers.

@Tiagocolbyodonis
Copy link

Thanks friend for the help in the case of dual audio is because of the 5.1 Portuguese channels which is difficult to find in other addons.

@Tiagocolbyodonis
Copy link

Tiagocolbyodonis commented Jul 13, 2019

@ danny1990 I saw that you did the scraping of films pro website http://www.megatorrentshd.org would have to do the scraping of series if it is very complicated and give a lot of work lets there.

@Dhionatha6
Copy link

Dhionatha6 commented Jul 25, 2019

Tiagolbyodonis you can send the addon to me?

@Tiagocolbyodonis
Copy link

Dhionatha6 Sorry for the delay in answering the problem is that the addon is logging error while choosing the source of the movie must have changed something on the sites and I do not know how to fix it.

@Dhionatha6
Copy link

danny1990 You can make a provider of https://www.comandotorrents.com/ and https://hidratorrent.com/ if possible. I would be very grateful.

@elgatito
Copy link
Owner

Providers can be added to Burst, but there are requirements for providers, like normal search functionality, and showing number of peers and a size of a torrent.

@dtc2344
Copy link

dtc2344 commented Jul 30, 2019

Sorry guys i've been a little busy lately.

@Dhionatha6 I will take at look at those websites thanks, As elgatito said new providers must meet requirements and work properly but unfortunately many of the websites are difficult to create working providers for because they either cannot be filtered to find correct results or they lack the information needed such as the torrent information ( Seeds/Peers/Size ). The providers i've posted are to be used as custom providers only they will return the results found on the webpage but i cannot guarantee they will be the result you wanted, 9/10 it will get the correct result but sometimes it may return the wrong movie. Please take care with the results always check the movie by playing it alone to make sure it is what you wanted.

@Tiagocolbyodonis Is there somewhere else we can discuss that addon? I'm happy to help but we cannot discuss other addons here.

@Tiagocolbyodonis
Copy link

Unfortunately the creator has not stopped support, but if you can get some success fixing a site inside the addon is of great help. If you can let me know by email and thanks again for your help.

@Dhionatha6
Copy link

Dhionatha6 commented Jul 31, 2019

I will test the addon

@RokSiEu
Copy link

RokSiEu commented Oct 31, 2019

@Danny1990 @elgatito are you available for checking one private tracker if you can parse it?
All data is available on one page like title, torrent link icon, seeders, leechers, size...
How can I contact you?

@elgatito
Copy link
Owner

@RokSiEu you can open the issue for adding new provider. Write link, provide account or invite.

@antonsoroko
Copy link
Contributor

all links are dead. this can be closed.

@icarok99
Copy link

icarok99 commented Feb 6, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants