Menu

#64 Restrict RSS feeds

open
nobody
core (18)
5
2012-12-08
2007-11-20
No

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?

Discussion

  • andig

    andig - 2007-11-21

    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.

     
  • andig

    andig - 2008-05-14

    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.

     

Log in to post a comment.