iSightを使ってBooklog,MediaMarkerインポート用CSVファイルを生成するアプリ
修訂 | 7f943b7832780e3a2c85cdba32fd0a4aea6429ba (tree) |
---|---|
時間 | 2012-03-25 16:50:10 |
作者 | masakih <masakih@user...> |
Commiter | masakih |
[Mod] 新しいBooklog形式に対応
@@ -56,20 +56,18 @@ | ||
56 | 56 | - (NSString *)lineForBook:(BEBookInformation *)book |
57 | 57 | { |
58 | 58 | return [NSString stringWithFormat: |
59 | - @"%@\t%@\t%@\t%@\t%@\t%@\t%@\t%@\t%@\t%@\t%@\t%@\t%@", | |
60 | - normalizeString(book.asin), | |
61 | - normalizeString(book.isbn), | |
62 | - normalizeString(book.title), | |
63 | - normalizeString(book.author), | |
64 | - normalizeString(book.manufacturer), | |
65 | - normalizeString([publicateionDateFormatter stringFromDate:book.publicationDate]), | |
66 | - normalizeString(@"Books"), | |
67 | - normalizeString(book.category), | |
68 | - normalizeString([book.rating stringValue]), | |
69 | - normalizeString(book.review), | |
70 | - normalizeString([self statusNameWithBook:book]), | |
71 | - normalizeString([registerDateFormatter stringFromDate:book.readDate]), | |
72 | - normalizeString([registerDateFormatter stringFromDate:book.registerDate])]; | |
59 | + @"\"1\",\"%@\",\"%@\",\"%@\",\"%@\",\"%@\",\"%@\",\"%@\",\"%@\",\"%@\",\"%@\"", | |
60 | + doubleQuoteQuotedString(book.asin), | |
61 | + doubleQuoteQuotedString(book.isbn), | |
62 | + doubleQuoteQuotedString(book.category), | |
63 | + doubleQuoteQuotedString([book.rating stringValue]), | |
64 | + doubleQuoteQuotedString([self statusNameWithBook:book]), | |
65 | + doubleQuoteQuotedString(book.review), | |
66 | + doubleQuoteQuotedString(tagsString(book.tags)), | |
67 | + @"", | |
68 | + doubleQuoteQuotedString([registerDateFormatter stringFromDate:book.registerDate]), | |
69 | + doubleQuoteQuotedString([registerDateFormatter stringFromDate:book.readDate])]; | |
70 | + | |
73 | 71 | } |
74 | 72 | - (BOOL)needsNewLineAtEndOfFile |
75 | 73 | { |