i96751414 / script.flix.magneto

Provider for Flix, using Torrest
4 stars 1 forks source link

[Enhancement] Allow getting multiple results from additional parsers #17

Closed icarok99 closed 7 months ago

icarok99 commented 7 months ago

With this improvement it will be possible to acquire several magnet links from a single page and it will be possible to use providers that have several magnet links on a single page.

i96751414 commented 7 months ago

This has been implemented and tested. I believe we can close this one.

icarok99 commented 7 months ago

@i96751414 It didn't work as expected, there needs to be a subpage option and a method to scrape the subpage.

icarok99 commented 7 months ago

@i96751414 It didn't work as expected, there needs to be a subpage option and a method to scrape the subpage.

This way you will get several magnet links from the subpage

i96751414 commented 7 months ago

What you mean? That's exactly what it is doing. Please have a look at the example I provided here: https://github.com/i96751414/script.flix.magneto/issues/11#issuecomment-1958036425

icarok99 commented 7 months ago

What you mean? That's exactly what it is doing. Please have a look at the example I provided here: # 11 (comment)

I used this example and it didn't work.

icarok99 commented 7 months ago

Screenshot_2024-02-29-16-44-28-447_org xbmc kodi

Screenshot_2024-02-29-16-44-55-954_pl solidexplorer2

i96751414 commented 7 months ago

Are you sure you are using the latest version of the addon?

icarok99 commented 7 months ago

Are you sure you are using the latest version of the addon?

Yes, I'm using the latest version

icarok99 commented 7 months ago

I just checked with another film and it seems that not everyone has only 1 result.

Screenshot_2024-02-29-17-02-34-796_org xbmc kodi

i96751414 commented 7 months ago

Ok, I found the problem. The scraper is working just fine, but that the Provider is filtering out base32 results.

i96751414 commented 7 months ago

Fixed, now supporting base32 info hashes as well: 7557dbfdea59a6ce9b81fc0573214ba5ec0b84c4

I assume that the website you were scraping were using base32 hashes

icarok99 commented 7 months ago

@i96751414 Is there any way I can use this style of parser?


            "infohash": "",
            "name": "item('h1', order=1)",
            "peers": "",
            "row": "find_all('div', ('class','box-filme-item'))",
            "seeds": "",
            "size": "",
            "torrent": "item(tag='a', attribute='href', order=1)"
        },
icarok99 commented 7 months ago

I find it more simplified and easier to add providers

i96751414 commented 7 months ago

No. This uses python's builtin xpath support. I'm not sure what are those expressions to be honest

icarok99 commented 6 months ago

@i96751414 https://github.com/elgatito/script.elementum.burst/tree/master/burst/parser

IMG_20240312_172642