Problem with Master Timer's summary.conf (was: VDR developer version 1.3.25)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



christian jacobsen wrote:
> Hallo Klaus 

Please always start a new thread - don't reply to the release note.

>>- The file 'summary.vdr' has been replaced with 'info.vdr' 
>>and now contains the
>>   information about a recording, in the same format as the 
>>events are stored in
>>   'epg.data' (see man vdr(5) for details). Existing summary 
>>files can be converted
>>   to the new format by running the Perl script 
>>'summary2info.pl', as in
>>
>>   summary2info.pl /video
>>
>>   (the parameter given has to be the video directory). If 
>>there is no 'info.vdr'
>>   file for a recording, an attempt is made to read a 'summary.vdr'.
> 
> 
> summary.vdr from Master-Timer is not shown correctly.
> 
> Example what they look like (enriched with infos from tvmovie2vdr).
> I would not expect that VDR parses Title or Subtitle ;), but it would be nice if it would just show everything in the file :
> 
> ID: "41615360"
> 
> Title: "Bean"
> 
> Subtitle: "Der ultimative Katastrophenfilm"
> 
> Description: "Spielfilm/Kom?die, GB/USA, 1997, FSK: 6
>  (Bean)   [ DolbyDigital ]
> 
> Kurzkritik: Mr. Bean ist voll in seinem Element!
> 
> Action ** / Thrill * / Humor *** / Allgemein ***
> 
> Museumsw?rter sorgt in L.A. f?r Chaos.
> Nach einer Millionenspende kann endlich ein amerikanisches Kunstwerk vom Pariser Mus?e D'Orsay freigekauft und in die Grierson Gallery nach Los Angeles zur?ckgebracht werden. Um dieses Ereignis geb?hrend zu feiern, hat man einen Kunstexperten von der Royal National Gallery of England eingeladen. Dr. Bean soll eine feierliche Rede halten - ein grober Fehler, wie sich zeigt. Denn Bean, in Wirklichkeit der Museumsw?rter, sorgt ?berall nur f?r Chaos und Katastrophen!
> 
> Regie: Mel Smith
> Darsteller: Rowan Atkinson (Mr. Bean), Harris Yulin (George Grierson), Peter MacNicol (David Langley), Pamela Reed (Alison Langley), Burt Reynolds (Gen. Newton), Johnny Galecki (Stingo Wheelie), Peter Egan (Lord Walton), John Mills (Vorsitzender), Peter Capaldi (Gareth)"
> 
> Greetings
> Christian Jacobsen

Well, I have only tested with VDR's own summary files ;-)

Please try if this helps:

--- recording.c 2005/05/29 11:16:57     1.107
+++ recording.c 2005/06/03 13:15:54
@@ -480,7 +480,7 @@
             char *data[3] = { NULL };
             cReadLine ReadLine;
             char *s;
-           while ((s = ReadLine.Read(f)) != NULL && line < 3) {
+           while ((s = ReadLine.Read(f)) != NULL) {
                   if (*s) {
                      if (data[line]) {
                         int len = strlen(s);
@@ -492,7 +492,7 @@
                      else
                         data[line] = strdup(s);
                      }
-                 else
+                 else if (line < 2)
                      line++;
                   }
             fclose(f);


The first two lines (separated by an empty line) will be used as Title and
ShortText, and the rest (again, separated by an empty line) will be put into
the Description. With Master Timer's format this will still be somewhat
messy, since in your example it would interpret

ID: "41615360"

as the Title and

Title: "Bean"

as the ShortText, but at least all the rest should make it into the Description.

Maybe Master Timer should have written its summary.conf the way VDR did ;-)

Klaus


[Index of Archives]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Big List of Linux Books]     [Fedora Users]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux