]> git.sesse.net Git - vlc/commitdiff
Allow extended data in customized formats too.
authorRocky Bernstein <rocky@videolan.org>
Sun, 14 Mar 2004 23:42:41 +0000 (23:42 +0000)
committerRocky Bernstein <rocky@videolan.org>
Sun, 14 Mar 2004 23:42:41 +0000 (23:42 +0000)
modules/access/cdda/access.c
modules/access/cdda/cdda.c

index 4b4ba60b8c015389784ada1677274e4222ff1e0b..fa573c7acc1f3cc5fa231d35727bbf44583136c7 100644 (file)
@@ -667,6 +667,14 @@ CDDAFormatStr(const input_thread_t *p_input, cdda_data_t *p_cdda,
           add_format_str_info(t->artist);
       } else goto not_special;
       break;
+    case 'e':
+      if (p_cdda->i_cddb_enabled) {
+        cddb_track_t *t=cddb_disc_get_track(p_cdda->cddb.disc,
+                                            i_track-1);
+        if (t != NULL && t->ext_data != NULL)
+          add_format_str_info(t->ext_data);
+      } else goto not_special;
+      break;
 #endif
 
     case 'M':
index 7f0dbc8cb6eba4fe7f5b490c9f7e52a4e9a9a059..f747ee528f3b11f43aed503be8fa6a5b2fe93613 100644 (file)
@@ -2,7 +2,7 @@
  * cddax.c : CD digital audio input module for vlc using libcdio
  *****************************************************************************
  * Copyright (C) 2000,2003 VideoLAN
- * $Id: cdda.c,v 1.18 2004/02/14 17:36:05 gbazin Exp $
+ * $Id$
  *
  * Authors: Rocky Bernstein <rocky@panix.com>
  *          Laurent Aimar <fenrir@via.ecp.fr>
@@ -73,9 +73,10 @@ int  E_(CDDBEnabledCB)( vlc_object_t *p_this, const char *psz_name,
 #define CDDB_TITLE_FMT_LONGTEXT N_( \
 "Format used in the GUI Playlist Title. Similar to the Unix date \n" \
 "Format specifiers that start with a percent sign. Specifiers are: \n" \
-"   %a : The artist\n" \
+"   %a : The artist (for the album)\n" \
 "   %A : The album information\n" \
 "   %C : Category\n" \
+"   %e : The extended data (for a track)\n" \
 "   %I : CDDB disk ID\n" \
 "   %G : Genre\n" \
 "   %M : The current MRL\n" \