Skip to content

Commit b4be0c0

Browse files
committed
新增:Bilibili 站点
1 parent dfdb4f5 commit b4be0c0

File tree

3 files changed

+52
-1
lines changed

3 files changed

+52
-1
lines changed

app/admin/services/site/LayuiTemplate.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ public static function generate(string $site): GenerateInterface
116116
'audiences' => Decorator::make([NexusPHP::class, OptionsUid::class, OptionsRsskey::class, OptionsLimit::class], $default),
117117
'hdhome', 'pthome', 'hddolby' => Decorator::make([NexusPHP::class, OptionsUid::class, OptionsLimit::class, OptionsRssUrl::class], $default),
118118
'zhuque' => Decorator::make([Zhuque::class, OptionsUid::class, OptionsLimit::class], $default),
119-
'ourbits', 'chdbits', 'piggo', 'zmpt', 'agsvpt', 'hdfans', 'ptcafe', 'ptlgs', 'ptlover', 'hitpt', 'hspt', 'xingyunge', 'cspt' => Decorator::make([NexusPHP::class, OptionsUid::class, OptionsLimit::class, OptionsUrlJoin::class], $default),
119+
'ourbits', 'chdbits', 'piggo', 'zmpt', 'agsvpt', 'hdfans', 'ptcafe', 'ptlgs', 'ptlover', 'hitpt', 'hspt', 'xingyunge', 'cspt', 'bilibili' => Decorator::make([NexusPHP::class, OptionsUid::class, OptionsLimit::class, OptionsUrlJoin::class], $default),
120120
default => $default,
121121
};
122122
}
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<?php
2+
3+
namespace Iyuu\SiteManager\Cookie;
4+
5+
use Iyuu\SiteManager\BaseCookie;
6+
use Iyuu\SiteManager\Frameworks\NexusPhp\HasCookie;
7+
use Iyuu\SiteManager\Spider\Pagination;
8+
9+
/**
10+
* bilibili
11+
* - 凭cookie解析HTML列表页
12+
*/
13+
class CookieBilibili extends BaseCookie
14+
{
15+
use HasCookie, Pagination;
16+
17+
/**
18+
* 站点名称
19+
*/
20+
public const string SITE_NAME = 'bilibili';
21+
22+
/**
23+
* 是否调试当前站点
24+
* @return bool
25+
*/
26+
protected function isDebugCurrent(): bool
27+
{
28+
return false;
29+
}
30+
}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?php
2+
3+
namespace Iyuu\SiteManager\Driver;
4+
5+
use Iyuu\SiteManager\BaseDriver;
6+
use Iyuu\SiteManager\Contracts\Processor;
7+
use Iyuu\SiteManager\Contracts\ProcessorXml;
8+
use Iyuu\SiteManager\Frameworks\NexusPhp\HasRss;
9+
10+
/**
11+
* bilibili
12+
*/
13+
class DriverBilibili extends BaseDriver implements Processor, ProcessorXml
14+
{
15+
use HasRss;
16+
17+
/**
18+
* 站点名称
19+
*/
20+
public const string SITE_NAME = 'bilibili';
21+
}

0 commit comments

Comments
 (0)