timschwartz / rsstvtorrents
解析 RSS 源并返回 TV 展示和种子文件的数组
dev-master
2023-05-02 03:03 UTC
Requires
- willvincent/feeds: ^2.5.0
This package is auto-updated.
Last update: 2024-10-01 00:13:41 UTC
README
解析 RSS 源并返回 TV 展示和种子文件的数组
用法
可用源
$parser = new RSSParser();
print_r($parser->getURLs());
Array
(
[0] => https://eztv.re/ezrss.xml
[1] => https://www.goodjobmedia.com/feed/
[2] => https://horriblesubs.info/rss.php?res=all
[3] => https://horriblesubs.info/rss.php?res=sd
[4] => https://horriblesubs.info/rss.php?res=720
[5] => https://horriblesubs.info/rss.php?res=1080
)
输出
$parser = new RSSParser();
print_r($parser->getTorrents($url));
Array
(
[Public Domain Show] => Array
(
[S01E06] => Array
(
[0] => Array
(
[magnetURI] => magnet:?xt=...
[size] => 310368748
[resolution] => SD
)
[1] => Array
(
[magnetURI] => magnet:?xt=...
[size] => 620668788
[resolution] => 720p
)
)
[S01E07] => Array
(
[0] => Array
(
[magnetURI] => magnet:?xt=...
[size] => 450748435
[resolution] => 720p
)
[1] => Array
(
[magnetURI] => magnet:?xt=...
[size] => 1150748435
[resolution] => 1080p
)
)
)
[Another Uncopyrighted Show] => Array
(
[S10E03] => Array
(
[0] => Array
(
[magnetURI] => magnet:?xt=...
[size] => 350478452
[resolution] => 720p
)
)
)
)