Comments (4)
Да, можно, теперь это даже будет удобнее делать, через единую функцию-обёртку к curl
смотрите функцию getUrlContent() в System.class.php
а вообще наверное действительно уже пора добавить это к основному функционалу и сделать соответствующую настройку в системе, для большего удобства
from torrentmonitor.
[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.
Да, ошибки в тесте, к сожалению останутся, по тому что доступность трекеров проверяется не cerl'ом, а функцией get_headers()
from torrentmonitor.
добавлено в версии 0.8.2
from torrentmonitor.
Related Issues (20)
- Предложение - парсинг торрент файлов для получения инфы HOT 22
- Ошибка: Не могу получить доступ к трекеру HOT 12
- Не работает на Ubuntu 15.10 HOT 1
- 1.2.9 перестал работать запуск HOT 2
- Поблема с темой содержашей символ ' (апостроф) HOT 1
- Перестал работать nnm HOT 4
- lostfilm.tv, TM 1.4.1 - пытается добавить в Transmission все торренты с одним именем файла HOT 2
- Не работают оповещения в телеграм
- Не работают уведомления если используется Postgres HOT 1
- Некорректные ссылки в уведомлениях HOT 1
- На synology перестал устанавливаться HOT 7
- Загрузка с lostfilm HOT 9
- cant_find_cookie HOT 2
- Опять lostfilm поломался HOT 2
- Portainer HOT 1
- Новый трекер toloka.to
- tapochek.net - нет желания добавить?
- How to install TorrentMonitor on ubuntu server 18? HOT 1
- Добавлять заголовки в RSS feed HOT 14
- Не работает автообновление в docker HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from torrentmonitor.