"rygel");
DirUtils.create_with_parents (dirname, 0750);
var db_file = Path.build_filename (dirname, "%s.db".printf (name));
- debug (_("Using database file %s"), db_file);
+ debug ("Using database file %s", db_file);
var rc = Sqlite.Database.open (db_file, out this.db);
if (rc != Sqlite.OK) {
throw new DatabaseError.IO_ERROR (
case FileMonitorEvent.CHANGES_DONE_HINT:
if (this.file_filter == null ||
this.file_filter.match (file.get_uri ())) {
- debug (_("Trying to harvest %s because of %d"),
+ debug ("Trying to harvest %s because of %d",
file.get_uri (),
event);
var id = MediaCache.get_id (file.get_parent ());
var filter = this.translate_search_expression (expression, args);
if (expression != null) {
- debug (_("Original search: %s"), expression.to_string ());
- debug (_("Parsed search expression: %s"), filter);
+ debug ("Original search: %s", expression.to_string ());
+ debug ("Parsed search expression: %s", filter);
}
for (int i = 0; i < args.n_values; i++) {
this.extract_file_info (file, out mime, out size, out mtime);
this.extraction_done (file, dlna, mime, size, mtime);
} catch (Error e) {
- debug (_("Failed to extract metadata from %s: %s"),
+ debug ("Failed to extract metadata from %s: %s",
dlna.info.uri,
e.message);
}
case FileMonitorEvent.DELETED:
var file_monitor = this.monitors.get (file);
if (file_monitor != null) {
- debug (_("Folder %s gone; removing watch"),
+ debug ("Folder %s gone; removing watch",
file.get_uri ());
this.monitors.unset (file);
file_monitor.cancel ();
}
foreach (var id in ids) {
- debug (_("ID %s no longer in config; deleting..."), id);
+ debug ("ID %s no longer in config; deleting...", id);
try {
this.media_db.remove_by_id (id);
} catch (DatabaseError error) {
}
set {
- debug (_("Changing playback state to %s.."), value);
+ debug ("Changing playback state to %s..", value);
/* FIXME: Do something about errors below */
switch (value) {
}
set {
- debug (_("Changing playback state to %s."), value);
+ debug ("Changing playback state to %s.", value);
this._playback_state = value;
switch (this._playback_state) {
set {
this.playbin.uri = value;
- debug (_("URI set to %s."), value);
+ debug ("URI set to %s.", value);
}
}
set {
this.playbin.volume = value;
- debug (_("volume set to %f."), value);
+ debug ("volume set to %f.", value);
}
}
throws DBus.Error {
var str = this.to_string ();
- debug (_("Executing SPARQL query: %s"), str);
+ debug ("Executing SPARQL query: %s", str);
var result = yield resources.sparql_update_blank (str);
throws DBus.Error {
var str = this.to_string ();
- debug (_("Executing SPARQL query: %s"), str);
+ debug ("Executing SPARQL query: %s", str);
result = yield resources.sparql_query (str);
}
switch (unit) {
case "ABS_TIME":
case "REL_TIME":
- debug (_("Seeking to %s."), target);
+ debug ("Seeking to %s.", target);
if (!this.player.seek (GstUtils.time_from_string (target))) {
action.return_error (710, _("Seek mode not supported"));
private void ensure_timeout () {
// Make sure we have a notification timeout
if (this.service != null && this.timeout_id == 0) {
- debug (_("Setting up timeout for LastChange"));
+ debug ("Setting up timeout for LastChange");
this.timeout_id = Timeout.add (200, this.timeout);
}
}
// Add headers
this.handler.add_response_headers (this);
- debug (_("Following HTTP headers appended to response:"));
+ debug ("Following HTTP headers appended to response:");
this.msg.response_headers.foreach ((name, value) => {
debug ("%s : %s", name, value);
});
this.requests.remove (request);
- debug (_("HTTP %s request for URI '%s' handled."),
+ debug ("HTTP %s request for URI '%s' handled.",
request.msg.method,
request.msg.get_uri ().to_string (false));
}
return;
}
- debug (_("HTTP %s request for URI '%s'. Headers:"),
+ debug ("HTTP %s request for URI '%s'. Headers:",
msg.method,
msg.get_uri ().to_string (false));
msg.request_headers.foreach ((name, value) => {
foreach (var request in this.requests) {
if (request.msg == message) {
request.cancellable.cancel ();
- debug (_("HTTP client aborted %s request for URI '%s'."),
+ debug ("HTTP client aborted %s request for URI '%s'.",
request.msg.method,
request.msg.get_uri ().to_string (false));
private void on_got_headers (Soup.Message msg) {
if (msg.method == "POST" &&
msg.uri.path.has_prefix (this.path_root)) {
- debug (_("HTTP POST request for URI '%s'"),
+ debug ("HTTP POST request for URI '%s'",
msg.get_uri ().to_string (false));
this.queue_request (new HTTPPost (this, this.context.server, msg));
this.status = TransferStatus.COMPLETED;
- debug (_("Import of '%s' to '%s' completed"),
+ debug ("Import of '%s' to '%s' completed",
source_uri,
destination_uri);
} catch (Error err) {
GUPnP.Context context) {
string iface = null;
- debug (_("new network context %s (%s) available."),
+ debug ("new network context %s (%s) available.",
context.interface,
context.host_ip);
err.message);
}
} else {
- debug (_("Ignoring network context %s (%s)."),
+ debug ("Ignoring network context %s (%s).",
context.interface,
context.host_ip);
}
private void on_context_unavailable (GUPnP.ContextManager manager,
GUPnP.Context context) {
- debug (_("Network context %s (%s) now unavailable."),
+ debug ("Network context %s (%s) now unavailable.",
context.interface,
context.host_ip);
this.plugin_hash.set (plugin.name, plugin);
this.plugin_available (plugin);
} else {
- debug (_("Plugin '%s' disabled in user configuration; ignoring.."),
+ debug ("Plugin '%s' disabled in user configuration; ignoring..",
plugin.name);
}
}
}
private async void load_modules_from_dir (File dir) {
- debug (_("Searching for modules in folder '%s'."), dir.get_path ());
+ debug ("Searching for modules in folder '%s'.", dir.get_path ());
string attributes = FILE_ATTRIBUTE_STANDARD_NAME + "," +
FILE_ATTRIBUTE_STANDARD_TYPE + "," +
}
}
- debug (_("Finished searching for modules in folder '%s'"),
+ debug ("Finished searching for modules in folder '%s'",
dir.get_path ());
}
module_init (this);
- debug (_("Loaded module source: '%s'"), module.name());
+ debug ("Loaded module source: '%s'", module.name());
}
private static bool is_dir (File file) {
var icons = plugin.icon_infos;
if (icons == null || icons.size == 0) {
- debug (_("No icon provided by plugin '%s'. Using Rygel logo."),
+ debug ("No icon provided by plugin '%s'. Using Rygel logo.",
plugin.name);
icons = plugin.default_icons;
"No search criteria given");
}
- debug (_("Executing search request: %s"), this.search_criteria);
+ debug ("Executing search request: %s", this.search_criteria);
}
protected override async MediaObjects fetch_results (
out path,
KeyFileFlags.KEEP_COMMENTS |
KeyFileFlags.KEEP_TRANSLATIONS);
- debug (_("Loaded user configuration from file '%s'"), path);
+ debug ("Loaded user configuration from file '%s'", path);
try {
DBus.Connection connection = DBus.Bus.get (DBus.BusType.SESSION);
DBUS_PATH,
DBUS_INTERFACE);
} catch (DBus.Error err) {
- debug (_("Failed to connect to session bus: %s"), err.message);
+ debug ("Failed to connect to session bus: %s", err.message);
}
}