summaryrefslogtreecommitdiff
path: root/plugins/converter
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/converter')
-rw-r--r--plugins/converter/converter.c15
-rw-r--r--plugins/converter/converter.h2
-rw-r--r--plugins/converter/convgui.c7
3 files changed, 15 insertions, 9 deletions
diff --git a/plugins/converter/converter.c b/plugins/converter/converter.c
index fc8989c4..f87f3f23 100644
--- a/plugins/converter/converter.c
+++ b/plugins/converter/converter.c
@@ -1,5 +1,5 @@
/*
- DeaDBeeF - ultimate music player for GNU/Linux systems with X11
+ DeaDBeeF - The Ultimate Music Player
Copyright (C) 2009-2013 Alexey Yakovenko <waker@users.sourceforge.net>
This program is free software; you can redistribute it and/or
@@ -1134,11 +1134,16 @@ error:
*o++ = *p++;
}
*o = 0;
- // FIXME: need to delete all colon-fields, except the URI
- deadbeef->pl_replace_meta (out_it, ":URI", unesc_path);
- deadbeef->pl_delete_meta (out_it, ":TRACKNUM");
- deadbeef->pl_delete_meta (out_it, "cuesheet");
deadbeef->pl_set_item_flags (out_it, 0);
+ DB_metaInfo_t *m = deadbeef->pl_get_metadata_head (out_it);
+ while (m) {
+ DB_metaInfo_t *next = m->next;
+ if (m->key[0] == ':' || m->key[0] == '!' || !strcasecmp (m->key, "cuesheet")) {
+ deadbeef->pl_delete_metadata (out_it, m);
+ }
+ m = next;
+ }
+ deadbeef->pl_replace_meta (out_it, ":URI", unesc_path);
}
uint32_t tagflags = 0;
diff --git a/plugins/converter/converter.h b/plugins/converter/converter.h
index 63aeb349..ba779315 100644
--- a/plugins/converter/converter.h
+++ b/plugins/converter/converter.h
@@ -1,5 +1,5 @@
/*
- DeaDBeeF - ultimate music player for GNU/Linux systems with X11
+ DeaDBeeF - The Ultimate Music Player
Copyright (C) 2009-2013 Alexey Yakovenko <waker@users.sourceforge.net>
This program is free software; you can redistribute it and/or
diff --git a/plugins/converter/convgui.c b/plugins/converter/convgui.c
index a1207da2..21bead78 100644
--- a/plugins/converter/convgui.c
+++ b/plugins/converter/convgui.c
@@ -1,5 +1,5 @@
/*
- DeaDBeeF - ultimate music player for GNU/Linux systems with X11
+ DeaDBeeF - The Ultimate Music Player
Copyright (C) 2009-2013 Alexey Yakovenko <waker@users.sourceforge.net>
This program is free software; you can redistribute it and/or
@@ -994,6 +994,7 @@ on_edit_encoder_presets_clicked (GtkButton *button,
gtk_tree_path_free (path);
}
}
+ on_encoder_preset_cursor_changed (GTK_TREE_VIEW (list), NULL);
gtk_dialog_run (GTK_DIALOG (dlg));
gtk_widget_destroy (dlg);
}
@@ -1563,7 +1564,7 @@ GtkWidget*
title_formatting_help_link_create (gchar *widget_name, gchar *string1, gchar *string2,
gint int1, gint int2)
{
- GtkWidget *link = gtk_link_button_new_with_label ("http://sourceforge.net/apps/mediawiki/deadbeef/index.php?title=Title_Formatting", _("Help"));
+ GtkWidget *link = gtk_link_button_new_with_label ("http://github.com/Alexey-Yakovenko/deadbeef/wiki/Title-formatting", _("Help"));
return link;
}
@@ -1571,7 +1572,7 @@ GtkWidget*
encoder_cmdline_help_link_create (gchar *widget_name, gchar *string1, gchar *string2,
gint int1, gint int2)
{
- GtkWidget *link = gtk_link_button_new_with_label ("http://sourceforge.net/apps/mediawiki/deadbeef/index.php?title=Encoder_Command_Line", _("Help"));
+ GtkWidget *link = gtk_link_button_new_with_label ("http://github.com/Alexey-Yakovenko/deadbeef/wiki/Encoder-Command-Line", _("Help"));
return link;
}