Skip to content

Commit

Permalink
sanitizeTitle
Browse files Browse the repository at this point in the history
  • Loading branch information
ravachol committed Aug 24, 2024
1 parent 53428c4 commit f2e2c45
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/mpris.c
Original file line number Diff line number Diff line change
Expand Up @@ -1093,12 +1093,12 @@ gchar *sanitizeTitle(const gchar *title)
// Replace underscores with hyphens, otherwise some widgets have a problem
g_strdelimit(sanitized, "_", '-');

// Add a trailing space, otherwise some widgets have a problem with certain strings for some reason
gchar *sanitized_with_space = g_strdup_printf("%s ", sanitized);
// duplicate string otherwise widgets have a problem with certain strings for some reason
gchar *sanitized_dup = g_strdup_printf("%s", sanitized);

g_free(sanitized);

return sanitized_with_space;
return sanitized_dup;
}

static guint64 last_emit_time = 0;
Expand Down

0 comments on commit f2e2c45

Please sign in to comment.