Hi!
I would think it does make sense to also have the RSS feed export feature restrict to the displayed results, e.g.
http://videodb.hostname.de/index.php?owner=admin&filter=wanted&export=rss
should RSS-export only the items on the wishlist.
Is it possible to have this done in a future version?
Logged In: YES
user_id=391980
Originator: NO
This is already- to some extend- possible. RSS export understands the same search expressions as index.php, e.g.:
http://videodb.hostname.de/index.php?export=rss&q=andig&fields=owner&nowild=1
What we cannot currently do is to AND multiple search expressions except for genres. This would require a serious overhaul of the current search implementation.
Logged In: YES
user_id=145970
Originator: YES
So, from my understanding, on my videodb installation, this is the current listing of my wishlist:
http://media.foxalpha.de/index.php?owner=admin&filter=wanted
And this is the RSS link on that page:
http://media.foxalpha.de/index.php?export=rss
which then would be possible to be built as
http://media.foxalpha.de/index.php?owner=admin&filter=wanted&export=rss
But, this last URL doesn't show up the wishlist as RSS but the "new items" list
What am i doing wrong then?
Logged In: YES
user_id=391980
Originator: NO
You could try updating the core/xml.php with the following change:
/**
* Update RSS File
*
* @author Mike Clark <mike.clark@cinven.com>
*/
function rssexport($WHERE)
{
global $config, $rss_timestamp_format, $filter;
// make sure server doesn't specify something else
header('Content-type: text/xml; charset=utf-8');
if ($filter)
{
$result = exportData($WHERE);
}
else
{
// get the latest items from the DB according to config setting
$SQL = 'SELECT id, title, plot, created
FROM '.TBL_DATA.'
ORDER BY created DESC LIMIT '.$config['shownew'];
$result = runSQL($SQL);
}
That should take the query passed in filter is set. Logged in user however will always be the guest user.