From patchwork Wed Jul 27 22:11:05 2005 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "C.Y.M" X-Patchwork-Id: 11955 Received: from c-24-10-6-146.hsd1.ca.comcast.net ([24.10.6.146] helo=nofear.bounceme.net) by www.linuxtv.org with esmtp (Exim 4.34) id 1Dxu6m-0002Q6-Lq for vdr@linuxtv.org; Thu, 28 Jul 2005 00:10:37 +0200 Received: from [10.1.1.66] (hades [10.1.1.66]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by nofear.bounceme.net (Postfix) with ESMTP id 54E7D7356D for ; Wed, 27 Jul 2005 15:10:02 -0700 (PDT) Message-ID: <42E80679.9030008@syphir.sytes.net> Date: Wed, 27 Jul 2005 15:11:05 -0700 From: "C.Y.M" Organization: CooLNeT User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Klaus Schmidinger's VDR Subject: Re: [vdr] Playlists? References: In-Reply-To: X-Enigmail-Version: 0.92.0.0 X-BeenThere: vdr@linuxtv.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: syphir@syphir.sytes.net, Klaus Schmidinger's VDR List-Id: Klaus Schmidinger's VDR List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Jul 2005 22:10:37 -0000 Status: O X-Status: X-Keywords: X-UID: 3818 Hardy Flor wrote: > Hallo Aron, > > >>is there any way to define playlists for the video recordings? > > > with the playlist-plugin > http://www.fast-info.de/vdr/playlist/index.htm > If you want to use this plugin with vdr-1.3.27, you will need this too.. (BTW, the #ifdefs are not exactly right but it works). :) Regards, C. --- playlist/dataplaylist.c.orig 2005-07-27 09:45:35.000000000 -0700 +++ playlist/dataplaylist.c 2005-07-27 09:47:29.000000000 -0700 @@ -145,7 +145,7 @@ char *temp = strrchr(title, '\t'); if (temp) *temp = 0; - summary = recording->Summary() ? strdup(recording->Summary()) : NULL; + summary = recording->Info()->Description() ? strdup(recording->Info()->Description()) : NULL; return true; } isdel = true; --- playlist/menuplaylist.c.orig 2005-07-27 09:50:50.000000000 -0700 +++ playlist/menuplaylist.c 2005-07-27 09:55:06.000000000 -0700 @@ -154,7 +154,7 @@ else { cRecording *recording = GetRecording(ri); - SetHelp(singleselect ? tr("Select") : tr("Add"), singleselect ? NULL : ri->IsMark() ? tr("UnMark") : tr("Mark"), deleterecords.u ? tr("Delete") : NULL, (recording && recording->Summary() && *recording->Summary()) ? tr("Summary") : NULL); + SetHelp(singleselect ? tr("Select") : tr("Add"), singleselect ? NULL : ri->IsMark() ? tr("UnMark") : tr("Mark"), deleterecords.u ? tr("Delete") : NULL, (recording && recording->Info()->Description() && *recording->Info()->Description()) ? tr("Info") : NULL); } } else { @@ -256,9 +256,9 @@ if (ri && !ri->IsDirectory()) { cRecording *recording = GetRecording(ri); - if (recording && recording->Summary() && *recording->Summary()) + if (recording && recording->Info()->Description() && *recording->Info()->Description()) #if VDRVERSNUM >= 10307 - return AddSubMenu(new cMenuText(tr("Summary"), recording->Summary())); + return AddSubMenu(new cMenuText(tr("Info"), recording->Info()->Description())); #else return AddSubMenu(new cMenuItemText(tr("Summary"), recording->Summary())); #endif @@ -514,8 +514,8 @@ } #endif - char *buffer = NULL; - eOptions display = (Current() >= 0) && (Current() < MAXOptionLines) ? displayoption[Current()] : Option_max; +// char *buffer = NULL; +// eOptions display = (Current() >= 0) && (Current() < MAXOptionLines) ? displayoption[Current()] : Option_max; /* if (display < Option_max && data.OptionInherited(display)) asprintf(&buffer, "%s %s", tr("OptionPL$Effective setting is:"), NoYesDefault[data.Option(display)]); if (buffer)