diff options
author | Alexey Yakovenko <waker@users.sourceforge.net> | 2014-06-19 21:52:01 +0200 |
---|---|---|
committer | Alexey Yakovenko <waker@users.sourceforge.net> | 2014-06-19 21:52:01 +0200 |
commit | ab64fa187f7df94a3242982722d1cd05242446c7 (patch) | |
tree | 4d6e48487fdbb05489d8810775b6111dd1e26973 /playlist.c | |
parent | 65e25ef70dc16653c74f704f7937cb49772a2fff (diff) |
gtkui, playlist: disable custom title in both "add location" and playlist context menu, until new title formatting is finished
Diffstat (limited to 'playlist.c')
-rw-r--r-- | playlist.c | 15 |
1 files changed, 14 insertions, 1 deletions
@@ -62,6 +62,9 @@ #include "volume.h" #include "pltmeta.h" +// disable custom title function, until we have new title formatting (0.7) +#define DISABLE_CUSTOM_TITLE + #define DISABLE_LOCKING 0 #define DEBUG_LOCKING 0 #define DETECT_PL_LOCK_RC 0 @@ -2906,11 +2909,18 @@ pl_format_title_int (const char *escape_chars, playItem_t *it, int idx, char *s, } else if (*fmt == 'a') { meta = pl_find_meta_raw (it, "artist"); +#ifndef DISABLE_CUSTOM_TITLE const char *custom = pl_find_meta_raw (it, ":CUSTOM_TITLE"); - if (!meta && !custom) { +#endif + if (!meta +#ifndef DISABLE_CUSTOM_TITLE + && !custom +#endif + ) { meta = "Unknown artist"; } +#ifndef DISABLE_CUSTOM_TITLE if (custom) { if (!meta) { meta = custom; @@ -2922,6 +2932,7 @@ pl_format_title_int (const char *escape_chars, playItem_t *it, int idx, char *s, meta = out; } } +#endif } else if (*fmt == 't') { meta = pl_find_meta_raw (it, "title"); @@ -2970,6 +2981,7 @@ pl_format_title_int (const char *escape_chars, playItem_t *it, int idx, char *s, } } +#ifndef DISABLE_CUSTOM_TITLE const char *custom = pl_find_meta_raw (it, ":CUSTOM_TITLE"); if (custom) { if (!meta) { @@ -2982,6 +2994,7 @@ pl_format_title_int (const char *escape_chars, playItem_t *it, int idx, char *s, meta = out; } } +#endif } else if (*fmt == 'C') { meta = pl_find_meta_raw (it, "composer"); |