Report multiple subtitles on a single line?

Help
Jj4ssvYg
2011-08-14
2013-08-17
  • Jj4ssvYg
    Jj4ssvYg
    2011-08-14

    I'm trying to extract info from a mkv file that contains multiple subtitles; one English srt file, and several languages within an idx/sub file. I want to be able to generate a report that has all Lanuage/String on one line. Currently mediainfo generates a single line for each sub.

    Here is the line in my template file to report subs:

    Text;Subtitles...........: %Language/String%\r\n
    

    Here is the output:

    Subtitles...........: English
    Subtitles...........: Danish
    Subtitles...........: Danish
    Subtitles...........: Swedish
    Subtitles...........: Norwegian
    

    I want the output to look like this:

    Subtitles...........: English Danish, Danish, Swedish, Norwegian
    

    Thanks.

     
  • KaKaDu
    KaKaDu
    2011-08-14

    Try out this code:

    General;Subtitles...........:
    Text;%Language/String%,
    

    At the end is a comma and a space character

     
  • Jj4ssvYg
    Jj4ssvYg
    2011-08-14

    Thanks. I knew it was something simple that I overlooked.

     
  • More exact code (kakadu266, using "General" field will create problem if you add some lines about Video and ad/or audio text), avoiding comma+space at the end:

    Text;%Language/String%
    Text_Begin;Subtitles...........: 
    Text_Middle;, 
    Text_End;\r\n
    

    (at the end of "Text" and "Text_Middle" fields, there are a comma)
    This code also add a final carriage return.

     
    • rodrigo polo
      rodrigo polo
      2013-08-17

      THANKS!!!!!