UserContributedContent - JimmXinu/FanFicFare GitHub Wiki

User Contributed Ideas

This page is specifically for user contributed ideas. Anyone is welcome to contribute to this page.

If you have an idea you want to share, but aren't sure it fits on an other page, you can add it here.


A CLI Library Update Script

The FAQ completely correctly admonishes against using FanFicFare for complete back up of whole library EPubs. However, the script below tries to be as considerate as possible: it checks only books which have been modified in the last $DAYS days, and it increases slow_down_sleep_time to very high number.

The second command (using my own script epubsetdate) is completely optional, and it just sets the mtime of the particular EPub documents to the date of the last update of the document.

#!/bin/sh

export DAYS=91
export LIBRARY_FOLDER="~/Knihy/fanfiction/"

find "$LIBRARY_FOLDER" -name \*.epub -mtime -${DAYS} -print0 | \
    xargs -t -L 50 -0 fanficfare -o slow_down_sleep_time=6 -u \
        >/tmp/knih_update.log 2>&1
find "$LIBRARY_FOLDER" -daystart -mtime -1 -name \*.epub -print \
    -exec ~/.bin/epubsetdate '{}' \;

Japanese metadata labels

These choices were made by an amateur, better translations may exist.

title_label:作品タイトル
storyUrl_label:作品URL
description_label:あらすじ
author_label:作者名
authorUrl_label:作者URL
formatname_label:ファイル形式
formatext_label:拡張子
category_label:カテゴリ
genre_label:ジャンル
language_label:言語
series_label:シリーズ
seriesUrl_label:シリーズURL
seriesHTML_label:シリーズ
status_label:状態
datePublished_label:掲載日
dateUpdated_label:最終更新日
dateCreated_label:作成日
rating_label:レイティング
warnings_label:警告
numChapters_label:部分数
numWords_label:文字数
site_label:掲載サイト
publisher_label:掲載サイト
siteabbrev_label:サイト略称
storyId_label:作品ID
authorId_label:作者ID
extratags_label:追加のタグ