}
public async void run () {
- context.server.add_handler (this.path_root, server_handler);
+ context.server.add_handler (this.path_root, this.server_handler);
context.server.request_aborted.connect (this.on_request_aborted);
context.server.request_started.connect (this.on_request_started);
}
}
- private string get_first (GLib.List<DIDLLiteContributor>? contributors) {
- if (contributors != null) {
- return contributors.data.name;
- }
-
- return "";
- }
-
internal override void apply_didl_lite (DIDLLiteObject didl_object) {
base.apply_didl_lite (didl_object);
- this.artist = get_first (didl_object.get_artists ());
+ this.artist = this.get_first (didl_object.get_artists ());
this.track_number = didl_object.track_number;
this.album = didl_object.album;
this.genre = didl_object.genre;
null);
}
}
+
+ private string get_first (GLib.List<DIDLLiteContributor>? contributors) {
+ if (contributors != null) {
+ return contributors.data.name;
+ }
+
+ return "";
+ }
+
}