<para>A list of broadcast ids. How to get the broadcast ids from the web site is described in the file README.Mediathek (in german only).</para>
</listitem>
</varlistentry>
+ <varlistentry>
+ <term>
+ <option>update-interval</option>
+ </term>
+ <listitem>
+ <para>Time in seconds after which the plugin checks for new content. Default is 1800s (30 minutes). The minimum timeout is 10 minutes.</para>
+ </listitem>
+ </varlistentry>
</variablelist>
</refsect1>
<refsect1>
public class Rygel.Mediathek.RootContainer : Rygel.SimpleContainer {
private SessionAsync session;
private static RootContainer instance;
- private static uint UPDATE_TIMEOUT = 1800;
+ private static int DEFAULT_UPDATE_INTERVAL = 1800;
public static RootContainer get_instance () {
if (RootContainer.instance == null) {
private void init () {
Gee.ArrayList<int> feeds = null;
+ int update_interval = DEFAULT_UPDATE_INTERVAL;
var config = Rygel.MetaConfig.get_default ();
try {
feeds.add (508);
}
+ try {
+ update_interval = config.get_int ("ZDFMediathek",
+ "update-interval",
+ 600,
+ int.MAX);
+ } catch (Error error) {
+ update_interval = DEFAULT_UPDATE_INTERVAL;
+ }
+
foreach (int id in feeds) {
this.add_child_container (new RssContainer (this, id));
}
- Timeout.add_seconds (UPDATE_TIMEOUT, () => {
+ Timeout.add_seconds (update_interval, () => {
foreach (var child in this.children) {
var container = child as RssContainer;