private uint32 system_update_id;
private ServiceAction action;
private Rygel.DIDLLiteWriter didl_writer;
+ private XBoxHacks xbox_hacks;
public Cancellable cancellable { get; set; }
this.didl_writer =
new Rygel.DIDLLiteWriter (content_dir.http_server);
+
+ try {
+ this.xbox_hacks = new XBoxHacks (action.get_message ());
+ } catch { /* This just means we are not dealing with Xbox, yay! */ }
}
public async void run () {
// Serialize results
foreach (var result in results) {
+ if (result is MediaItem && this.xbox_hacks != null) {
+ this.xbox_hacks.apply (result as MediaItem);
+ }
+
this.didl_writer.serialize (result);
}