Force lookup by search query:
Code: Select all
--q "buffy the vampire slayer"
2.
Force lookup by numeric ID:
Code: Select all
--q 70327
3.
Force lookup via custom query expression:
e.g. Match ID12345 pattern from the filename and then use it as query:
Code: Select all
--q "{ fn.match(/ID([0-9]{5,11})/) }"
Code: Select all
--q "{ folder.name }"
Code: Select all
--q "{ fn.before(/S[0-9]+E[0-9]+/).space(/ /) }"
Code: Select all
--q /path/to/query.groovy
Advanced Query Expression Examples:
Extract and sanitize movie name.year pattern from the folder name (e.g. Avatar.2009.1080p ➔ Avatar 2009)
Code: Select all
{folder.name.match(/^.+?\d{4}/).space(/ /)}