Mercurial > audlegacy
comparison src/audacious/playlist.c @ 4532:97b29dec6c6b
moved away some stuff from main.c
author | mf0102 <0102@gmx.at> |
---|---|
date | Thu, 08 May 2008 22:49:52 +0200 |
parents | 16466c2624b2 |
children | d4c5719d30d1 |
comparison
equal
deleted
inserted
replaced
4531:cbb1f66d8971 | 4532:97b29dec6c6b |
---|---|
139 | 139 |
140 #define EXT_TRUE 1 | 140 #define EXT_TRUE 1 |
141 #define EXT_FALSE 0 | 141 #define EXT_FALSE 0 |
142 #define EXT_HAVE_SUBTUNE 2 | 142 #define EXT_HAVE_SUBTUNE 2 |
143 #define EXT_CUSTOM 3 | 143 #define EXT_CUSTOM 3 |
144 | |
145 const gchar *aud_titlestring_presets[] = { | |
146 "${title}", | |
147 "${?artist:${artist} - }${title}", | |
148 "${?artist:${artist} - }${?album:${album} - }${title}", | |
149 "${?artist:${artist} - }${?album:${album} - }${?track-number:${track-number}. }${title}", | |
150 "${?artist:${artist} }${?album:[ ${album} ] }${?artist:- }${?track-number:${track-number}. }${title}", | |
151 "${?album:${album} - }${title}" | |
152 }; | |
153 const guint n_titlestring_presets = G_N_ELEMENTS(aud_titlestring_presets); | |
154 | |
144 | 155 |
145 static gint filter_by_extension(const gchar *filename); | 156 static gint filter_by_extension(const gchar *filename); |
146 static gboolean is_http(const gchar *filename); | 157 static gboolean is_http(const gchar *filename); |
147 static gboolean do_precheck(Playlist *playlist, const gchar *uri, ProbeResult **pr); | 158 static gboolean do_precheck(Playlist *playlist, const gchar *uri, ProbeResult **pr); |
148 | 159 |
3322 rv = TRUE; | 3333 rv = TRUE; |
3323 } | 3334 } |
3324 | 3335 |
3325 return rv; | 3336 return rv; |
3326 } | 3337 } |
3338 | |
3339 const gchar * | |
3340 get_gentitle_format(void) | |
3341 { | |
3342 guint titlestring_preset = cfg.titlestring_preset; | |
3343 | |
3344 if (titlestring_preset < n_titlestring_presets) | |
3345 return aud_titlestring_presets[titlestring_preset]; | |
3346 | |
3347 return cfg.gentitle_format; | |
3348 } |