Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
73 changes: 73 additions & 0 deletions templates/audible-audiobook-clipper.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
{
"schemaVersion": "0.1.0",
"name": "Audiobook (audible / radio.at)",
"behavior": "create",
"noteContentFormat": "",
"properties": [
{
"name": "categories",
"value": "[[Audiobooks Database]]",
"type": "multitext"
},
{
"name": "subcategories",
"value": "",
"type": "multitext"
},
{
"name": "links",
"value": "{{url}}",
"type": "multitext"
},
{
"name": "creators",
"value": "{% set creatorLength = schema:@Audiobook:author[*].name|length %} {% if creatorLength > 0 %}{{schema:@Audiobook:author[*].name|wikilink}} {% else %} {{schema:@Audiobook:author.name|split:\\\",\\\"|replace:\\\" and \\\":\\\"\\\"|trim|wikilink}} {% endif %}",
"type": "multitext"
},
{
"name": "durationString",
"value": "{{schema:@Audiobook:duration}}",
"type": "text"
},
{
"name": "onlineRating",
"value": "{{schema:@Audiobook:aggregateRating.ratingValue}}",
"type": "number"
},
{
"name": "onlineRatingCount",
"value": "{{schema:@Audiobook:aggregateRating.ratingCount}}",
"type": "number"
},
{
"name": "year",
"value": "{{schema:@Audiobook:datePublished}}",
"type": "number"
},
{
"name": "language",
"value": "{% set languageLength = schema:@Audiobook:inLanguage[*].name|length %} {% if languageLength == 0 %} {{schema:@Audiobook:inLanguage|capitalize}} {% else %} {{schema:@Audiobook:inLanguage[*].name|capitalize}} {% endif %}",
"type": "text"
},
{
"name": "description",
"value": "{{schema:@Audiobook:description|markdown}}",
"type": "text"
},
{
"name": "genres",
"value": "{{selector:.product-topictag-impression adbl-chip}}",
"type": "multitext"
},
{
"name": "cover",
"value": "{{schema:@Audiobook:image}}",
"type": "text"
}
],
"triggers": [
"schema:@Audiobook"
],
"noteNameFormat": "{{schema:@Audiobook:name|replace:\"/\":\"⧸\"|safe_name}}",
"path": "Clippings"
}
68 changes: 68 additions & 0 deletions templates/audible-podcast-clipper.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
{
"schemaVersion": "0.1.0",
"name": "Podcast (audible / radio.at)",
"behavior": "create",
"noteContentFormat": "",
"properties": [
{
"name": "categories",
"value": "[[Podcasts Database]]",
"type": "multitext"
},
{
"name": "subcategories",
"value": "",
"type": "multitext"
},
{
"name": "links",
"value": "{{url}}",
"type": "multitext"
},
{
"name": "creators",
"value": "{% set creatorLength = schema:@PodcastSeries:author[*].name|length %} {% if creatorLength > 0 %}{{schema:@PodcastSeries:author[*].name|wikilink}} {% else %} {{schema:@PodcastSeries:author.name|split:\\\",\\\"|replace:\\\" and \\\":\\\"\\\"|trim|wikilink}} {% endif %}",
"type": "multitext"
},
{
"name": "onlineRating",
"value": "{{schema:@PodcastSeries:aggregateRating.ratingValue}}",
"type": "number"
},
{
"name": "onlineRatingCount",
"value": "{{schema:@PodcastSeries:aggregateRating.ratingCount}}",
"type": "number"
},
{
"name": "year",
"value": "{{schema:@PodcastSeries:datePublished}}",
"type": "number"
},
{
"name": "languages",
"value": "{% set languageLength = schema:@PodcastSeries:inLanguage[*].name|length %} {% if languageLength == 0 %} {{schema:@PodcastSeries:inLanguage|capitalize}} {% else %} {{schema:@PodcastSeries:inLanguage[*].name|capitalize}} {% endif %}",
"type": "multitext"
},
{
"name": "description",
"value": "{{schema:@PodcastSeries:description|markdown}}",
"type": "text"
},
{
"name": "genres",
"value": "{{selector:.product-topictag-impression adbl-chip}}",
"type": "multitext"
},
{
"name": "cover",
"value": "{{schema:@PodcastSeries:image}}",
"type": "text"
}
],
"triggers": [
"schema:@PodcastSeries"
],
"noteNameFormat": "{{schema:@PodcastSeries:name|replace:\"/\":\"⧸\"|safe_name}}",
"path": "Clippings"
}
113 changes: 113 additions & 0 deletions templates/boardgamegeek-clipper.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
{
"schemaVersion": "0.1.0",
"name": "BoardGameGeek",
"behavior": "create",
"noteContentFormat": "",
"properties": [
{
"name": "categories",
"value": "[[Boardgames Database]]",
"type": "multitext"
},
{
"name": "subcategories",
"value": "",
"type": "multitext"
},
{
"name": "links",
"value": "{{url}}",
"type": "multitext"
},
{
"name": "reimplements",
"value": "{% set r = selector:li.feature a[name=\\\"classifications-reimplements\\\"] ~ div.feature-description ul.text-block a.ng-binding %} {% set r_length = r|length %} {% if r_length <=5 %} {% for item in r%}[[{{item|safe_name}}]],{% endfor %} {% else %} [[{{r|safe_name}}]] {% endif %}",
"type": "multitext"
},
{
"name": "bggTypes",
"value": "{{selector:li.feature a[name=\\\"classifications-boardgamesubdomain\\\"] ~ div.feature-description a.ng-binding}}",
"type": "multitext"
},
{
"name": "bggCategories",
"value": "{{selector:li.feature a[name=\\\"classifications-boardgamecategory\\\"] ~ div.feature-description ul.text-block a.ng-binding}}",
"type": "multitext"
},
{
"name": "bggMechanisms",
"value": "{{selector:li.feature a[name=\\\"classifications-boardgamemechanic\\\"] ~ div.feature-description ul.text-block a.ng-binding}}",
"type": "multitext"
},
{
"name": "onlineRating",
"value": "{{selector:div.rating-overall span[itemprop=\\\"ratingValue\\\"]}}",
"type": "number"
},
{
"name": "onlineRatingCount",
"value": "{{selector:ul.game-header-title-summary > li > a|first|split:\\\"\\t\\\"|first|trim}}",
"type": "number"
},
{
"name": "complexityRating",
"value": "{{selector:span[item-poll-button=\\\"boardgameweight\\\"] span|first}}",
"type": "number"
},
{
"name": "minPlayers",
"value": "{{selector:p.gameplay-item-primary span[ng-if=\\\"min > 0\\\"]|first}}",
"type": "number"
},
{
"name": "maxPlayers",
"value": "{%set max = selector:p.gameplay-item-primary span[ng-if=\\\"max>0 && min != max\\\"]|first|replace:\\\"–\\\":\\\"\\\"|trim %}{% if max %}{{max}}{% else %}{{selector:p.gameplay-item-primary span[ng-if=\\\"min > 0\\\"]|first|trim}}{% endif %}",
"type": "number"
},
{
"name": "playtime",
"value": "{{selector:gameplay-module > div > div > ul > li:nth-child(2) > p > span > span|replace:\\\"–\\\":\\\" - \\\"}} minutes",
"type": "text"
},
{
"name": "year",
"value": "{{selector:div.game-header-title-info span.game-year|replace:\\\"(\\\":\\\"\\\",\\\")\\\":\\\"\\\"}}",
"type": "number"
},
{
"name": "priceString",
"value": "{% set msrp = selector:div[amazon-msrp]|first|replace:\\\"/MSRP:\\\\s*/\\\":\\\"\\\"|trim %}{% set srp = selector:li[type=\\\"listprice\\\"] .item-listing__msrp|first|replace:\\\"/Suggested Retail Price:\\\\s*/\\\":\\\"\\\"|trim %}{% set amazon = selector:a[href*=\\\"amazon.com\\\"] .item-listing__btn-text|first|replace:\\\"/.*?((?:US)?\\\\$|€|£)\\\\s*([0-9]+(?:\\\\.[0-9]{2})?).*/\\\":\\\"$1$2\\\"|trim %}{% set other = selector:meta[itemprop=\\\"price\\\"]?content|first|trim %}{% set raw = msrp ?? srp ?? amazon ?? other %}{{ raw|replace:\\\"/^\\\\\\\\\"+|\\\\\\\\\"+$/g\\\":\\\"\\\"|replace:\\\"/.*?((?:US)?\\\\$|€|£)\\\\s*([0-9]+(?:\\\\.[0-9]{2})?).*/\\\":\\\"$1$2\\\"|replace:\\\"/^US\\\\$/\\\":\\\"$\\\"|trim }}",
"type": "text"
},
{
"name": "summary",
"value": "{{selector:span[itemprop=\\\"description\\\"]}}",
"type": "text"
},
{
"name": "description",
"value": "{{selector:article.game-description-body}}",
"type": "text"
},
{
"name": "cover",
"value": "{{selector:div.game-header-image > ng-include > div > a > img?src}}",
"type": "text"
},
{
"name": "banner",
"value": "{{selector:div.game-primary-background-image?style|replace:\\\"background-image: url(\\\\\"\\\":\\\"\\\"|replace:\\\"\\\\\");\\\":\\\"\\\"}}",
"type": "text"
},
{
"name": "cssclasses",
"value": "cover-top, cover-horizontal-contain",
"type": "multitext"
}
],
"triggers": [
"https://boardgamegeek.com/boardgame"
],
"noteNameFormat": "{{title|replace:\"/\":\"⧸\"|safe_name}}",
"path": "Clippings"
}
68 changes: 68 additions & 0 deletions templates/goodreads-clipper.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
{
"schemaVersion": "0.1.0",
"name": "Books (goodreads)",
"behavior": "create",
"noteContentFormat": "",
"properties": [
{
"name": "categories",
"value": "[[Book Database]]",
"type": "multitext"
},
{
"name": "subcategories",
"value": "",
"type": "multitext"
},
{
"name": "links",
"value": "{{url}}",
"type": "multitext"
},
{
"name": "genres",
"value": "{{selector:.BookPageMetadataSection__genreButton}}",
"type": "multitext"
},
{
"name": "creators",
"value": "{{schema:@Book:author[*].name|wikilink}}",
"type": "multitext"
},
{
"name": "pageCount",
"value": "{{schema:@Book:numberOfPages}}",
"type": "number"
},
{
"name": "onlineRating",
"value": "{{schema:@Book:aggregateRating.ratingValue}}",
"type": "number"
},
{
"name": "onlineRatingCount",
"value": "{{schema:@Book:aggregateRating.ratingCount}}",
"type": "number"
},
{
"name": "year",
"value": "{{selector:p[data-testid=\\\"publicationInfo\\\"]|slice:-4}}",
"type": "number"
},
{
"name": "description",
"value": "{{selector:.DetailsLayoutRightParagraph__widthConstrained|first}}",
"type": "text"
},
{
"name": "cover",
"value": "{{schema:@Book:image}}",
"type": "text"
}
],
"triggers": [
"schema:@Book"
],
"noteNameFormat": "{{schema:@Book:name|replace:\"/\":\"⧸\"|safe_name}}",
"path": "Clippings"
}
68 changes: 68 additions & 0 deletions templates/imdb-movie-clipper.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
{
"schemaVersion": "0.1.0",
"name": "Movie (imdb)",
"behavior": "create",
"noteContentFormat": "",
"properties": [
{
"name": "categories",
"value": "[[Movie Database]]",
"type": "multitext"
},
{
"name": "subcategories",
"value": "",
"type": "multitext"
},
{
"name": "links",
"value": "{{url}}",
"type": "multitext"
},
{
"name": "genres",
"value": "{{schema:@Movie:genre}}",
"type": "multitext"
},
{
"name": "creators",
"value": "{{schema:@Movie:director[*].name|merge:schema:@Movie:actor[*].name}}",
"type": "multitext"
},
{
"name": "onlineRating",
"value": "{{schema:@Movie:aggregateRating.ratingValue}}",
"type": "number"
},
{
"name": "onlineRatingCount",
"value": "{{schema:@Movie:aggregateRating.ratingCount}}",
"type": "number"
},
{
"name": "year",
"value": "{{schema:@Movie:datePublished|slice:0,4}}",
"type": "number"
},
{
"name": "duration",
"value": "{{meta:property:og:description|split:\\\"|\\\"|first|trim}}",
"type": "number"
},
{
"name": "description",
"value": "{{schema:@Movie:description}}",
"type": "text"
},
{
"name": "cover",
"value": "{{schema:@Movie:image}}",
"type": "text"
}
],
"triggers": [
"schema:@Movie"
],
"noteNameFormat": "{% if schema:@Movie:alternateName %} {{schema:@Movie:alternateName|replace:\"/\":\"⧸\"|safe_name}} {% else %} {{schema:@Movie:name|replace:\"/\":\"⧸\"|safe_name}} {% endif %}",
"path": "Clippings"
}
Loading