mirror of
https://gitee.com/ledc/IYUUAutoReseed
synced 2025-10-14 00:00:57 +00:00
增加run方法传入参数
This commit is contained in:
@@ -86,11 +86,11 @@ class Hdarea implements decodeBase
|
|||||||
* @param string
|
* @param string
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
public static function run()
|
public static function run($url = 'torrents.php')
|
||||||
{
|
{
|
||||||
self::init();
|
self::init();
|
||||||
Rpc::init(self::SITE, self::METHOD);
|
Rpc::init(self::SITE, self::METHOD);
|
||||||
$html = self::get();
|
$html = self::get($url);
|
||||||
#p($html);exit;
|
#p($html);exit;
|
||||||
if ( $html === null ) {
|
if ( $html === null ) {
|
||||||
exit(1);
|
exit(1);
|
||||||
|
@@ -87,11 +87,11 @@ class Beitai implements decodeBase
|
|||||||
* @param string
|
* @param string
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
public static function run()
|
public static function run($url = 'torrents.php')
|
||||||
{
|
{
|
||||||
self::init();
|
self::init();
|
||||||
Rpc::init(self::SITE, self::METHOD);
|
Rpc::init(self::SITE, self::METHOD);
|
||||||
$html = self::get();
|
$html = self::get($url);
|
||||||
if ( $html === null ) {
|
if ( $html === null ) {
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
@@ -87,11 +87,11 @@ class Brobits implements decodeBase
|
|||||||
* @param string
|
* @param string
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
public static function run()
|
public static function run($url = 'torrents.php')
|
||||||
{
|
{
|
||||||
self::init();
|
self::init();
|
||||||
Rpc::init(self::SITE, self::METHOD);
|
Rpc::init(self::SITE, self::METHOD);
|
||||||
$html = self::get();
|
$html = self::get($url);
|
||||||
if ( $html === null ) {
|
if ( $html === null ) {
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
@@ -87,11 +87,11 @@ class Btschool implements decodeBase
|
|||||||
* @param string
|
* @param string
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
public static function run()
|
public static function run($url = 'torrents.php')
|
||||||
{
|
{
|
||||||
self::init();
|
self::init();
|
||||||
Rpc::init(self::SITE, self::METHOD);
|
Rpc::init(self::SITE, self::METHOD);
|
||||||
$html = self::get();
|
$html = self::get($url);
|
||||||
if ( $html === null ) {
|
if ( $html === null ) {
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
@@ -86,11 +86,11 @@ class Chdbits implements decodeBase
|
|||||||
* @param string
|
* @param string
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
public static function run()
|
public static function run($url = 'torrents.php')
|
||||||
{
|
{
|
||||||
self::init();
|
self::init();
|
||||||
Rpc::init(self::SITE, self::METHOD);
|
Rpc::init(self::SITE, self::METHOD);
|
||||||
$html = self::get();
|
$html = self::get($url);
|
||||||
if ( $html === null ) {
|
if ( $html === null ) {
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
@@ -86,11 +86,11 @@ class dmhy implements decodeBase
|
|||||||
* @param string
|
* @param string
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
public static function run()
|
public static function run($url = 'torrents.php')
|
||||||
{
|
{
|
||||||
self::init();
|
self::init();
|
||||||
Rpc::init(self::SITE, self::METHOD);
|
Rpc::init(self::SITE, self::METHOD);
|
||||||
$html = self::get();
|
$html = self::get($url);
|
||||||
#p($html);exit;
|
#p($html);exit;
|
||||||
if ( $html === null ) {
|
if ( $html === null ) {
|
||||||
exit(1);
|
exit(1);
|
||||||
|
@@ -86,11 +86,11 @@ class Eastgame implements decodeBase
|
|||||||
* @param string
|
* @param string
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
public static function run()
|
public static function run($url = 'torrents.php')
|
||||||
{
|
{
|
||||||
self::init();
|
self::init();
|
||||||
Rpc::init(self::SITE, self::METHOD);
|
Rpc::init(self::SITE, self::METHOD);
|
||||||
$html = self::get();
|
$html = self::get($url);
|
||||||
if ( $html === null ) {
|
if ( $html === null ) {
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
@@ -86,11 +86,11 @@ class hd4fans implements decodeBase
|
|||||||
* @param string
|
* @param string
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
public static function run()
|
public static function run($url = 'torrents.php')
|
||||||
{
|
{
|
||||||
self::init();
|
self::init();
|
||||||
Rpc::init(self::SITE, self::METHOD);
|
Rpc::init(self::SITE, self::METHOD);
|
||||||
$html = self::get();
|
$html = self::get($url);
|
||||||
#p($html);exit;
|
#p($html);exit;
|
||||||
if ( $html === null ) {
|
if ( $html === null ) {
|
||||||
exit(1);
|
exit(1);
|
||||||
|
@@ -86,11 +86,11 @@ class Hdarea implements decodeBase
|
|||||||
* @param string
|
* @param string
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
public static function run()
|
public static function run($url = 'torrents.php')
|
||||||
{
|
{
|
||||||
self::init();
|
self::init();
|
||||||
Rpc::init(self::SITE, self::METHOD);
|
Rpc::init(self::SITE, self::METHOD);
|
||||||
$html = self::get();
|
$html = self::get($url);
|
||||||
#p($html);exit;
|
#p($html);exit;
|
||||||
if ( $html === null ) {
|
if ( $html === null ) {
|
||||||
exit(1);
|
exit(1);
|
||||||
|
@@ -86,11 +86,11 @@ class hdbug implements decodeBase
|
|||||||
* @param string
|
* @param string
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
public static function run()
|
public static function run($url = 'torrents.php')
|
||||||
{
|
{
|
||||||
self::init();
|
self::init();
|
||||||
Rpc::init(self::SITE, self::METHOD);
|
Rpc::init(self::SITE, self::METHOD);
|
||||||
$html = self::get();
|
$html = self::get($url);
|
||||||
#p($html);exit;
|
#p($html);exit;
|
||||||
if ( $html === null ) {
|
if ( $html === null ) {
|
||||||
exit(1);
|
exit(1);
|
||||||
|
@@ -87,11 +87,11 @@ class Hdchina implements decodeBase
|
|||||||
* @param string
|
* @param string
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
public static function run()
|
public static function run($url = 'torrents.php')
|
||||||
{
|
{
|
||||||
self::init();
|
self::init();
|
||||||
Rpc::init(self::SITE, self::METHOD);
|
Rpc::init(self::SITE, self::METHOD);
|
||||||
$html = self::get();
|
$html = self::get($url);
|
||||||
if ( $html === null ) {
|
if ( $html === null ) {
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
@@ -87,11 +87,11 @@ class Hddolby implements decodeBase
|
|||||||
* @param string
|
* @param string
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
public static function run()
|
public static function run($url = 'torrents.php')
|
||||||
{
|
{
|
||||||
self::init();
|
self::init();
|
||||||
Rpc::init(self::SITE, self::METHOD);
|
Rpc::init(self::SITE, self::METHOD);
|
||||||
$html = self::get();
|
$html = self::get($url);
|
||||||
if ( $html === null ) {
|
if ( $html === null ) {
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
@@ -88,11 +88,11 @@ class Hdhome implements decodeBase
|
|||||||
* @param string
|
* @param string
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
public static function run()
|
public static function run($url = 'torrents.php')
|
||||||
{
|
{
|
||||||
self::init();
|
self::init();
|
||||||
Rpc::init(self::SITE, self::METHOD);
|
Rpc::init(self::SITE, self::METHOD);
|
||||||
$html = self::get();
|
$html = self::get($url);
|
||||||
if ( $html === null ) {
|
if ( $html === null ) {
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
@@ -95,11 +95,11 @@ class Hdsky implements decodeBase
|
|||||||
* @param string
|
* @param string
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
public static function run()
|
public static function run($url = 'torrents.php')
|
||||||
{
|
{
|
||||||
self::init();
|
self::init();
|
||||||
Rpc::init(self::SITE, self::METHOD);
|
Rpc::init(self::SITE, self::METHOD);
|
||||||
$html = self::get();
|
$html = self::get($url);
|
||||||
if ( $html === null ) {
|
if ( $html === null ) {
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
@@ -86,11 +86,11 @@ class hdstreet implements decodeBase
|
|||||||
* @param string
|
* @param string
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
public static function run()
|
public static function run($url = 'torrents.php')
|
||||||
{
|
{
|
||||||
self::init();
|
self::init();
|
||||||
Rpc::init(self::SITE, self::METHOD);
|
Rpc::init(self::SITE, self::METHOD);
|
||||||
$html = self::get();
|
$html = self::get($url);
|
||||||
#p($html);exit;
|
#p($html);exit;
|
||||||
if ( $html === null ) {
|
if ( $html === null ) {
|
||||||
exit(1);
|
exit(1);
|
||||||
|
@@ -86,11 +86,11 @@ class Hdtime implements decodeBase
|
|||||||
* @param string
|
* @param string
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
public static function run()
|
public static function run($url = 'torrents.php')
|
||||||
{
|
{
|
||||||
self::init();
|
self::init();
|
||||||
Rpc::init(self::SITE, self::METHOD);
|
Rpc::init(self::SITE, self::METHOD);
|
||||||
$html = self::get();
|
$html = self::get($url);
|
||||||
#p($html);exit;
|
#p($html);exit;
|
||||||
if ( $html === null ) {
|
if ( $html === null ) {
|
||||||
exit(1);
|
exit(1);
|
||||||
|
@@ -86,11 +86,11 @@ class joyhd implements decodeBase
|
|||||||
* @param string
|
* @param string
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
public static function run()
|
public static function run($url = 'torrents.php')
|
||||||
{
|
{
|
||||||
self::init();
|
self::init();
|
||||||
Rpc::init(self::SITE, self::METHOD);
|
Rpc::init(self::SITE, self::METHOD);
|
||||||
$html = self::get();
|
$html = self::get($url);
|
||||||
#p($html);exit;
|
#p($html);exit;
|
||||||
if ( $html === null ) {
|
if ( $html === null ) {
|
||||||
exit(1);
|
exit(1);
|
||||||
|
@@ -85,11 +85,11 @@ class Keepfrds implements decodeBase
|
|||||||
* @param string
|
* @param string
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
public static function run()
|
public static function run($url = 'torrents.php')
|
||||||
{
|
{
|
||||||
self::init();
|
self::init();
|
||||||
Rpc::init(self::SITE, self::METHOD);
|
Rpc::init(self::SITE, self::METHOD);
|
||||||
$html = self::get();
|
$html = self::get($url);
|
||||||
if ( $html === null ) {
|
if ( $html === null ) {
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
@@ -87,16 +87,16 @@ class Leaguehd implements decodeBase
|
|||||||
* @param string
|
* @param string
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
public static function run()
|
public static function run($url = 'torrents.php')
|
||||||
{
|
{
|
||||||
self::init();
|
self::init();
|
||||||
Rpc::init(self::SITE, self::METHOD);
|
Rpc::init(self::SITE, self::METHOD);
|
||||||
$html = self::get();
|
$html = self::get($url);
|
||||||
if ( $html === null ) {
|
if ( $html === null ) {
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
$data = self::decode($html);
|
$data = self::decode($html);
|
||||||
p($data);exit;
|
#p($data);exit;
|
||||||
Rpc::call($data);
|
Rpc::call($data);
|
||||||
exit(0);
|
exit(0);
|
||||||
}
|
}
|
||||||
|
@@ -87,11 +87,11 @@ class Moecat implements decodeBase
|
|||||||
* @param string
|
* @param string
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
public static function run()
|
public static function run($url = 'torrents.php')
|
||||||
{
|
{
|
||||||
self::init();
|
self::init();
|
||||||
Rpc::init(self::SITE, self::METHOD);
|
Rpc::init(self::SITE, self::METHOD);
|
||||||
$html = self::get();
|
$html = self::get($url);
|
||||||
if ( $html === null ) {
|
if ( $html === null ) {
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
@@ -87,11 +87,11 @@ class Nanyangpt implements decodeBase
|
|||||||
* @param string
|
* @param string
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
public static function run()
|
public static function run($url = 'torrents.php')
|
||||||
{
|
{
|
||||||
self::init();
|
self::init();
|
||||||
Rpc::init(self::SITE, self::METHOD);
|
Rpc::init(self::SITE, self::METHOD);
|
||||||
$html = self::get();
|
$html = self::get($url);
|
||||||
if ( $html === null ) {
|
if ( $html === null ) {
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
@@ -86,17 +86,17 @@ class opencd implements decodeBase
|
|||||||
* @param string
|
* @param string
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
public static function run()
|
public static function run($url = 'torrents.php')
|
||||||
{
|
{
|
||||||
self::init();
|
self::init();
|
||||||
Rpc::init(self::SITE, self::METHOD);
|
Rpc::init(self::SITE, self::METHOD);
|
||||||
$html = self::get();
|
$html = self::get($url);
|
||||||
#p($html);exit;
|
#p($html);exit;
|
||||||
if ( $html === null ) {
|
if ( $html === null ) {
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
$data = self::decode($html);
|
$data = self::decode($html);
|
||||||
p($data);exit;
|
#p($data);exit;
|
||||||
Rpc::call($data);
|
Rpc::call($data);
|
||||||
exit(0);
|
exit(0);
|
||||||
}
|
}
|
||||||
|
@@ -95,11 +95,11 @@ class Ourbits implements decodeBase
|
|||||||
* @param string
|
* @param string
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
public static function run()
|
public static function run($url = 'torrents.php')
|
||||||
{
|
{
|
||||||
self::init();
|
self::init();
|
||||||
Rpc::init(self::SITE, self::METHOD);
|
Rpc::init(self::SITE, self::METHOD);
|
||||||
$html = self::get();
|
$html = self::get($url);
|
||||||
if ( $html === null ) {
|
if ( $html === null ) {
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
@@ -86,11 +86,11 @@ class Ptba implements decodeBase
|
|||||||
* @param string
|
* @param string
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
public static function run()
|
public static function run($url = 'torrents.php')
|
||||||
{
|
{
|
||||||
self::init();
|
self::init();
|
||||||
Rpc::init(self::SITE, self::METHOD);
|
Rpc::init(self::SITE, self::METHOD);
|
||||||
$html = self::get();
|
$html = self::get($url);
|
||||||
#p($html);exit;
|
#p($html);exit;
|
||||||
if ( $html === null ) {
|
if ( $html === null ) {
|
||||||
exit(1);
|
exit(1);
|
||||||
|
@@ -87,11 +87,11 @@ class pterclub implements decodeBase
|
|||||||
* @param string
|
* @param string
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
public static function run()
|
public static function run($url = 'torrents.php')
|
||||||
{
|
{
|
||||||
self::init();
|
self::init();
|
||||||
Rpc::init(self::SITE, self::METHOD);
|
Rpc::init(self::SITE, self::METHOD);
|
||||||
$html = self::get();
|
$html = self::get($url);
|
||||||
if ( $html === null ) {
|
if ( $html === null ) {
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
@@ -85,11 +85,11 @@ class Pthome implements decodeBase
|
|||||||
* @param string
|
* @param string
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
public static function run()
|
public static function run($url = 'torrents.php')
|
||||||
{
|
{
|
||||||
self::init();
|
self::init();
|
||||||
Rpc::init(self::SITE, self::METHOD);
|
Rpc::init(self::SITE, self::METHOD);
|
||||||
$html = self::get();
|
$html = self::get($url);
|
||||||
if ( $html === null ) {
|
if ( $html === null ) {
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
@@ -88,11 +88,11 @@ class Ptmsg implements decodeBase
|
|||||||
* @param string
|
* @param string
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
public static function run()
|
public static function run($url = 'torrents.php')
|
||||||
{
|
{
|
||||||
self::init();
|
self::init();
|
||||||
Rpc::init(self::SITE, self::METHOD);
|
Rpc::init(self::SITE, self::METHOD);
|
||||||
$html = self::get();
|
$html = self::get($url);
|
||||||
if ( $html === null ) {
|
if ( $html === null ) {
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
@@ -87,11 +87,11 @@ class Ptsbao implements decodeBase
|
|||||||
* @param string
|
* @param string
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
public static function run()
|
public static function run($url = 'torrents.php')
|
||||||
{
|
{
|
||||||
self::init();
|
self::init();
|
||||||
Rpc::init(self::SITE, self::METHOD);
|
Rpc::init(self::SITE, self::METHOD);
|
||||||
$html = self::get();
|
$html = self::get($url);
|
||||||
if ( $html === null ) {
|
if ( $html === null ) {
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
@@ -87,11 +87,11 @@ class Site52pt implements decodeBase
|
|||||||
* @param string
|
* @param string
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
public static function run()
|
public static function run($url = 'torrents.php')
|
||||||
{
|
{
|
||||||
self::init();
|
self::init();
|
||||||
Rpc::init(self::SITE, self::METHOD);
|
Rpc::init(self::SITE, self::METHOD);
|
||||||
$html = self::get();
|
$html = self::get($url);
|
||||||
if ( $html === null ) {
|
if ( $html === null ) {
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
@@ -87,11 +87,11 @@ class Soulvoice implements decodeBase
|
|||||||
* @param string
|
* @param string
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
public static function run()
|
public static function run($url = 'torrents.php')
|
||||||
{
|
{
|
||||||
self::init();
|
self::init();
|
||||||
Rpc::init(self::SITE, self::METHOD);
|
Rpc::init(self::SITE, self::METHOD);
|
||||||
$html = self::get();
|
$html = self::get($url);
|
||||||
if ( $html === null ) {
|
if ( $html === null ) {
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
@@ -179,7 +179,7 @@ class Soulvoice implements decodeBase
|
|||||||
// 种子促销类型解码
|
// 种子促销类型解码
|
||||||
if(strpos($v,self::$getTorrent[0]) === false){
|
if(strpos($v,self::$getTorrent[0]) === false){
|
||||||
// 不免费
|
// 不免费
|
||||||
self::$TorrentList[$k]['type'] = 1;
|
self::$TorrentList[$k]['type'] = 0;
|
||||||
}else{
|
}else{
|
||||||
// 免费种子
|
// 免费种子
|
||||||
self::$TorrentList[$k]['type'] = 0;
|
self::$TorrentList[$k]['type'] = 0;
|
||||||
|
@@ -85,11 +85,11 @@ class Ssd implements decodeBase
|
|||||||
* @param string
|
* @param string
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
public static function run()
|
public static function run($url = 'torrents.php')
|
||||||
{
|
{
|
||||||
self::init();
|
self::init();
|
||||||
Rpc::init(self::SITE, self::METHOD);
|
Rpc::init(self::SITE, self::METHOD);
|
||||||
$html = self::get();
|
$html = self::get($url);
|
||||||
if ( $html === null ) {
|
if ( $html === null ) {
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
@@ -87,11 +87,11 @@ class Tjupt implements decodeBase
|
|||||||
* @param string
|
* @param string
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
public static function run()
|
public static function run($url = 'torrents.php')
|
||||||
{
|
{
|
||||||
self::init();
|
self::init();
|
||||||
Rpc::init(self::SITE, self::METHOD);
|
Rpc::init(self::SITE, self::METHOD);
|
||||||
$html = self::get();
|
$html = self::get($url);
|
||||||
if ( $html === null ) {
|
if ( $html === null ) {
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
@@ -87,11 +87,11 @@ class Torrentccf implements decodeBase
|
|||||||
* @param string
|
* @param string
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
public static function run()
|
public static function run($url = 'torrents.php')
|
||||||
{
|
{
|
||||||
self::init();
|
self::init();
|
||||||
Rpc::init(self::SITE, self::METHOD);
|
Rpc::init(self::SITE, self::METHOD);
|
||||||
$html = self::get();
|
$html = self::get($url);
|
||||||
if ( $html === null ) {
|
if ( $html === null ) {
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
@@ -87,11 +87,11 @@ class Totheglory implements decodeBase
|
|||||||
* @param string
|
* @param string
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
public static function run()
|
public static function run($url = 'browse.php')
|
||||||
{
|
{
|
||||||
self::init();
|
self::init();
|
||||||
Rpc::init(self::SITE, self::METHOD);
|
Rpc::init(self::SITE, self::METHOD);
|
||||||
$html = self::get();
|
$html = self::get($url);
|
||||||
if ( $html === null ) {
|
if ( $html === null ) {
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
@@ -87,11 +87,11 @@ class Yingk implements decodeBase
|
|||||||
* @param string
|
* @param string
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
public static function run()
|
public static function run($url = 'torrents.php')
|
||||||
{
|
{
|
||||||
self::init();
|
self::init();
|
||||||
Rpc::init(self::SITE, self::METHOD);
|
Rpc::init(self::SITE, self::METHOD);
|
||||||
$html = self::get();
|
$html = self::get($url);
|
||||||
if ( $html === null ) {
|
if ( $html === null ) {
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user