RSS item watched status not working
#1
Running Dharma RC2.

After I've watched a video item from an RSS source it gets a check mark as it should. Going out and back into this video source the check mark is gone. Pressing 'w' goes to the next item but does not add a check mark.

I'm not sure if this is for all feeds or because GiantBomb.com's feed is weird. It requires authentication and has redirection so it doesn't work directly, but it does work with this URL:

https://username:[email protected]%2Fhd%2F

The actual URLs for these feeds are at:

http://www.giantbomb.com/videos/feed-index/

(IMO they should be working directly too, but I guess this is a different issue. With the redirection perhaps.)

A typical item for this feed looks like:

Code:
<item>
                <title>Quick Look: Super Mario All-Stars</title>
                <link>*direct link is here*</link>
                <description>Our all-star team of video game dudes peruses this tome of Nintendo classics.</description>
                <pubDate>Mon, 13 Dec 2010 06:00:00 PDT</pubDate>

                <comments>/quick-look-super-mario-all-stars/17-3593/</comments>
                <enclosure url="*direct link is here*" length="21165473" type="video/mp4" />
                <guid isPermaLink="false">*direct link is here*</guid>
                <itunes:subtitle>Our all-star team of video game dudes peruses this tome of Nintendo classics.</itunes:subtitle>
                <itunes:duration>00:27:37</itunes:duration>
                <itunes:explicit>no</itunes:explicit>

            </item>

The direct link does not require authentication and the videos do play fine. Just does not retain watched status.
Reply
#2
Is the direct link always the same? Take a nosy through the video database and see whether the link is in there is the same as what was returned by the rss feed.
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#3
In the feed the URLs are like this:

Code:
http://www.giantbomb.com/videos/protected_video_url/3605/progressive/3500/foo.mp4?download=True&token=<some token>

So the URL does change between logins, but only the parameters.

In the DB this URL is stored as:

Code:
INSERT INTO "path" VALUES(4519,'http://www.giantbomb.com/videos/protected_video_url/3605/progressive/3500/','','',NULL,NULL,NULL,NULL,NULL,NULL);
INSERT INTO "files" VALUES(5107,4519,'foo.mp4?download=True&token=None&video_type=all',1,'2010-12-14 22:58:56');

As a side note, the proper feed URL of http://www.giantbomb.com/videos/feed/hd/ now works directly in XBMC as the RSS seem to have changed since my previous post. The watched issue is still there though.

If it checks the files table for a file name with the token, but for some reason writes "None" as the token, that might be the issue.

I see both token=<proper token> and token=None in the files table for files right now so that is somewhat weird.

In this feed the best thing to do would actually be to ignore anything including and after ? when identifying a "file". Is that possible somehow? I do believe the use of tokens is not unheard of on authenticated feeds.
Reply
#4
Anything without a stable URL is not really possible to do watched status correctly.

If you can derive a stable URL then a plugin could be used to access the feeds perhaps.

My guess is that this is something that could be done in the core - i.e. have the ability to set both a stable URL and a "currently playable" URL and use the former to store stuff and the latter for playback. The only potential issue is how do we get the latter from the former (and vice-versa).
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#5
In this case ignoring any get parameters would result in a stable URL, and that might be the case for other RSS sources too. If it's common enough for an option in the source I don't know though.
Reply

Logout Mark Read Team Forum Stats Members Help
RSS item watched status not working0