seanwlk / synology-rarbg-dlm

Synology DLM file for RARBG Torrent search made for Download station
GNU General Public License v3.0
6 stars 1 forks source link

plugin won't work #2

Open Alex3thy opened 11 months ago

Alex3thy commented 11 months ago

I am trying to create my own plugin but I am a total noob to be honest. Can you please update the one you have with this link for rarbg https://www2.rarbggo.to/.

Thanks

seanwlk commented 11 months ago

Change line 7 and 78 here https://github.com/seanwlk/synology-rarbg-dlm/blob/main/search.php You might have to refresh cookies as well

Alex3thy commented 11 months ago

Hello and thanks for the quick reply,

Ok, I can change them, but how I can create my own .dlm file after the changes?

seanwlk commented 11 months ago

run pack.sh the dlm package is essentially an archive. If you are on windows try winrar or 7zip idk never used those for these things.

PS take note that this proxy has different endpoints, like torrent.php is /search https://www2.rarbggo.to/search/?search=avengers&order=seeders&by=DESC

Alex3thy commented 11 months ago

OK, I will give it a try and I will let you know.

The https://www2.rarbggo.to/search/?search=avengers&order=seeders&by=DESC is for the line 78?

seanwlk commented 11 months ago

L7 private $host_url = 'https://www2.rarbggo.to/search'; L78 return "http://www2.rarbggo.to".$aTag;

Eiher way i saw that this proxy changed the template from the original and the html parser won't work either. You should fix that too. L41-44

    $rows = $tables->item(8)->getElementsByTagName('tr'); // bound to table number 8, should find a way to xpath
    $data = $rows->item(0)->getElementsByTagName('a');
    $magnetLink = $data->item(1)->getAttribute('href');
    return $magnetLink;