Custom User Title
Posts: 11,055
Karma: 75568269
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Question: Is it expected for there to be a 1-2 second delay upon clicking the Action Chains menu? I've noticed it more since recently switching to running from source.
I have a few checking the device status and one with a variation.
Code:
{
"ActionsChainMenus": {
"Menus": [
{
"active": true,
"chain_settings": {
"chain_links": [
{
"action_name": "Open With",
"action_settings": {
"allow_multiple": true,
"args": "-f \"*.azw3;*.epub;*.mobi;*.pdf\" -d",
"path_opt": "folder",
"path_sep": ";",
"path_to_binary": "C:\\Program Files\\Mythicsoft\\Agent Ransack\\AgentRansack.exe",
"use_default_app": false
},
"comment": ""
}
],
"refresh_gui": true
},
"image": "ransack.png",
"menuText": "Search with Agent Ransack",
"subMenu": ""
},
{
"active": true,
"chain_settings": {
"chain_links": [
{
"action_name": "Copy To Clipboard",
"action_settings": {
"allow_multiple": true,
"template": "program: containing_folder()"
}
}
],
"refresh_gui": true
},
"image": "clipboard.png",
"menuText": "Copy Path to Clipboard",
"subMenu": ""
},
{
"active": true,
"chain_settings": {},
"image": "",
"menuText": "",
"subMenu": ""
},
{
"active": true,
"chain_settings": {
"chain_links": [
{
"action_name": "Single Field Edit",
"action_settings": {
"col_name": "#lastread",
"template": "program:\n\t\n\tif \n\t\tcheck_yes_no('#onkobo', 1, 0, 0)\n\t\tthen format_date(today(),'iso')\nelse $$#lastread\nfi",
"value_type": "template"
},
"comment": "Set #lastread (TEMPLATE)"
},
{
"action_name": "Single Field Edit",
"action_settings": {
"col_name": "#percentread",
"value": 100,
"value_type": "predefined"
},
"comment": "Set #percentread to 100",
"start_time": {
"__class__": "datetime.datetime",
"__value__": "2020-11-27T20:16:25.403862+00:00"
}
},
{
"action_name": "Single Field Edit",
"action_settings": {
"col_name": "#kobobookmark",
"value_type": "clear"
},
"comment": "Clear #kobobookmark"
},
{
"action_name": "Single Field Edit",
"action_settings": {
"col_name": "#ratings",
"value_type": "prompt"
},
"comment": "Set rating",
"condition_settings": {
"affect_validation": false,
"cmp_type": "=",
"datatype": "text",
"icon": "",
"template": "program: selection_count()",
"tooltip": "",
"value": "1"
},
"start_time": {
"__class__": "datetime.datetime",
"__value__": "2020-11-27T20:16:25.528879+00:00"
}
},
{
"action_name": "Calibre Actions",
"action_settings": {
"disable_busy_cursor": false,
"selection": [
{
"display": "Remove from list: To Be Read",
"path": [
"Reading List",
"Remove from list",
"Remove from list: To Be Read"
]
}
],
"wait_jobs": false,
"wait_progress": false
},
"comment": "Remove from TBR list"
},
{
"action_name": "Refresh View",
"action_settings": {},
"comment": "Refresh book list"
}
],
"refresh_gui": true
},
"image": "Bookmark.png",
"menuText": "Mark as Read",
"subMenu": ""
},
{
"active": true,
"chain_settings": {
"chain_links": [
{
"action_name": "Single Field Edit",
"action_settings": {
"col_name": "#percentread",
"value": 0,
"value_type": "predefined"
},
"comment": "Set #percentread to 0"
}
],
"refresh_gui": true
},
"image": "Bookmark.png",
"menuText": "Mark as Unread",
"subMenu": ""
},
{
"active": true,
"chain_settings": {
"chain_links": [
{
"action_name": "Single Field Edit",
"action_settings": {
"col_name": "#percentread",
"value": 100,
"value_type": "predefined"
},
"comment": "Set #percentread to 100"
},
{
"action_name": "Single Field Edit",
"action_settings": {
"col_name": "rating",
"value_type": "prompt"
},
"comment": "Set rating"
},
{
"action_name": "Calibre Actions",
"action_settings": {
"disable_busy_cursor": false,
"selection": [
{
"display": "Remove from list: To Be Read",
"path": [
"Reading List",
"Remove from list",
"Remove from list: To Be Read"
]
}
],
"wait_jobs": false,
"wait_progress": false
},
"comment": "Remove from To Be Read list"
},
{
"action_name": "Calibre Actions",
"action_settings": {
"disable_busy_cursor": false,
"selection": [
{
"display": "Add to list: Remove from Device",
"path": [
"Reading List",
"Add to list",
"Add to list: Remove from Device"
]
}
],
"wait_jobs": false,
"wait_progress": false
},
"comment": "Add to Remove from Device list"
},
{
"action_name": "Single Field Edit",
"action_settings": {
"col_name": "#onkobo",
"value_type": "clear"
},
"comment": "Clear #onkobo value"
},
{
"action_name": "Single Field Edit",
"action_settings": {
"col_name": "#kobobookmark",
"value_type": "clear"
},
"comment": "Clear #kobobookmark value"
},
{
"action_name": "Single Field Edit",
"action_settings": {
"col_name": "#kobopath",
"value_type": "clear"
},
"comment": "Clear #kobopath value"
},
{
"action_name": "Single Field Edit",
"action_settings": {
"col_name": "#kobocoll",
"value_type": "clear"
},
"comment": "Clear Kobo collections"
}
],
"refresh_gui": true
},
"image": "library.png",
"menuText": "Return Library Book",
"subMenu": ""
},
{
"active": true,
"chain_settings": {
"chain_links": [
{
"action_name": "Open Tag Manager",
"action_settings": {
"col_name": "tags"
},
"comment": "Open tags manager"
}
],
"refresh_gui": true
},
"condition_settings": {
"affect_menu": true,
"cmp_type": "=",
"datatype": "number",
"icon": "",
"template": "program: selection_count()",
"tooltip": "",
"value": 1.0
},
"image": "tags.png",
"menuText": "Quick Open Tags Manager",
"subMenu": ""
},
{
"active": true,
"chain_settings": {},
"image": "",
"menuText": "",
"subMenu": ""
},
{
"active": true,
"chain_settings": {
"chain_links": [
{
"action_name": "Single Field Edit",
"action_settings": {
"col_name": "tags",
"value": [
false,
"",
"@cleanup, "
],
"value_type": "predefined"
},
"comment": "Remove @cleanup tag"
}
],
"refresh_gui": true
},
"image": "cleanup.png",
"menuText": "Cleanup: Remove @cleanup",
"subMenu": "Cleanup Tasks"
},
{
"active": true,
"chain_settings": {
"chain_links": [
{
"action_name": "Calibre Actions",
"action_settings": {
"disable_busy_cursor": false,
"selection": [
{
"display": "Extract ISBN",
"path": [
"Extract ISBN"
]
}
],
"wait_jobs": false,
"wait_progress": false
},
"comment": "Extract ISBN"
},
{
"action_name": "Calibre Actions",
"action_settings": {
"disable_busy_cursor": false,
"selection": [
{
"display": "Estimate page/word counts",
"path": [
"Count Pages",
"Estimate page/word counts"
]
}
],
"wait_jobs": false,
"wait_progress": false
},
"comment": "Count pages"
}
],
"refresh_gui": true
},
"image": "cleanup.png",
"menuText": "Cleanup: ISBN + Pagecount",
"subMenu": "Cleanup Tasks"
},
{
"active": true,
"chain_settings": {
"chain_links": [
{
"action_name": "Calibre Actions",
"action_settings": {
"disable_busy_cursor": true,
"selection": [
{
"display": "Generate Cover",
"path": [
"Generate Cover"
],
"paths_text": ""
}
],
"wait_jobs": true,
"wait_progress": true
},
"comment": "Open Generate Covers dialog"
},
{
"action_name": "Calibre Actions",
"action_settings": {
"disable_busy_cursor": true,
"selection": [
{
"display": "Polish books",
"path": [
"Polish Books"
],
"paths_text": ""
}
],
"wait_jobs": true,
"wait_progress": true
},
"comment": "Open Polish ePub dialog"
}
],
"refresh_gui": true
},
"image": "cleanup.png",
"menuText": "Cleanup: Generate Cover",
"subMenu": "Cleanup Tasks"
},
{
"active": true,
"chain_settings": {
"chain_links": [
{
"action_name": "Single Field Edit",
"action_settings": {
"col_name": "identifiers",
"template": "program:\n\tpublisher = $publisher;\n\tids = $identifiers;\n\tstatus = $#fanficstatus;\n\tu = select(ids, 'url');\n\n\tif publisher == 'Archive of Our Own' && u && status != 'Anthology' then\n\t\tn = re(u, '^https://archiveofourown.org/works/(\\d+)$', '\\1');\n\t\tids = list_union(ids, strcat('ao3:', n), ',')\n\tfi;\n\tids",
"value_type": "template"
},
"comment": "Convert AO3 identifiers (TEMPLATE)"
},
{
"action_name": "Single Field Edit",
"action_settings": {
"col_name": "identifiers",
"template": "program:\n\tpublisher = $publisher;\n\tids = $identifiers;\n\tstatus = $#fanficstatus;\n\tu = select(ids, 'url');\n\n\tif publisher == 'FanFiction.net' && u && status != 'Anthology' then\n\t\tn = re(u, '^https://www.fanfiction.net/s/(\\d+)/(\\d+)/.*', '\\1');\n\t\tids = list_union(ids, strcat('ffnet:', n), ',')\n\tfi;\n\tids",
"value_type": "template"
},
"comment": "Convert FFNet identifiers (TEMPLATE)"
},
{
"action_name": "Single Field Edit",
"action_settings": {
"col_name": "identifiers",
"template": "program:\n\tpublisher = $publisher;\n\tids = $identifiers;\n\tu = select(ids, 'uri');\n\tg = select(ids, 'gutenberg');\n\n\tif publisher == 'Project Gutenberg' && u != g then\n\t\tn = re(u, '^http://www.gutenberg.org/(\\d+)', '\\1');\n\t\tids = list_union(ids, strcat('gutenberg:', n), ',')\n\tfi;\n\n\tif publisher == 'Project Gutenberg' && u && g then\n\t\tids = list_difference(ids, strcat('uri:', u), ',')\n\tfi;\n\tids",
"value_type": "template"
},
"comment": "Convert Project Gutenberg identifiers (TEMPLATE)"
}
],
"refresh_gui": true
},
"image": "cleanup.png",
"menuText": "Cleanup: Convert identifiers",
"subMenu": "Cleanup Tasks"
},
{
"active": true,
"chain_settings": {},
"image": "",
"menuText": "",
"subMenu": "Cleanup Tasks"
},
{
"active": true,
"chain_settings": {
"chain_links": [
{
"action_name": "Single Field Edit",
"action_settings": {
"col_name": "#kobocoll",
"template": "program: \n\tcolumnupdate_kobocoll()",
"value_type": "template"
},
"comment": "Update #kobocoll (TEMPLATE)"
}
],
"refresh_gui": true
},
"image": "cleanup.png",
"menuText": "Cleanup: Update Kobo Collections",
"subMenu": "Cleanup Tasks"
},
{
"active": true,
"chain_settings": {
"chain_links": [
{
"action_name": "Single Field Edit",
"action_settings": {
"col_name": "#kobopath",
"template": "program:\n\tcolumnupdate_kobopath()",
"value_type": "template"
},
"comment": ""
}
],
"refresh_gui": true
},
"image": "cleanup.png",
"menuText": "Cleanup: Update Kobo Path",
"subMenu": "Cleanup Tasks"
},
{
"active": true,
"chain_settings": {
"chain_links": [
{
"action_name": "Single Field Edit",
"action_settings": {
"col_name": "#kobobookmark",
"template": "program:\n\tcolumnupdate_bookmarkincrement()",
"value_type": "template"
},
"comment": "Increment bookmark by one (TEMPLATE)"
}
],
"refresh_gui": true
},
"image": "cleanup.png",
"menuText": "Cleanup: Increment fanfic bookmark",
"subMenu": "Cleanup Tasks"
},
{
"active": true,
"chain_settings": {
"chain_links": [
{
"action_name": "Single Field Edit",
"action_settings": {
"col_name": "#kobobookmark",
"value_type": "clear"
},
"comment": "Clear bookmark"
}
],
"refresh_gui": true
},
"image": "cleanup.png",
"menuText": "Cleanup: Clear Kobo bookmarks",
"subMenu": "Cleanup Tasks"
},
{
"active": true,
"chain_settings": {
"chain_links": [
{
"action_name": "Calibre Actions",
"action_settings": {
"disable_busy_cursor": false,
"selection": [
{
"display": "Clean the selecteds Comments",
"path": [
"Comments Cleaner",
"Clean the selecteds Comments"
]
}
]
},
"comment": "Clean comments"
},
{
"action_name": "Single Field Edit",
"action_settings": {
"col_name": "#fanficstatus",
"template": "program:\nd1 = format_date(today(),'iso');\nd2 = $$#fanficupdated;\nstatus = $#fanficstatus;\n\n\tif\n\t\tand(\n\t\t\tstatus=='In-Progress',\n\t\t\tdays_between(d1, d2) ># 365,\n\t\t\t)\n\tthen\n\t\t\"Abandoned\"\n\t\telif\n\t\t\tand(\n\t\t\t\tstatus=='In-Progress',\n\t\t\t\t$#fanficerror,\n\t\t\t\t)\n\t\tthen\n\t\t\t\"Abandoned\"\n\n\telse\n\t\tstatus\n\tfi",
"value_type": "template"
},
"comment": "Set old/errored fics as abandoned (TEMPLATE)"
},
{
"action_name": "Single Field Edit",
"action_settings": {
"col_name": "identifiers",
"template": "program:\n\tpublisher = $publisher;\n\tids = $identifiers;\n\tstatus = $#fanficstatus;\n\tu = select(ids, 'url');\n\n\tif publisher == 'Archive of Our Own' && u && status != 'Anthology' then\n\t\tn = re(u, '^https://archiveofourown.org/works/(\\d+)$', '\\1');\n\t\tids = list_union(ids, strcat('ao3:', n), ',')\n\tfi;\n\tids",
"value_type": "template"
},
"comment": "Convert url: identifiers to ao3: (TEMPLATE)"
},
{
"action_name": "Single Field Edit",
"action_settings": {
"col_name": "identifiers",
"template": "program:\n\tpublisher = $publisher;\n\tids = $identifiers;\n\tstatus = $#fanficstatus;\n\tu = select(ids, 'url');\n\n\tif publisher == 'FanFiction.net' && u && status != 'Anthology' then\n\t\tn = re(u, '^https://www.fanfiction.net/s/(\\d+)/(\\d+)/.*', '\\1');\n\t\tids = list_union(ids, strcat('ffnet:', n), ',')\n\tfi;\n\tids",
"value_type": "template"
},
"comment": "Convert url: identifiers to ffnet: (TEMPLATE)"
},
{
"action_name": "Single Field Edit",
"action_settings": {
"col_name": "identifiers",
"template": "program:\n\tpublisher = $publisher;\n\tids = $identifiers;\n\tstatus = $#fanficstatus;\n\tu = select(ids, 'url');\n\n\tif 'Completed|Oneshot|Abandoned' in status && u &&\n\t\t\t(select(ids, 'ao3') || select(ids, 'ffnet')) then\n\t\tids = list_difference(ids, strcat('url:', u), ',')\n\tfi;\n\tids",
"value_type": "template"
},
"comment": "Remove url: identifiers for Completed/Oneshots (TEMPLATE)"
},
{
"action_name": "Single Field Edit",
"action_settings": {
"col_name": "tags",
"template": "program:\n\tstatus = $#fanficstatus;\n\tt = $tags;\n\t\n\tif \n\t\tstatus == 'Anthology'\n\tthen\n\t\tt = list_difference(t, 'In-Progress,Complete', ',')\t\t\n\telse\n\t\tt\n\tfi",
"value_type": "template"
},
"comment": "Anthology: Remove incorrect status tags (TEMPLATE)"
},
{
"action_name": "Single Field Edit",
"action_settings": {
"col_name": "#fanficcat",
"template": "program:\n\tf =\tlist_sort($#fanficcat,0,',');\n\n\tif \n\t\tcontains(\n\t\t\tf, '^Crossover, Mass Effect Trilogy, Mass Effect: Andromeda$', '1', ''\n\t\t)\n\tthen \n\t\t'Mass Effect Trilogy, Mass Effect: Andromeda' \n\telif\n\t\tcontains(\n\t\t\tf, '^Crossover, Half-Life, Portal$', '1', ''\n\t\t)\t\n\t\tthen 'Half-Life, Portal' \n\telse\n\t\t$#fanficcat\n\tfi",
"value_type": "template"
},
"comment": "Fix #fanficcat incorrectly marked Crossover (TEMPLATE)"
},
{
"action_name": "Single Field Edit",
"action_settings": {
"col_name": "tags",
"template": "program:\n\tf =\tlist_sort($#fanficcat,0,',');\n\n\tif \n\t\tcontains(\n\t\t\tf, '^Mass Effect Trilogy, Mass Effect: Andromeda$', '1', ''\n\t\t)\n\tthen \n\t\t'Fanfiction.Mass Effect' \n\n\telif\n\t\tcontains(\n\t\t\tf, '^Half-Life, Portal$', '1', ''\n\t\t)\t\n\t\tthen 'Fanfiction.Half-Life & Portal' \n\n\telse\n\t\t$tags\n\n\tfi",
"value_type": "template"
},
"comment": "Fix tags incorrectly marked crossover (TEMPLATE)"
},
{
"action_name": "Single Field Edit",
"action_settings": {
"col_name": "tags",
"value": [
false,
"",
"@cleanup, "
],
"value_type": "predefined"
},
"comment": "Remove @cleanup tag"
}
],
"refresh_gui": true
},
"image": "store.png",
"menuText": "Cleanup: Fanfiction",
"subMenu": ""
},
{
"active": true,
"chain_settings": {
"chain_links": [
{
"action_name": "Single Field Edit",
"action_settings": {
"col_name": "#percentread",
"value": 0,
"value_type": "predefined"
},
"comment": "Set #percentread to 0"
},
{
"action_name": "Calibre Actions",
"action_settings": {
"disable_busy_cursor": false,
"selection": [
{
"display": "Clean the selecteds Comments",
"path": [
"Comments Cleaner",
"Clean the selecteds Comments"
],
"paths_text": "Clean the selecteds Comments"
}
]
},
"comment": "Run Comments Cleaner"
},
{
"action_name": "Calibre Actions",
"action_settings": {
"disable_busy_cursor": false,
"selection": [
{
"display": "Extract ISBN",
"path": [
"Extract ISBN"
],
"paths_text": ""
}
],
"wait_jobs": true,
"wait_progress": true
},
"comment": "Extract ISBN"
},
{
"action_name": "Calibre Actions",
"action_settings": {
"disable_busy_cursor": false,
"selection": [
{
"display": "Estimate page/word counts",
"path": [
"Count Pages",
"Estimate page/word counts"
],
"paths_text": "Estimate page/word counts"
}
],
"wait_jobs": true,
"wait_progress": true
},
"comment": "Count pages"
}
],
"refresh_gui": true
},
"image": "store.png",
"menuText": "Cleanup: Fiction",
"subMenu": ""
},
{
"active": true,
"chain_settings": {
"chain_links": [
{
"action_name": "Single Field Edit",
"action_settings": {
"col_name": "#onkobo",
"value": true,
"value_type": "predefined"
},
"comment": "Set #onkobo to Yes"
},
{
"action_name": "Single Field Edit",
"action_settings": {
"col_name": "#kobocoll",
"value": [
false,
"[Kobo Store], ",
""
],
"value_type": "predefined"
},
"comment": "Add [Kobo Store] to #kobocoll"
},
{
"action_name": "Single Field Edit",
"action_settings": {
"col_name": "#kobocoll",
"template": "program: \n\tcolumnupdate_kobocoll()",
"value_type": "template"
},
"comment": "Update #kobocoll based on genres (TEMPLATE)"
},
{
"action_name": "Single Field Edit",
"action_settings": {
"col_name": "#kobopath",
"template": "program:\n\n\tif\n\t\t$#kobopath == ''\n\tthen\n\t\tcolumnupdate_kobopath()\n\telse\n\t\t$#kobopath fi",
"value_type": "template"
},
"comment": "Generate #kobopath (TEMPLATE)"
}
],
"refresh_gui": true
},
"image": "store.png",
"menuText": "Cleanup: Kobo",
"subMenu": ""
},
{
"active": true,
"chain_settings": {
"chain_links": [
{
"action_name": "Single Field Edit",
"action_settings": {
"col_name": "#onkobo",
"value": true,
"value_type": "predefined"
},
"comment": "Set #onkobo to yes"
},
{
"action_name": "Single Field Edit",
"action_settings": {
"col_name": "#kobocoll",
"value": [
false,
"Loans, ",
""
],
"value_type": "predefined"
},
"comment": "Add Loans to #kobocoll"
},
{
"action_name": "Single Field Edit",
"action_settings": {
"col_name": "#kobopath",
"value": "Loans",
"value_type": "predefined"
},
"comment": "Add Loans to #kobopath"
},
{
"action_name": "Single Field Edit",
"action_settings": {
"col_name": "#percentread",
"value": 0,
"value_type": "predefined"
},
"comment": "Set #percentread to 100"
},
{
"action_name": "Calibre Actions",
"action_settings": {
"disable_busy_cursor": true,
"selection": [
{
"display": "Add files to selected book records",
"path": [
"Add Books",
"Add files to selected book records"
],
"paths_text": "Add files to selected book records"
}
],
"wait_jobs": false,
"wait_progress": false
},
"comment": "Add OVERDRIVE file"
},
{
"action_name": "Calibre Actions",
"action_settings": {
"disable_busy_cursor": false,
"selection": [
{
"display": "Estimate page/word counts",
"path": [
"Count Pages",
"Estimate page/word counts"
],
"paths_text": "Estimate page/word counts"
}
],
"wait_jobs": true,
"wait_progress": true
},
"comment": "Count pages"
},
{
"action_name": "Calibre Actions",
"action_settings": {
"disable_busy_cursor": false,
"selection": [
{
"display": "Extract ISBN",
"path": [
"Extract ISBN"
]
}
],
"wait_jobs": false,
"wait_progress": false
},
"comment": "Extract ISBN"
},
{
"action_name": "Calibre Actions",
"action_settings": {
"disable_busy_cursor": true,
"selection": [
{
"display": "Search for selected books",
"path": [
"Overdrive Link",
"Search for selected books"
]
}
],
"wait_jobs": true,
"wait_progress": true
},
"comment": "Get Overdrive links"
}
],
"refresh_gui": true
},
"image": "store.png",
"menuText": "Cleanup: Loans",
"subMenu": ""
},
{
"active": true,
"chain_settings": {},
"image": "",
"menuText": "",
"subMenu": ""
},
{
"active": true,
"chain_settings": {
"chain_links": [
{
"action_name": "Single Field Edit",
"action_settings": {
"col_name": "#kobopath",
"template": "program:\n\n\tif\n\t\t$#kobopath == ''\n\tthen\n\t\tcolumnupdate_kobopath()\n\telse\n\t\t$#kobopath fi",
"value_type": "template"
},
"comment": "Generate #kobopath column (STORED TEMPLATE)"
},
{
"action_name": "Single Field Edit",
"action_settings": {
"col_name": "#kobocoll",
"template": "program: \n\tcolumnupdate_kobocoll()",
"value_type": "template"
},
"comment": "Update #kobocoll column (STORED TEMPLATE)"
},
{
"action_name": "Single Field Edit",
"action_settings": {
"col_name": "#percentread",
"template": "program:\nf = re($#chapters, '(.*)/.*', '\\1');\ns = re($#chapters, '.*/(.*)', '\\1');\n\n\tif \n\t\t$#chapters != 'Not Set'\n\t\t\tthen \n\t\t\t\tif and(\n\t\t\t\t\t\t$$#fanficcat,\n\t\t\t\t\t\tcheck_yes_no('#onkobo', 0, 1, 1),\n\t\t\t\t\t\t$$#percentread ==#100,\n\t\t\t\t\t\t(s - f) ==# 1\n\t\t\t\t\t\t) \n\t\t\t\tthen '98' \n\t\t\t\telse $$#percentread\n\t\t\tfi\n\n\t\telse $$#percentread\n\tfi",
"value_type": "template"
},
"comment": "Update #percentread for fanfics (TEMPLATE)"
},
{
"action_name": "Calibre Actions",
"action_settings": {
"disable_busy_cursor": false,
"selection": [
{
"display": "Add to list: To Be Read",
"path": [
"Reading List",
"Add to list",
"Add to list: To Be Read"
]
}
],
"wait_jobs": false,
"wait_progress": false
},
"comment": "Add to TBR list (VARIABLE)",
"condition_settings": {
"affect_validation": false,
"cmp_type": "=",
"datatype": "text",
"icon": "template_funcs.png",
"template": "program: globals(_variant_argument)",
"tooltip": "",
"value": "add_yes"
}
},
{
"action_name": "Calibre Actions",
"action_settings": {
"disable_busy_cursor": false,
"selection": [
{
"display": "Send to device",
"path": [
"Send To Device"
],
"paths_text": ""
}
]
},
"comment": "Send to device if device is connected",
"condition_settings": {
"affect_validation": false,
"cmp_type": "=",
"datatype": "text",
"icon": "reader.png",
"template": "program: connected_device_name('main')",
"tooltip": "Kobo Libra H2O connected",
"value": "Kobo Libra H2O"
}
},
{
"action_name": "Calibre Actions",
"action_settings": {
"disable_busy_cursor": false,
"selection": [
{
"display": "Add to list: Send to Device",
"path": [
"Reading List",
"Add to list",
"Add to list: Send to Device"
],
"paths_text": "Add to list|Add to list: Send to Device"
}
]
},
"comment": "Add to \"Send to Device\" list if device is not connected",
"condition_settings": {
"affect_validation": false,
"cmp_type": "=",
"datatype": "text",
"icon": "reader.png",
"template": "program: connected_device_name('main')",
"tooltip": "No device connected",
"value": ""
}
},
{
"action_name": "Single Field Edit",
"action_settings": {
"col_name": "#onkobo",
"template": "program:\n\n\tif \n\t\t$#fanficcat \n\t&& \n\t\tcheck_yes_no('#onkobo', 0, 1, 1) \n\tthen \n\t\t'No' \n\n\telif \n\t\t$$#percentread != '0' \n\tthen \n\t\t'No' \n\telse \n\t\t'Yes'\n\tfi",
"value_type": "template"
},
"comment": "Set #onkobo column (TEMPLATE)"
},
{
"action_name": "Refresh Current Search",
"action_settings": {},
"comment": "Refresh current search"
}
],
"refresh_gui": true
},
"image": "sync.png",
"menuText": "Send to Device",
"subMenu": "",
"variation_settings": {
"template": "program:\n add_chain_variant('Send to Device','add_no', '', 'sync.png');\n add_chain_variant('Send to Device + Add to TBR List','add_yes', '', 'sync.png');"
}
},
{
"active": true,
"chain_settings": {},
"image": "",
"menuText": "",
"subMenu": ""
},
{
"active": true,
"chain_settings": {
"chain_links": [
{
"action_name": "Calibre Actions",
"action_settings": {
"disable_busy_cursor": true,
"selection": [
{
"display": "Store/Restore current bookmark",
"path": [
"KoboUtilities",
"Store/Restore current bookmark"
],
"paths_text": "Store/Restore current bookmark"
}
],
"wait_jobs": true,
"wait_progress": true
},
"comment": "Restore bookmarks"
},
{
"action_name": "Calibre Actions",
"action_settings": {
"disable_busy_cursor": false,
"selection": [
{
"display": "Upload covers for Selected Books",
"path": [
"KoboUtilities",
"Upload covers for Selected Books"
]
}
],
"wait_jobs": false,
"wait_progress": false
},
"comment": "Upload cover"
},
{
"action_name": "Single Field Edit",
"action_settings": {
"col_name": "#onkobo",
"value": true,
"value_type": "predefined"
},
"comment": "Set #onkobo to yes"
},
{
"action_name": "Calibre Actions",
"action_settings": {
"disable_busy_cursor": true,
"selection": [
{
"display": "Update cached metadata on device",
"path": [
"Location Manager",
"Device",
"Update cached metadata on device"
],
"paths_text": "Device|Update cached metadata on device"
}
],
"wait_jobs": true,
"wait_progress": true
},
"comment": "Update cached metadata",
"condition_settings": {
"affect_validation": false,
"cmp_type": "=",
"datatype": "text",
"icon": "reader.png",
"template": "",
"tooltip": "",
"value": ""
}
}
],
"refresh_gui": true
},
"condition_settings": {
"affect_menu": true,
"cmp_type": "=",
"datatype": "text",
"icon": "reader.png",
"template": "program: connected_device_name('main')",
"tooltip": "Kobo Libra H2O connected",
"value": "Kobo Libra H2O"
},
"image": "sync.png",
"menuText": "Restore Bookmarks on Device",
"subMenu": ""
},
{
"active": true,
"chain_settings": {
"chain_links": [
{
"action_name": "Calibre Actions",
"action_settings": {
"disable_busy_cursor": false,
"selection": [
{
"display": "Update ToC for Selected Books",
"path": [
"KoboUtilities",
"Update ToC for Selected Books"
],
"paths_text": "Update ToC for Selected Books"
}
],
"wait_jobs": false,
"wait_progress": false
},
"comment": "Update TOC",
"condition_settings": {
"affect_validation": false,
"cmp_type": "=",
"datatype": "text",
"icon": "template_funcs.png",
"template": "",
"tooltip": "",
"value": "updatefanfic"
}
},
{
"action_name": "Calibre Actions",
"action_settings": {
"disable_busy_cursor": true,
"selection": [
{
"display": "Store/Restore current bookmark",
"path": [
"KoboUtilities",
"Store/Restore current bookmark"
],
"paths_text": "Store/Restore current bookmark"
}
],
"wait_jobs": true,
"wait_progress": true
},
"comment": "Restore bookmarks"
},
{
"action_name": "Single Field Edit",
"action_settings": {
"col_name": "#onkobo",
"value": true,
"value_type": "predefined"
},
"comment": "Set #onkobo to yes"
},
{
"action_name": "Calibre Actions",
"action_settings": {
"disable_busy_cursor": true,
"selection": [
{
"display": "Update cached metadata on device",
"path": [
"Location Manager",
"Device",
"Update cached metadata on device"
],
"paths_text": "Device|Update cached metadata on device"
}
],
"wait_jobs": true,
"wait_progress": true
},
"comment": "Update cached metadata",
"condition_settings": {
"affect_validation": false,
"cmp_type": "=",
"datatype": "text",
"icon": "reader.png",
"template": "",
"tooltip": "",
"value": ""
}
}
],
"refresh_gui": true
},
"condition_settings": {
"affect_menu": true,
"cmp_type": "=",
"datatype": "text",
"icon": "reader.png",
"template": "program: connected_device_name('main')",
"tooltip": "Kobo Libra H2O connected",
"value": "Kobo Libra H2O"
},
"image": "sync.png",
"menuText": "Update Fanfic on Device",
"subMenu": ""
},
{
"active": true,
"chain_settings": {
"chain_links": [
{
"action_name": "Calibre Actions",
"action_settings": {
"disable_busy_cursor": false,
"selection": [
{
"display": "Remove from list: To Be Read",
"path": [
"Reading List",
"Remove from list",
"Remove from list: To Be Read"
],
"paths_text": "Remove from list|Remove from list: To Be Read"
}
],
"wait_jobs": false,
"wait_progress": false
},
"comment": "Remove from TBR list"
},
{
"action_name": "Single Field Edit",
"action_settings": {
"col_name": "#percentread",
"value": 100,
"value_type": "predefined"
},
"comment": "Set #percentread to 100"
},
{
"action_name": "Single Field Edit",
"action_settings": {
"col_name": "#kobobookmark",
"template": "program:\n\tinput = field('#kobobookmark');\n\tstatus = $#fanficstatus;\n\n\tif \n\t\tstatus == 'In-Progress' \n\tthen\n\t\tcolumnupdate_bookmarkincrement()\n\telse \n\t\tinput\n\tfi",
"value_type": "template"
},
"comment": "Increment bookmark by one (TEMPLATE)"
},
{
"action_name": "Calibre Actions",
"action_settings": {
"disable_busy_cursor": false,
"selection": [
{
"display": "Store/Restore current bookmark",
"path": [
"KoboUtilities",
"Store/Restore current bookmark"
]
}
],
"wait_jobs": false,
"wait_progress": false
},
"comment": "Restore bookmarks to Kobo"
},
{
"action_name": "Calibre Actions",
"action_settings": {
"disable_busy_cursor": false,
"selection": [
{
"display": "Update cached metadata on device",
"path": [
"Location Manager",
"Device",
"Update cached metadata on device"
]
}
],
"wait_jobs": false,
"wait_progress": false
},
"comment": "Update cached metadata"
}
],
"refresh_gui": true
},
"condition_settings": {
"affect_menu": true,
"cmp_type": "=",
"datatype": "text",
"icon": "reader.png",
"template": "program: connected_device_name('main')",
"tooltip": "Kobo Libra H2O connected",
"value": "Kobo Libra H2O"
},
"image": "sync.png",
"menuText": "Mark Fanfic as Read on Device",
"subMenu": ""
},
{
"active": true,
"chain_settings": {},
"image": "",
"menuText": "",
"subMenu": ""
},
{
"active": true,
"chain_settings": {
"chain_links": [
{
"action_name": "Confirm",
"action_settings": {
"message": "Are you sure you want to proceed?"
},
"comment": "Confirmation"
},
{
"action_name": "Calibre Actions",
"action_settings": {
"disable_busy_cursor": false,
"selection": [
{
"display": "Remove from list: To Be Read",
"path": [
"Reading List",
"Remove from list",
"Remove from list: To Be Read"
]
}
],
"wait_jobs": false,
"wait_progress": false
},
"comment": "Remove from To Be Read list"
},
{
"action_name": "Calibre Actions",
"action_settings": {
"disable_busy_cursor": false,
"selection": [
{
"display": "Add to list: Remove from Device",
"path": [
"Reading List",
"Add to list",
"Add to list: Remove from Device"
]
}
],
"wait_jobs": false,
"wait_progress": false
},
"comment": "Add to Remove from Device list"
},
{
"action_name": "Single Field Edit",
"action_settings": {
"col_name": "#onkobo",
"value_type": "clear"
},
"comment": "Clear #onkobo value"
},
{
"action_name": "Single Field Edit",
"action_settings": {
"col_name": "#kobobookmark",
"value_type": "clear"
},
"comment": "Clear #kobobookmark value"
},
{
"action_name": "Single Field Edit",
"action_settings": {
"col_name": "#kobopath",
"value_type": "clear"
},
"comment": "Clear #kobopath value"
},
{
"action_name": "Single Field Edit",
"action_settings": {
"col_name": "#kobocoll",
"value_type": "clear"
},
"comment": "Clear Kobo collections"
}
],
"refresh_gui": true
},
"image": "remove_books.png",
"menuText": "Remove from Device",
"subMenu": ""
},
{
"active": true,
"chain_settings": {},
"image": "",
"menuText": "",
"subMenu": ""
},
{
"active": true,
"chain_settings": {
"chain_links": [
{
"action_name": "Calibre Actions",
"action_settings": {
"disable_busy_cursor": false,
"selection": [
{
"display": "View",
"path": [
"View",
"View"
],
"paths_text": "View"
}
],
"wait_jobs": false,
"wait_progress": false
},
"comment": "Open book",
"condition_settings": {
"affect_validation": false,
"cmp_type": "=",
"datatype": "text",
"icon": "",
"template": "program:\n$formats != 'PAPERBOOK' && $formats != 'OVERDRIVE' && current_virtual_library_name() != 'Physical Books' && virtual_libraries() !='Loans'",
"tooltip": "",
"value": "1"
}
},
{
"action_name": "Single Field Edit",
"action_settings": {
"col_name": "#percentread",
"template": "program:\n\tif $$#percentread ==# '0' && $$#percentread !='None' then '1'\n\telse $$#percentread\n\tfi",
"value_type": "template"
},
"comment": "Set #percentread to 1"
},
{
"action_name": "Single Field Edit",
"action_settings": {
"col_name": "#lastread",
"template": "program:\n\tif $$#percentread != '100' && $$#percentread !='None' then today()\n\telse $$#lastread\n\tfi",
"value_type": "template"
},
"comment": "Set #lastread to current time"
},
{
"action_name": "Refresh View",
"action_settings": {},
"comment": "Refresh view"
}
],
"refresh_gui": true
},
"condition_settings": {
"affect_menu": false,
"cmp_type": "=",
"datatype": "number",
"icon": "",
"template": "program: selection_count()",
"tooltip": "",
"value": 1.0
},
"image": "gear.png",
"menuText": "View book",
"subMenu": "Invisible"
},
{
"active": true,
"chain_settings": {
"chain_links": [
{
"action_name": "Sort by field",
"action_settings": {
"sort_filters": [
[
"#lastread",
false
]
]
},
"comment": ""
},
{
"action_name": "Selection Modifier",
"action_settings": {
"restriction": {},
"search": {
"opt": "saved",
"saved_search": "Recently Read"
},
"selection": "chain_modified"
},
"comment": ""
}
],
"refresh_gui": true
},
"image": "gear.png",
"menuText": "View recent books",
"subMenu": "Invisible"
},
{
"active": true,
"chain_settings": {
"chain_links": [
{
"action_name": "Calibre Actions",
"action_settings": {
"disable_busy_cursor": false,
"selection": [
{
"display": "On Device",
"path": [
"View Manager",
"On Device"
],
"paths_text": "On Device"
}
]
},
"comment": "Switch to \"On Device\" view.",
"condition_settings": {
"affect_validation": false,
"cmp_type": "!=",
"datatype": "text",
"icon": "",
"template": "",
"tooltip": "",
"value": "On Device"
}
}
],
"refresh_gui": true
},
"image": "gear.png",
"menuText": "Switch to On Device view",
"subMenu": "Invisible"
},
{
"active": true,
"chain_settings": {
"chain_links": [
{
"action_name": "Switch To VL View",
"action_settings": {
"tabs_config": [
{
"tab_name": "Documentation & Manuals",
"view_name": "Documentation and Manuals"
},
{
"tab_name": "Comics",
"view_name": "Comics"
},
{
"tab_name": "On Device",
"view_name": "On Device"
},
{
"tab_name": "eBooks",
"view_name": "Default"
},
{
"tab_name": "Magazines & Periodicals",
"view_name": "Magazines"
},
{
"tab_name": "Fiction",
"view_name": "Default"
},
{
"tab_name": "Read",
"view_name": "Default"
},
{
"tab_name": "Nonfiction",
"view_name": "Nonfiction"
},
{
"tab_name": "Unread",
"view_name": "Default"
},
{
"tab_name": "Fanfiction",
"view_name": "Fanfiction"
},
{
"tab_name": "Physical Books",
"view_name": "Physical Books"
},
{
"tab_name": "Series",
"view_name": "Series"
},
{
"tab_name": "Loans",
"view_name": "Default"
}
]
},
"comment": ""
},
{
"action_name": "Refresh GUI",
"action_settings": {},
"comment": ""
}
],
"refresh_gui": true
},
"image": "gear.png",
"menuText": "Switch VL View",
"subMenu": "Invisible"
},
{
"active": false,
"chain_settings": {},
"image": "",
"menuText": "",
"subMenu": ""
},
{
"active": false,
"chain_settings": {
"chain_links": [
{
"action_name": "Single Field Edit",
"action_settings": {
"col_name": "marked",
"value_type": "clear"
},
"comment": "Unmark books"
},
{
"action_name": "Selection Modifier",
"action_settings": {
"restriction": {},
"search": {
"opt": "clear"
},
"selection": "chain_modified"
},
"comment": "Clear search if 0 books marked",
"condition_settings": {
"affect_validation": false,
"cmp_type": "=",
"datatype": "number",
"icon": "",
"template": "program:\n\tmarked = from_search('id', 'marked:true');\n\tcount(marked, ',')",
"tooltip": "",
"value": 0.0
}
},
{
"action_name": "Refresh Current Search",
"action_settings": {},
"comment": "Refresh search"
}
],
"refresh_gui": true
},
"image": "snippets.png",
"menuText": "Clear marked books",
"subMenu": "Snippets"
}
]
},
"eventVariants": [],
"events": {
"eventEntries": [
{
"active": true,
"event_name": "Device Connected",
"event_settings": {
"countdown_settings": {
"duration": 5,
"enabled": true,
"message": "Action chain event starting shortly"
},
"event_members": [
{
"chain_name": "Switch to On Device view"
}
],
"validate": true
}
},
{
"active": true,
"event_name": "VL Tab Changed",
"event_settings": {
"countdown_settings": {
"enabled": false
},
"event_members": [
{
"chain_name": "Switch VL View"
}
],
"event_options": {
"active_when_tabs_hidden": true
},
"validate": true
}
}
]
},
"eventsTableState": {
"column_positions": {
"active": 0,
"errors": 3,
"event_name": 1,
"event_settings": 2
},
"column_sizes": {
"active": 30,
"errors": 41,
"event_name": 300,
"event_settings": 53
},
"hidden_columns": []
},
"gprefs": {
"actionsTableState": {
"column_positions": {
"action_name": 2,
"action_settings": 3,
"comment": 4,
"conditions": 0,
"errors": 5,
"scope": 1
},
"column_sizes": {
"action_name": 162,
"action_settings": 53,
"comment": 397,
"conditions": 71,
"errors": 455,
"scope": 41
},
"hidden_columns": []
},
"chainsTableState": {
"column_positions": {
"active": 0,
"conditions": 1,
"menuText": 2,
"settings": 4,
"subMenu": 3
},
"column_sizes": {
"active": 53,
"conditions": 71,
"menuText": 282,
"settings": 53,
"subMenu": 103
},
"hidden_columns": []
},
"eventMembersTableState": {
"column_positions": {
"chain_name": 1,
"errors": 2,
"icons": 0
},
"column_sizes": {
"chain_name": 300,
"errors": 359,
"icons": 30
},
"hidden_columns": []
},
"eventVariantsTableState": null,
"eventsTableState": null,
"varsTableState": {
"column_positions": {
"": 4,
"iterate": 0,
"name": 2,
"runtime": 1,
"value": 3
},
"column_sizes": {
"": 577,
"iterate": 46,
"name": 150,
"runtime": 57,
"value": 150
},
"hidden_columns": []
}
},
"schemaVersion": 1.8,
"tabsViewsTableStates": {
"column_positions": {
"errors": 2,
"tab_name": 0,
"view_name": 1
},
"column_sizes": {
"errors": 152,
"tab_name": 300,
"view_name": 300
},
"hidden_columns": []
}
}
|