Skip to content

BUG: schema trigger no longer matched first #873

@pitasi

Description

@pitasi

Is this issue related to missing content or incorrect conversion to Markdown?

  • No. This is definitely a Web Clipper bug.

Have you reviewed the troubleshooting instructions?

Operating system

macOS 26.5

Browser

Chrome 148

Web Clipper version

1.6.1

Obsidian version

1.12.7

Describe the bug

I have two templates with the following triggers, in this order:

  1. schema:@TVSeries
  2. /^https:\/\/www\.imdb\.com\/title\/tt\d+(?!\/reference\/)(\/[^\s]*)?$/

With an IMDB URL that is a tv show (e.g. https://www.imdb.com/title/tt8415836), the first one used to work correctly and had priority over the second.

Expected behavior

The first template isn't the default choice, I expect it to be triggered and matched first. I tried reordering the two of them without any difference. If I remove completely the second template, then the first one works correctly.

URLs where the bug occurs

Any IMDB tv show, e.g. https://www.imdb.com/title/tt8415836.

To reproduce

Try clipping https://www.imdb.com/title/tt8415836 and see which template gets matched by default.

Your template file

{
	"schemaVersion": "0.1.0",
	"name": "IMDB (TV Show)",
	"behavior": "create",
	"noteContentFormat": "",
	"properties": [
		{
			"name": "categories",
			"value": "[[Shows]]",
			"type": "multitext"
		},
		{
			"name": "genre",
			"value": "{{schema:genre|wikilink|join}}",
			"type": "multitext"
		},
		{
			"name": "director",
			"value": "{{schema:director[*].name|wikilink|join}}",
			"type": "multitext"
		},
		{
			"name": "rating",
			"value": "",
			"type": "number"
		},
		{
			"name": "scoreImdb",
			"value": "{{schema:aggregateRating.ratingValue}}",
			"type": "number"
		},
		{
			"name": "cast",
			"value": "{{schema:actor[*].name|slice:0,5|wikilink|join}}",
			"type": "multitext"
		},
		{
			"name": "cover",
			"value": "{{schema:image}}",
			"type": "text"
		},
		{
			"name": "plot",
			"value": "{{schema:description}}",
			"type": "text"
		},
		{
			"name": "year",
			"value": "{{schema:datePublished|split:\\\"-\\\"|slice:0,1}}",
			"type": "number"
		},
		{
			"name": "created",
			"value": "{{date}}",
			"type": "date"
		},
		{
			"name": "tags",
			"value": "shows, to-watch",
			"type": "multitext"
		},
		{
			"name": "source",
			"value": "{{url}}",
			"type": "text"
		}
	],
	"triggers": [
		"schema:@TVSeries"
	],
	"noteNameFormat": "{{schema:name}}",
	"path": "References"
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions