After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 656001 - Add BBC video news "feed"
Add BBC video news "feed"
Product: grilo
Classification: Other
Component: plugins
git master
Other Linux
: Normal normal
: ---
Assigned To: grilo-maint
Depends on: 672923
Reported: 2011-08-04 21:39 UTC by Bastien Nocera
Modified: 2014-02-24 16:09 UTC
See Also:
GNOME target: ---
GNOME version: ---

grl-bbcnews.lua (2.66 KB, text/plain)
2014-02-24 16:09 UTC, Bastien Nocera

Description Bastien Nocera 2011-08-04 21:39:11 UTC
Here's the "rev-eng'ed" version

1. Get the bootstrap information. This should be cached, and only retrieved if it changed.
User-Agent: "BBC News 1.7.1 (iPhone; iPhone OS 4.0.1; en_GB)"

2. For each of the feeds listed in the file (again, cached), you'll get the headlines, some of which will have videos. For example:

This is decomposed into:
bbcvideo:// followed by the id of the entry (escaped), followed by a URL with some "holes" in it.

One of "<device>"'s possible values is "iphone"
One of "<bandwidth>"'s possible values is "wifi"

This is a slightly mangled version of the RSS source, most of which could be reused.
Comment 1 Guillaume Emont (guijemont) 2011-08-11 15:21:58 UTC
After some testing, the url deduced from the bbcvideo:// address needs to be retrieved with the "magic" user-agent.
The content at this url is file containing the uri of the actual video that can be given to gstreamer (totem can play it without any problem).
Exemple of video stream url:
Comment 2 Bastien Nocera 2014-02-24 11:50:25 UTC
I started implementing this, and it's fairly useless. There's far too few videos for this to be interesting.
Comment 3 Bastien Nocera 2014-02-24 16:09:07 UTC
Created attachment 270152 [details]

For the record, the incomplete BBC News source I started writing.