Coder Social home page Coder Social logo

Fix for torrentz2.eu about simple-torrent HOT 6 CLOSED

boypt avatar boypt commented on August 19, 2024
Fix for torrentz2.eu

from simple-torrent.

Comments (6)

boypt avatar boypt commented on August 19, 2024

thanks for the fix.

the config was put in a gist is because the changes were very often at the beginning, now I think moving it back the the main repo is better.

The scraper module was written by the original author of cloud-torrent, the scraper config has no document at all. I make the scraper json URL configurable as ScraperURL. Will be available next version.

from simple-torrent.

msberends avatar msberends commented on August 19, 2024

Wow, you’re fast! That’s awesome!! Many thanks!

from simple-torrent.

msberends avatar msberends commented on August 19, 2024

Strange, it’s still not right in version 1.2.2, it shows the second page and not the first one.

To verify: search for “Ubuntu” in SimpleTorrent. Then open a browser, open torrentz2.eu and search for “Ubuntu” there. If you now click on ‘Next page’ you’ll see the results that SimpleTorrent shows (so: page 2). I’ll look into it tonight.

from simple-torrent.

boypt avatar boypt commented on August 19, 2024

torrentz2.eu

That's because torrentz2.eu is counting first page as p=0, but simple torrent is counting the page from 1. This is tricky, not all sites behave like this. I'll figure how to coordinate with them.

from simple-torrent.

boypt avatar boypt commented on August 19, 2024

It's turns out quite a simple solution: a test in javascript: if url has "{{page:0}}" then the request parameter page always minus 1.
Now torrentz2 work as expected in version v1.2.3

from simple-torrent.

msberends avatar msberends commented on August 19, 2024

Great 👍

from simple-torrent.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.