timschwartz/rsstvtorrents

Parses RSS feeds and returns an array of TV shows and torrents

dev-master 2018-11-12 06:03 UTC

This package is not auto-updated.

Last update: 2020-08-04 13:56:17 UTC


README

Parses RSS feeds and returns an array of TV shows and torrents

Usage

Available feeds

$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
)

Output

$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
                    )

                )
        )
)