masakih

BooksExporter

  • R/O
  • HTTP
  • SSH
  • HTTPS

コミット

よく使われているワード(クリックで追加)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

iSightを使ってBooklog,MediaMarkerインポート用CSVファイルを生成するアプリ


コミットメタ情報

リビジョン7f943b7832780e3a2c85cdba32fd0a4aea6429ba (tree)
日時2012-03-25 16:50:10
作者masakih <masakih@user...>
コミッターmasakih

ログメッセージ

[Mod] 新しいBooklog形式に対応

変更サマリ

差分

--- a/BEBooklogBooksExporter.m
+++ b/BEBooklogBooksExporter.m
@@ -56,20 +56,18 @@
5656 - (NSString *)lineForBook:(BEBookInformation *)book
5757 {
5858 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+
7371 }
7472 - (BOOL)needsNewLineAtEndOfFile
7573 {