GithubHelp home page GithubHelp logo

Comments (4)

ElizarovEugene avatar ElizarovEugene commented on August 11, 2024

Да, можно, теперь это даже будет удобнее делать, через единую функцию-обёртку к curl
смотрите функцию getUrlContent() в System.class.php
а вообще наверное действительно уже пора добавить это к основному функционалу и сделать соответствующую настройку в системе, для большего удобства

from torrentmonitor.

cisco2 avatar cisco2 commented on August 11, 2024

[quote]getUrlContent() в System.class.php[/quote]
Спасибо за подсказку. В System.class.php после 98 строки
curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:16.0) Gecko/20100101 Firefox/16.0");
добавил свои две строки
curl_setopt($ch, CURLOPT_PROXY, "127.0.0.1:9050");
curl_setopt($ch, CURLOPT_PROXYTYPE, CURLPROXY_SOCKS5);
на странице "Ошибки" новые записи появляться перестали, торрент-файл свежедобавленной на слежение раздачи скачался, но на странице "Тест" отметка "Трекер xxxxxx не доступен." осталась.

from torrentmonitor.

ElizarovEugene avatar ElizarovEugene commented on August 11, 2024

Да, ошибки в тесте, к сожалению останутся, по тому что доступность трекеров проверяется не cerl'ом, а функцией get_headers()

from torrentmonitor.

ElizarovEugene avatar ElizarovEugene commented on August 11, 2024

добавлено в версии 0.8.2

from torrentmonitor.

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.