Fixed bug in Dumb plugin when title is not found.

CQTexperiment
vspader 2008-02-10 15:40:01 +00:00
parent 9fc6e4eeb1
commit 445797157c
2 changed files with 6 additions and 1 deletions

View File

@ -193,6 +193,7 @@
089C1669FE841209C02AAC07 /* Project object */ = { 089C1669FE841209C02AAC07 /* Project object */ = {
isa = PBXProject; isa = PBXProject;
buildConfigurationList = 1DEB913E08733D840010E9CD /* Build configuration list for PBXProject "Dumb" */; buildConfigurationList = 1DEB913E08733D840010E9CD /* Build configuration list for PBXProject "Dumb" */;
compatibilityVersion = "Xcode 2.4";
hasScannedForEncodings = 1; hasScannedForEncodings = 1;
mainGroup = 089C166AFE841209C02AAC07 /* Dumb */; mainGroup = 089C166AFE841209C02AAC07 /* Dumb */;
projectDirPath = ""; projectDirPath = "";
@ -202,6 +203,7 @@
ProjectRef = 17C8F6990CBEE857008D969D /* Dumb.xcodeproj */; ProjectRef = 17C8F6990CBEE857008D969D /* Dumb.xcodeproj */;
}, },
); );
projectRoot = "";
targets = ( targets = (
8D5B49AC048680CD000E48DA /* Dumb */, 8D5B49AC048680CD000E48DA /* Dumb */,
); );

View File

@ -52,9 +52,12 @@
//Some titles are all spaces?! //Some titles are all spaces?!
NSString *title = [[NSString stringWithUTF8String: duh_get_tag(duh, "TITLE")] stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceCharacterSet]]; NSString *title = [[NSString stringWithUTF8String: duh_get_tag(duh, "TITLE")] stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceCharacterSet]];
unload_duh(duh); unload_duh(duh);
if (title == nil) {
title = @"";
}
return [NSDictionary dictionaryWithObject:title forKey:@"title"]; return [NSDictionary dictionaryWithObject:title forKey:@"title"];
} }