Location: PHPKode > projects > Poddy > src/maintainance/update_rss.php
<html>
<head>
<title>Items holen</title>
</head>
<body>
<a href="index.php">Zum Hauptmen├╝</a>
<a href="list_pods.php">Zur Liste</a>
<a href="list_items.php?podcast_id=<? echo $_REQUEST["id"]; ?>">List Items</a>
<hr/>

<?
require_once("../config.php");
require_once("lib/rss_utils.php");
require_once("lib/db_utils.php");

$sql = "select * from podcast where rss_url != ''";

echo $sql."<br/>";


$podcasts = array();
$rs = db_query($sql);
while ($row = db_next_row($rs)) {
	$podcasts[] = $row;
}

foreach ($podcasts as $podcast) {
	echo("handling podcast ".$podcast["title"]."<br/>");
	$import_rss_debug = true;
	$result = import_rss($podcast["rss_url"], $podcast["rss_auto_update"], $podcast["transcode_mobile"], $podcast["download_allowed"]);
	if ($result) {
		echo "imported rss for ".$podcast["title"]."<br/>";
	} else {
		echo "Fehler: ".$import_rss_error."<br/>";
	}
}



?>
</body>
</html>
Return current item: Poddy