{
    "id": "media-tracker@beatlink",
    "name": "Media Tracker",
    "description": "A movie and TV tracker for TriliumNext. Your whole library lives in one JSON note created under a library root you choose, so it is a single note you can back up, inspect, or hand-edit. Pick any note as the Library Root and the addon wires it up for you: it becomes a render note showing the tracker, and switching roots reverts the old one. TMDB provides search, posters, and episode lists; Trakt and Stremio are one-way import sources, read but never written to. Per-episode progress for shows is a compact run-collapsed string (s01e01-e10,s02e01) rather than a list of every episode, so a fully-watched ten-season show stays a short value. Imports are additive and idempotent: titles are keyed by their strongest known id and matched on any shared id so different sources converge on one entry, episode progress is merged rather than replaced, and your own ratings and status are never overwritten unless you opt in. Each import reads the database once and writes once, so it cannot half-apply. Absorbs and replaces stremio-sync@beatlink.",
    "author": "BeatLink",
    "homepage": "https://github.com/BeatLink/trilium-scripts/tree/main/addons/media-tracker@beatlink",
    "license": "GPL-3.0-or-later",
    "latestVersion": "1.3.0",
    "type": "widget",
    "readme": "README.md",
    "manifestSourceUrl": "https://beatlink.github.io/trilium-scripts/media-tracker@beatlink/_tam_manifest_.json",
    "manifest": {
        "settingsNote": "settings-page",
        "notes": [
            {
                "id": "launcher",
                "title": "media-tracker@beatlink",
                "type": "render",
                "mime": "text/html",
                "sourceUrl": null
            },
            {
                "id": "view",
                "title": "mediaTracker.jsx",
                "type": "code",
                "mime": "text/jsx",
                "sourceUrl": "https://raw.githubusercontent.com/BeatLink/trilium-scripts/b053fc798f431665831d2f7cb02d9197da958d0b/addons/media-tracker@beatlink/mediaTracker.jsx",
                "sha": "7f211fcf411b9c737ddfc9b50d736e399f619cc3d4f0ddd3d9def9de95595dfa",
                "sourceId": "https://raw.githubusercontent.com/BeatLink/trilium-scripts/refs/heads/main/addons/media-tracker@beatlink/mediaTracker.jsx"
            },
            {
                "id": "style",
                "title": "mediaTracker.css",
                "type": "code",
                "mime": "text/css",
                "sourceUrl": "https://raw.githubusercontent.com/BeatLink/trilium-scripts/b053fc798f431665831d2f7cb02d9197da958d0b/addons/media-tracker@beatlink/mediaTracker.css",
                "sha": "09e6034bb93a6e952434757eb2241f5abfbad8630ad7791587faa9cb42493552",
                "sourceId": "https://raw.githubusercontent.com/BeatLink/trilium-scripts/refs/heads/main/addons/media-tracker@beatlink/mediaTracker.css"
            },
            {
                "id": "settings-page",
                "title": "Settings",
                "type": "render",
                "mime": "text/html",
                "sourceUrl": null
            },
            {
                "id": "settings",
                "title": "settings.jsx",
                "type": "code",
                "mime": "text/jsx",
                "sourceUrl": "https://raw.githubusercontent.com/BeatLink/trilium-scripts/b053fc798f431665831d2f7cb02d9197da958d0b/addons/media-tracker@beatlink/settings.jsx",
                "sha": "2d49fe644c2e2c26191c69e326be6d3d197617c7d4d858820229556be64ab7bf",
                "sourceId": "https://raw.githubusercontent.com/BeatLink/trilium-scripts/refs/heads/main/addons/media-tracker@beatlink/settings.jsx"
            },
            {
                "id": "schema",
                "title": "schema.json",
                "type": "code",
                "mime": "application/json",
                "sourceUrl": "https://raw.githubusercontent.com/BeatLink/trilium-scripts/b053fc798f431665831d2f7cb02d9197da958d0b/addons/media-tracker@beatlink/schema.json",
                "sha": "aa7b75ff713cb4cc91469af5206dde43f9e5d00d4c36a1c8b41e064a4c6105af",
                "sourceId": "https://raw.githubusercontent.com/BeatLink/trilium-scripts/refs/heads/main/addons/media-tracker@beatlink/schema.json"
            },
            {
                "id": "defaults",
                "title": "defaults.json",
                "type": "code",
                "mime": "application/json",
                "sourceUrl": "https://raw.githubusercontent.com/BeatLink/trilium-scripts/b053fc798f431665831d2f7cb02d9197da958d0b/addons/media-tracker@beatlink/defaults.json",
                "sha": "56546593cb3040b8c84a7c2dcc3f520c86560c2d1caeb1b31d9b1c3bbcf85c23",
                "sourceId": "https://raw.githubusercontent.com/BeatLink/trilium-scripts/refs/heads/main/addons/media-tracker@beatlink/defaults.json"
            },
            {
                "id": "config",
                "title": "config.json",
                "type": "code",
                "mime": "application/json",
                "sourceUrl": null
            },
            {
                "id": "backend",
                "title": "mediaTrackerBackend.js",
                "type": "code",
                "mime": "application/javascript;env=backend",
                "sourceUrl": "https://raw.githubusercontent.com/BeatLink/trilium-scripts/b053fc798f431665831d2f7cb02d9197da958d0b/addons/media-tracker@beatlink/mediaTrackerBackend.js",
                "sha": "3f149ff2e245b48803e1ed7700244a628d37f9ac39fe0403779e04ed760ad0a7",
                "sourceId": "https://raw.githubusercontent.com/BeatLink/trilium-scripts/refs/heads/main/addons/media-tracker@beatlink/mediaTrackerBackend.js"
            },
            {
                "id": "autosync",
                "title": "autoSync.js",
                "type": "code",
                "mime": "application/javascript;env=backend",
                "sourceUrl": "https://raw.githubusercontent.com/BeatLink/trilium-scripts/b053fc798f431665831d2f7cb02d9197da958d0b/addons/media-tracker@beatlink/autoSync.js",
                "sha": "229439c7c7bdd97852fadf546baf36ff8dc84a759fbb4b15062f411e4e8f5a04",
                "sourceId": "https://raw.githubusercontent.com/BeatLink/trilium-scripts/refs/heads/main/addons/media-tracker@beatlink/autoSync.js"
            },
            {
                "id": "lib-tracker",
                "title": "libMediaTracker.js",
                "type": "code",
                "mime": "application/javascript;env=backend",
                "sourceUrl": "https://raw.githubusercontent.com/BeatLink/trilium-scripts/b053fc798f431665831d2f7cb02d9197da958d0b/addons/media-tracker@beatlink/libMediaTracker.js",
                "sha": "c8f7fdfb9881280ef83035e7f156e9d2cbdbbca9f5e895b6cb2d7d03ae57c61c",
                "sourceId": "https://raw.githubusercontent.com/BeatLink/trilium-scripts/refs/heads/main/addons/media-tracker@beatlink/libMediaTracker.js"
            },
            {
                "id": "readme",
                "title": "README.md",
                "type": "code",
                "mime": "text/markdown",
                "sourceUrl": "https://raw.githubusercontent.com/BeatLink/trilium-scripts/b053fc798f431665831d2f7cb02d9197da958d0b/addons/media-tracker@beatlink/README.md",
                "renderAsHTML": true,
                "sha": "9975bd54b22aaa9818ae96a983854453b05002898bfd5691f516514a7be5e7b4",
                "sourceId": "https://raw.githubusercontent.com/BeatLink/trilium-scripts/refs/heads/main/addons/media-tracker@beatlink/README.md"
            },
            {
                "id": "libsettings-backend",
                "title": "libSettings.js",
                "type": "code",
                "mime": "application/javascript;env=backend",
                "sourceUrl": "https://raw.githubusercontent.com/BeatLink/trilium-scripts/b053fc798f431665831d2f7cb02d9197da958d0b/libs/libsettings/libsettings-backend.js",
                "sha": "3c4b119a6d3ec639f1172763670484186755d8d71c544e64b09f118d3edca909",
                "sourceId": "https://raw.githubusercontent.com/BeatLink/trilium-scripts/refs/heads/main/libs/libsettings/libsettings-backend.js"
            },
            {
                "id": "libsettings-core",
                "title": "libSettingsCore.js",
                "type": "code",
                "mime": "application/javascript;env=frontend",
                "sourceUrl": "https://raw.githubusercontent.com/BeatLink/trilium-scripts/b053fc798f431665831d2f7cb02d9197da958d0b/libs/libsettings/libsettings-core.js",
                "sha": "6fb4ffee0a776ef38a6646ccbc21dc276614f9ea02d61f1f4f9f877e94b0c586",
                "sourceId": "https://raw.githubusercontent.com/BeatLink/trilium-scripts/refs/heads/main/libs/libsettings/libsettings-core.js"
            },
            {
                "id": "libsettings-ui",
                "title": "libSettingsUI.jsx",
                "type": "code",
                "mime": "text/jsx",
                "sourceUrl": "https://raw.githubusercontent.com/BeatLink/trilium-scripts/b053fc798f431665831d2f7cb02d9197da958d0b/libs/libsettings/libsettings-ui.jsx",
                "sha": "66d4adead5e0447deba7f5cfa2a1573680ece1af619c53eb7241036122fce1a6",
                "sourceId": "https://raw.githubusercontent.com/BeatLink/trilium-scripts/refs/heads/main/libs/libsettings/libsettings-ui.jsx"
            },
            {
                "id": "libsettings-style",
                "title": "libSettingsUI.css",
                "type": "code",
                "mime": "text/css",
                "sourceUrl": "https://raw.githubusercontent.com/BeatLink/trilium-scripts/b053fc798f431665831d2f7cb02d9197da958d0b/libs/libsettings/libsettings-ui.css",
                "sha": "43a6d3eba0af6f5e197064c7d0054a2ad725cd553c112f3b7427cd4830f2a75f",
                "sourceId": "https://raw.githubusercontent.com/BeatLink/trilium-scripts/refs/heads/main/libs/libsettings/libsettings-ui.css"
            }
        ],
        "children": [
            {
                "parent": "root",
                "child": "launcher"
            },
            {
                "parent": "launcher",
                "child": "view"
            },
            {
                "parent": "view",
                "child": "style"
            },
            {
                "parent": "view",
                "child": "libsettings-ui"
            },
            {
                "parent": "launcher",
                "child": "settings-page"
            },
            {
                "parent": "settings-page",
                "child": "settings"
            },
            {
                "parent": "settings",
                "child": "libsettings-ui"
            },
            {
                "parent": "launcher",
                "child": "schema"
            },
            {
                "parent": "launcher",
                "child": "defaults"
            },
            {
                "parent": "persistence",
                "child": "config"
            },
            {
                "parent": "launcher",
                "child": "backend"
            },
            {
                "parent": "backend",
                "child": "libsettings-backend"
            },
            {
                "parent": "backend",
                "child": "lib-tracker"
            },
            {
                "parent": "launcher",
                "child": "autosync"
            },
            {
                "parent": "autosync",
                "child": "libsettings-backend"
            },
            {
                "parent": "autosync",
                "child": "backend"
            },
            {
                "parent": "libsettings-ui",
                "child": "libsettings-core"
            },
            {
                "parent": "libsettings-ui",
                "child": "libsettings-style"
            },
            {
                "parent": "launcher",
                "child": "readme"
            }
        ],
        "relations": [
            {
                "from": "settings",
                "type": "configNote",
                "to": "config"
            },
            {
                "from": "settings",
                "type": "schemaNote",
                "to": "schema"
            },
            {
                "from": "view",
                "type": "schemaNote",
                "to": "schema"
            },
            {
                "from": "view",
                "type": "settingsNote",
                "to": "settings"
            },
            {
                "from": "backend",
                "type": "schemaNote",
                "to": "schema"
            },
            {
                "from": "backend",
                "type": "settingsNote",
                "to": "settings"
            },
            {
                "from": "launcher",
                "type": "renderNote",
                "to": "view"
            },
            {
                "from": "settings-page",
                "type": "renderNote",
                "to": "settings"
            },
            {
                "from": "view",
                "type": "settingsPageNote",
                "to": "settings-page"
            },
            {
                "from": "settings",
                "type": "trackerPageNote",
                "to": "launcher"
            },
            {
                "from": "config",
                "type": "sourceConfig",
                "to": "defaults"
            }
        ],
        "labels": [
            {
                "note": "backend",
                "name": "customRequestHandler",
                "value": "mediaTracker"
            },
            {
                "note": "autosync",
                "name": "run",
                "value": "hourly"
            },
            {
                "note": "autosync",
                "name": "iconClass",
                "value": "bx bx-sync"
            },
            {
                "note": "settings",
                "name": "mediaTrackerConfig",
                "value": ""
            },
            {
                "note": "view",
                "name": "mediaTrackerRender",
                "value": ""
            },
            {
                "note": "style",
                "name": "appCss",
                "value": ""
            },
            {
                "note": "libsettings-style",
                "name": "appCss",
                "value": ""
            },
            {
                "note": "launcher",
                "name": "iconClass",
                "value": "bx bx-movie-play"
            },
            {
                "note": "view",
                "name": "iconClass",
                "value": "bx bx-movie-play"
            },
            {
                "note": "backend",
                "name": "iconClass",
                "value": "bx bx-movie-play"
            },
            {
                "note": "lib-tracker",
                "name": "iconClass",
                "value": "bx bx-movie-play"
            },
            {
                "note": "schema",
                "name": "iconClass",
                "value": "bx bx-movie-play"
            },
            {
                "note": "config",
                "name": "iconClass",
                "value": "bx bx-movie-play"
            },
            {
                "note": "settings-page",
                "name": "iconClass",
                "value": "bx bx-cog"
            },
            {
                "note": "readme",
                "name": "iconClass",
                "value": "bx bx-movie-play"
            }
        ],
        "readmeNote": "readme",
        "settings": {
            "schema": "schema",
            "defaults": "defaults",
            "config": "config"
        }
    },
    "contentHash": "c719642ef6998547447f27b9dc7394ceba7fd8a16659b64f441dc11f92d3d168"
}
