Patches for Streamdev and Burn plugins

Message ID 429A488A.9060803@syphir.sytes.net
State New
Headers

Commit Message

C.Y.M May 29, 2005, 10:56 p.m. UTC
  C.Y.M wrote:
> This seems to fix the issue with Summary()
> 

Sorry, I accidentally used Title instead of Description.

Regards,

--- burn/jobs.c.orig	2005-05-29 12:28:44.000000000 -0700
+++ burn/jobs.c	2005-05-29 12:29:58.000000000 -0700
@@ -23,7 +23,7 @@
 	char *ptr, *tmp;
 	mFileName = strdup(Recording->FileName());
 	strncpy(mName, Recording->Name(), JOBNAMELEN);
-	mSummary = (Recording->Summary() ? strdup(Recording->Summary()) : NULL);
+	mSummary = (Recording->Info()->Description() ? strdup(Recording->Info()->Description()) : NULL);
 	mTempDir = NULL;
 	mTimestamp = Timestamp;
 	mNumber = -1;
  

Patch

--- streamdev/server/connectionVTP.c.orig	2005-05-29 12:20:40.000000000 -0700
+++ streamdev/server/connectionVTP.c	2005-05-29 12:25:30.000000000 -0700
@@ -369,8 +369,8 @@ 
      if (isnumber(Option)) {
         cRecording *recording = Recordings.Get(strtol(Option, NULL, 10) - 1);
         if (recording) {
-           if (recording->Summary()) {
-              char *summary = strdup(recording->Summary());
+           if (recording->Info()->Description()) {
+              char *summary = strdup(recording->Info()->Description());
               Reply(250, "%s", strreplace(summary,'\n','|'));
               free(summary);
               }