View Single Post
Old 12-18-2020, 02:32 PM   #133
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 11,095
Karma: 76037135
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Here's the JSON for my chain:

Code:
      {
        "active": true,
        "chain_settings": {
          "chain_links": [
            {
              "action_name": "Calibre Actions",
              "action_settings": [
                {
                  "display": "Toggle mark for selected books",
                  "path": [
                    "Mark Books",
                    "Toggle mark for selected books"
                  ],
                  "paths_text": "Toggle mark for selected books"
                }
              ],
              "comment": "Mark books"
            },
            {
              "action_name": "Calibre Actions",
              "action_settings": [
                {
                  "display": "Clean the selecteds Comments",
                  "path": [
                    "Comments Cleaner",
                    "Clean the selecteds Comments"
                  ],
                  "paths_text": "Clean the selecteds Comments"
                }
              ],
              "comment": "Run Comments Cleaner"
            },
            {
              "action_name": "Search And Replace",
              "action_settings": {
                "case_sensitive": true,
                "comma_separated": true,
                "destination_field": "tags",
                "multiple_separator": " ::: ",
                "replace_func": "",
                "replace_mode": "Replace field",
                "replace_with": "",
                "results_count": 999,
                "s_r_dst_ident": "",
                "s_r_error": null,
                "s_r_src_ident": "amazon",
                "s_r_template": "",
                "search_field": "tags",
                "search_for": "@cleanup",
                "search_mode": "Regular expression",
                "starting_from": 1
              },
              "comment": "Remove @cleanup tag"
            },
            {
              "action_name": "Selection Modifier",
              "action_settings": {
                "restriction": {},
                "search": {
                  "opt": "new",
                  "search_text": "publisher:\"=Archive of Our Own\""
                },
                "selection": "chain_modified"
              },
              "comment": "Select AO3 books"
            },
            {
              "action_name": "Search And Replace",
              "action_settings": {
                "case_sensitive": true,
                "comma_separated": true,
                "destination_field": "identifiers",
                "multiple_separator": " ::: ",
                "replace_func": "",
                "replace_mode": "Replace field",
                "replace_with": "\\1",
                "results_count": 999,
                "s_r_dst_ident": "ao3",
                "s_r_error": null,
                "s_r_src_ident": "url",
                "s_r_template": "",
                "search_field": "identifiers",
                "search_for": "https://archiveofourown.org/works/(\\d+)",
                "search_mode": "Regular expression",
                "starting_from": 1
              },
              "comment": "Add ao3: identifiers"
            },
            {
              "action_name": "Selection Modifier",
              "action_settings": {
                "restriction": {},
                "search": {
                  "opt": "new",
                  "search_text": "publisher:\"=FanFiction.net\""
                },
                "selection": "chain_modified"
              },
              "comment": "Select FFnet books"
            },
            {
              "action_name": "Search And Replace",
              "action_settings": {
                "case_sensitive": false,
                "comma_separated": true,
                "destination_field": "identifiers",
                "multiple_separator": " ::: ",
                "replace_func": "",
                "replace_mode": "Replace field",
                "replace_with": "\\1",
                "results_count": 999,
                "s_r_dst_ident": "ffnet",
                "s_r_error": null,
                "s_r_src_ident": "url",
                "s_r_template": "",
                "search_field": "identifiers",
                "search_for": "https://www.fanfiction.net/s/(\\d+)/1/",
                "search_mode": "Regular expression",
                "starting_from": 1
              },
              "comment": "Add ffnet: identifiers"
            },
            {
              "action_name": "Selection Modifier",
              "action_settings": {
                "restriction": {},
                "search": {
                  "opt": "new",
                  "search_text": "not #fanficstatus:\"=Anthology\" and  not #fanficstatus:\"=In-Progress\""
                },
                "selection": "chain_modified"
              },
              "comment": "Select Completed/Oneshot books"
            },
            {
              "action_name": "Search And Replace",
              "action_settings": {
                "case_sensitive": false,
                "comma_separated": true,
                "destination_field": "identifiers",
                "multiple_separator": " ::: ",
                "replace_func": "",
                "replace_mode": "Replace field",
                "replace_with": "",
                "results_count": 999,
                "s_r_dst_ident": "url",
                "s_r_error": null,
                "s_r_src_ident": "",
                "s_r_template": "",
                "search_field": "identifiers",
                "search_for": "(.*)",
                "search_mode": "Regular expression",
                "starting_from": 1
              },
              "comment": "Remove url: identifiers"
            },
            {
              "action_name": "Calibre Actions",
              "action_settings": [
                {
                  "display": "Fanfiction",
                  "path": [
                    "View Manager",
                    "Fanfiction"
                  ],
                  "paths_text": "Fanfiction"
                }
              ],
              "comment": "Switch to Fanfiction view/VL"
            },
            {
              "action_name": "Calibre Actions",
              "action_settings": [
                {
                  "display": "Show marked books",
                  "path": [
                    "Mark Books",
                    "Show marked books"
                  ]
                }
              ],
              "comment": "Show marked books"
            }
          ],
          "refresh_gui": true
        },
        "image": "Fanfiction.png",
        "menuText": "Cleanup: Fanfiction",
        "subMenu": ""
      }
    ]
  }
ownedbycats is offline   Reply With Quote