function __construct($ID)
 {
     parent::__construct($ID);
     $this->setParser("JDownloadRenamed", "Util::CLDateTimeParser");
     $this->setParser("JDownloadDate", "Util::CLDateTimeParser");
 }
Exemple #2
0
$ac->addAssocV3("status", "=", "Continuing");
$series = "";
while ($S = $ac->getNextEntry()) {
    try {
        $C = $S->checkRSS($newFiles);
        foreach ($C as $En) {
            if ($series != $S->A("name") and $series != "") {
                echo "\n\t\t\t<item>\n\t\t\t\t<title>-----------------------------------</title>\n\t\t\t\t<link>{$link}/trinityDB/RSSFilter/FilteredFeed.php?RSSFilterID={$_GET['RSSFilterID']}</link>\n\t\t\t</item>";
            }
            $series = $S->A("name");
            $DLLink = "{$link}/trinityDB/RSSFilter/FilteredFeed.php?RSSFilterID={$_GET['RSSFilterID']}&amp;fromPage=" . urlencode($En["link"]) . "&amp;getLink=" . urlencode($En["fileName"]);
            if ($RSF->A("RSSFilterJDID") == "0") {
                $DLLink = $En["link"];
            }
            $usedAutoDL = false;
            $alreadyDLed = JDownload::testDownloaded($En["fileName"]);
            if (!$alreadyDLed) {
                $usedAutoDL = $RSF->autoDownload($En["fileName"], $En["link"], $S->A("name") . " S" . $En["season"] . "E" . $En["episode"], $S);
            }
            echo "\n\t\t\t<item>\n\t\t\t\t<title>" . $S->A("name") . " S" . $En["season"] . "E" . $En["episode"] . "" . ($alreadyDLed ? " already DLed" : "") . ($usedAutoDL ? " added to DL" : "") . "</title>\n\t\t\t\t<description><![CDATA[" . $En["description"] . "]]></description>\n\t\t\t\t<pubDate>{$En['pubDate']}</pubDate>\n\t\t\t\t<link>{$DLLink}</link>\n\t\t\t</item>";
        }
    } catch (Exception $ex) {
        echo "\n\t\t<item>\n\t\t\t<title>Error: " . $ex->getMessage() . "</title>\n\t\t</item>";
    }
}
$DLLink = "{$link}/trinityDB/RSSFilter/FilteredFeed.php?RSSFilterID={$_GET['RSSFilterID']}&amp;manualMultiDL=true";
echo "\n\t\t<item>\n\t\t\t<title>Manual download</title>\n\t\t\t<description><![CDATA[]]></description>\n\t\t\t<pubDate></pubDate>\n\t\t\t<link>{$DLLink}</link>\n\t\t</item>\n\t\t<item>\n\t\t\t<title>Not yet updated series: {$nonupdated}</title>\n\t\t\t<description><![CDATA[]]></description>\n\t\t\t<pubDate></pubDate>\n\t\t\t<link>{$link}</link>\n\t\t</item>";
?>
	</channel>
</rss>
<?php