elgatito / script.elementum.burst

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

Parse multiple links at subpage #331

Open gabrielchristo opened 1 year ago

gabrielchristo commented 1 year ago

Hello,

I was doing some custom providers and faced this: many websites have multiple magnets at the subpage, often one link for each resolution (1080, 4k, ...)

AFAK, burst.py gets the first matched url (method extract_from_page, line 562). Any chance of add option to return a list of magnets from the subpage?

antonsoroko commented 7 months ago

@elgatito what do you think about this? it looks like many/most Brazilian torrent trackers are not "real" trackers but are simple blogs that post links to torrents. i guess such sites are more friendly to non-technical users, but they are very horrible for machine parsing.

we can return all links, but then - how to identify what each link represents? we need to know resolution, size, seeds/peers, etc.

just curious if you already thought about this.

antonsoroko commented 7 months ago

btw, there is fork that has such change (it returns all links) - https://github.com/addon-rajada/script.elementum.rajada/commit/4cfc886d9eb241b2737c32c3952c222edf97cb05#diff-9a3964ef8b599dbb003fa926f8922c77303c2af2b596d3c09f4aba9ca126db4eR870

but looks like this fork have only specific changes to support those fake trackers. so i am not sure if it makes sense to port those changes back to burst.