From 1a8cc37cf9b197268ceac0d790615f2fb673dac5 Mon Sep 17 00:00:00 2001 From: Pasithea0 Date: Mon, 9 Nov 2026 17:32:49 +0000 Subject: [PATCH] chore(license): state GPL-3.0-or-later in every file and manifest MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The intent is or-later, but nothing in the repo said so, so a consumer cannot tell whether GPLv4 is permitted. The grant only helps if it is made while the contribution is, while a re-grant would mean writing to every contributor. - 79 source files (77 `.go`, `scripts/live-e2e.sh`, `scripts/update-homebrew-formula.py`) | SPDX identifier plus a copyright line. LICENSE is left byte-identical to the FSF text. Prepending the notice above it was tried first and reverted on evidence: GitHub's detector has no GPL-3.0-or-later entry to match against (the vendored database only carries GPL-3.0, and the package matcher strips -or-later), and an augmented LICENSE stops matching the canonical text at all - the repo went from GPL-3.0 to NOASSERTION. The per-file SPDX identifier, the manifest field and the README are where the grant is readable. Verified: - `go build ./...` — clean. - `go vet ./...` — clean. - `go test -count=1 ./...` — every package `ok`. - `gofmt -l .` — reports `internal/tidb/lookup.go` on **both** this branch and `main` (verified by `git stash`-ing and re-running), i.e. pre-existing. Not touched. - `gh api repos/TheIntroDB/plex-sync/license?ref=chore/licensing` — `GPL-3.0`, unchanged from `main`. --- README.md | 12 +++++++++++- internal/api/journals.go | 3 +++ internal/api/server.go | 3 +++ internal/app/app.go | 3 +++ internal/app/plexdb_handle_test.go | 3 +++ internal/buildinfo/buildinfo.go | 3 +++ internal/cli/api.go | 3 +++ internal/cli/commands.go | 3 +++ internal/cli/config.go | 3 +++ internal/cli/markerflag_test.go | 3 +++ internal/cli/root.go | 3 +++ internal/cli/schedule.go | 3 +++ internal/cli/setup.go | 3 +++ internal/cli/startstop.go | 3 +++ internal/cli/tui.go | 3 +++ internal/cli/version.go | 3 +++ internal/config/config.go | 3 +++ internal/config/config_test.go | 3 +++ internal/config/example_test.go | 3 +++ internal/config/identity.go | 3 +++ internal/config/identity_test.go | 3 +++ internal/config/plexpaths.go | 3 +++ internal/config/plexpaths_test.go | 3 +++ internal/config/save.go | 3 +++ internal/config/save_test.go | 3 +++ internal/config/schedule_test.go | 3 +++ internal/httpclient/client.go | 3 +++ internal/ledger/ledger.go | 3 +++ internal/ledger/ledger_test.go | 3 +++ internal/logging/logging.go | 3 +++ internal/model/model.go | 3 +++ internal/model/model_test.go | 3 +++ internal/planfile/planfile.go | 3 +++ internal/planfile/planfile_test.go | 3 +++ internal/planner/planner.go | 3 +++ internal/planner/planner_test.go | 3 +++ internal/plexapi/client.go | 3 +++ internal/plexapi/client_test.go | 3 +++ internal/plexapi/parse.go | 3 +++ internal/plexdb/backup.go | 3 +++ internal/plexdb/db.go | 3 +++ internal/plexdb/extra.go | 3 +++ internal/plexdb/extra_golden_test.go | 3 +++ internal/plexdb/fixture_test.go | 3 +++ internal/plexdb/fts_probe_test.go | 3 +++ internal/plexdb/live_test.go | 3 +++ internal/plexdb/markers.go | 3 +++ internal/plexdb/markertag_live_test.go | 3 +++ internal/plexdb/plexdb_test.go | 3 +++ internal/plexdb/settingmarkers.go | 3 +++ internal/plexdb/settingmarkers_live_test.go | 3 +++ internal/plexdb/showids.go | 3 +++ internal/plexdb/showids_test.go | 3 +++ internal/plexdb/undo.go | 3 +++ internal/schedule/cron.go | 3 +++ internal/schedule/cron_test.go | 3 +++ internal/source/chapters.go | 3 +++ internal/source/detection.go | 3 +++ internal/source/source_test.go | 3 +++ internal/sync/detection.go | 3 +++ internal/sync/setup.go | 3 +++ internal/sync/sync.go | 3 +++ internal/sync/sync_test.go | 3 +++ internal/tidb/client.go | 3 +++ internal/tidb/client_test.go | 3 +++ internal/tidb/lookup.go | 3 +++ internal/tui/header_test.go | 3 +++ internal/tui/model.go | 3 +++ internal/tui/model_test.go | 3 +++ internal/tui/plan_test.go | 3 +++ internal/tui/refresh_test.go | 3 +++ internal/tui/settings.go | 3 +++ internal/tui/settings_edit.go | 3 +++ internal/tui/settings_markertag_test.go | 3 +++ internal/tui/settings_resolved_test.go | 3 +++ internal/tui/settings_test.go | 3 +++ internal/tui/view.go | 3 +++ main.go | 3 +++ scripts/live-e2e.sh | 3 +++ scripts/update-homebrew-formula.py | 3 +++ 80 files changed, 248 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 6fd52d4..0b1a96d 100644 --- a/README.md +++ b/README.md @@ -507,7 +507,17 @@ packages. ## License -GPL-3.0. See [LICENSE](LICENSE). +**GNU General Public License v3.0 or later** (`GPL-3.0-or-later`) — see [LICENSE](LICENSE) for the full text. + +> This program is free software: you can redistribute it and/or modify it under the +> terms of the GNU General Public License as published by the Free Software +> Foundation, either version 3 of the License, or (at your option) any later version. +> +> This program is distributed in the hope that it will be useful, but WITHOUT ANY +> WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A +> PARTICULAR PURPOSE. See the GNU General Public License for more details. + +Every source file carries `SPDX-License-Identifier: GPL-3.0-or-later`. The "or later" grant is deliberate: it lets the project adopt a future GPL version without re-licensing from every contributor. --- diff --git a/internal/api/journals.go b/internal/api/journals.go index aaeaca0..100b82f 100644 --- a/internal/api/journals.go +++ b/internal/api/journals.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: GPL-3.0-or-later +// Copyright (C) 2026 TheIntroDB + package api import ( diff --git a/internal/api/server.go b/internal/api/server.go index fb2d8bb..7edeacb 100644 --- a/internal/api/server.go +++ b/internal/api/server.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: GPL-3.0-or-later +// Copyright (C) 2026 TheIntroDB + // Package api is the local control API. // // It is JSON only: there is no web interface and no HTML anywhere in this diff --git a/internal/app/app.go b/internal/app/app.go index fe71b36..0f69cf6 100644 --- a/internal/app/app.go +++ b/internal/app/app.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: GPL-3.0-or-later +// Copyright (C) 2026 TheIntroDB + // Package app wires the pieces together. // // It owns the shared resources every interface needs, so the terminal diff --git a/internal/app/plexdb_handle_test.go b/internal/app/plexdb_handle_test.go index 405888a..6000d1d 100644 --- a/internal/app/plexdb_handle_test.go +++ b/internal/app/plexdb_handle_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: GPL-3.0-or-later +// Copyright (C) 2026 TheIntroDB + package app import ( diff --git a/internal/buildinfo/buildinfo.go b/internal/buildinfo/buildinfo.go index 906dd01..eb93ad0 100644 --- a/internal/buildinfo/buildinfo.go +++ b/internal/buildinfo/buildinfo.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: GPL-3.0-or-later +// Copyright (C) 2026 TheIntroDB + // Package buildinfo carries the values injected at build time. package buildinfo diff --git a/internal/cli/api.go b/internal/cli/api.go index 5a3bc3c..7b350ad 100644 --- a/internal/cli/api.go +++ b/internal/cli/api.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: GPL-3.0-or-later +// Copyright (C) 2026 TheIntroDB + package cli import ( diff --git a/internal/cli/commands.go b/internal/cli/commands.go index 6235cba..48d7ddd 100644 --- a/internal/cli/commands.go +++ b/internal/cli/commands.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: GPL-3.0-or-later +// Copyright (C) 2026 TheIntroDB + package cli import ( diff --git a/internal/cli/config.go b/internal/cli/config.go index e314ab4..3295347 100644 --- a/internal/cli/config.go +++ b/internal/cli/config.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: GPL-3.0-or-later +// Copyright (C) 2026 TheIntroDB + package cli import ( diff --git a/internal/cli/markerflag_test.go b/internal/cli/markerflag_test.go index 25df5c1..b2ed8e2 100644 --- a/internal/cli/markerflag_test.go +++ b/internal/cli/markerflag_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: GPL-3.0-or-later +// Copyright (C) 2026 TheIntroDB + package cli import ( diff --git a/internal/cli/root.go b/internal/cli/root.go index 2fd8b66..517e8f3 100644 --- a/internal/cli/root.go +++ b/internal/cli/root.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: GPL-3.0-or-later +// Copyright (C) 2026 TheIntroDB + // Package cli is the command line and the entry point. // // It has two jobs: give scripts and cron everything the terminal interface can diff --git a/internal/cli/schedule.go b/internal/cli/schedule.go index 3738b6f..ac296ed 100644 --- a/internal/cli/schedule.go +++ b/internal/cli/schedule.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: GPL-3.0-or-later +// Copyright (C) 2026 TheIntroDB + package cli import ( diff --git a/internal/cli/setup.go b/internal/cli/setup.go index aaa19e9..62a8a48 100644 --- a/internal/cli/setup.go +++ b/internal/cli/setup.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: GPL-3.0-or-later +// Copyright (C) 2026 TheIntroDB + package cli import ( diff --git a/internal/cli/startstop.go b/internal/cli/startstop.go index 7b13b1d..ad7e2d1 100644 --- a/internal/cli/startstop.go +++ b/internal/cli/startstop.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: GPL-3.0-or-later +// Copyright (C) 2026 TheIntroDB + package cli import ( diff --git a/internal/cli/tui.go b/internal/cli/tui.go index c3eecff..07cd4bb 100644 --- a/internal/cli/tui.go +++ b/internal/cli/tui.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: GPL-3.0-or-later +// Copyright (C) 2026 TheIntroDB + package cli import ( diff --git a/internal/cli/version.go b/internal/cli/version.go index 403c271..7af6763 100644 --- a/internal/cli/version.go +++ b/internal/cli/version.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: GPL-3.0-or-later +// Copyright (C) 2026 TheIntroDB + package cli import ( diff --git a/internal/config/config.go b/internal/config/config.go index 83f0994..0b73596 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: GPL-3.0-or-later +// Copyright (C) 2026 TheIntroDB + // Package config loads and validates the tool's configuration. // // Precedence, lowest to highest: built-in defaults, TOML file, environment diff --git a/internal/config/config_test.go b/internal/config/config_test.go index 34c8cc3..02d8844 100644 --- a/internal/config/config_test.go +++ b/internal/config/config_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: GPL-3.0-or-later +// Copyright (C) 2026 TheIntroDB + package config import ( diff --git a/internal/config/example_test.go b/internal/config/example_test.go index fbe53fe..04baa84 100644 --- a/internal/config/example_test.go +++ b/internal/config/example_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: GPL-3.0-or-later +// Copyright (C) 2026 TheIntroDB + package config import ( diff --git a/internal/config/identity.go b/internal/config/identity.go index d6bedc1..8ad0a2e 100644 --- a/internal/config/identity.go +++ b/internal/config/identity.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: GPL-3.0-or-later +// Copyright (C) 2026 TheIntroDB + package config import ( diff --git a/internal/config/identity_test.go b/internal/config/identity_test.go index 982a8c7..553a87e 100644 --- a/internal/config/identity_test.go +++ b/internal/config/identity_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: GPL-3.0-or-later +// Copyright (C) 2026 TheIntroDB + package config import ( diff --git a/internal/config/plexpaths.go b/internal/config/plexpaths.go index 662bcce..50779cd 100644 --- a/internal/config/plexpaths.go +++ b/internal/config/plexpaths.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: GPL-3.0-or-later +// Copyright (C) 2026 TheIntroDB + package config import ( diff --git a/internal/config/plexpaths_test.go b/internal/config/plexpaths_test.go index 8a2010a..6428007 100644 --- a/internal/config/plexpaths_test.go +++ b/internal/config/plexpaths_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: GPL-3.0-or-later +// Copyright (C) 2026 TheIntroDB + package config import ( diff --git a/internal/config/save.go b/internal/config/save.go index 3965529..feb7f57 100644 --- a/internal/config/save.go +++ b/internal/config/save.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: GPL-3.0-or-later +// Copyright (C) 2026 TheIntroDB + package config import ( diff --git a/internal/config/save_test.go b/internal/config/save_test.go index b0528d1..271a758 100644 --- a/internal/config/save_test.go +++ b/internal/config/save_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: GPL-3.0-or-later +// Copyright (C) 2026 TheIntroDB + package config import ( diff --git a/internal/config/schedule_test.go b/internal/config/schedule_test.go index 64e5f66..aa7dfb6 100644 --- a/internal/config/schedule_test.go +++ b/internal/config/schedule_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: GPL-3.0-or-later +// Copyright (C) 2026 TheIntroDB + package config import ( diff --git a/internal/httpclient/client.go b/internal/httpclient/client.go index ae7559b..af50c56 100644 --- a/internal/httpclient/client.go +++ b/internal/httpclient/client.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: GPL-3.0-or-later +// Copyright (C) 2026 TheIntroDB + // Package httpclient is the single outbound HTTP path for the whole tool. // // It wraps Fiber's client (which is fasthttp underneath) so that Plex and diff --git a/internal/ledger/ledger.go b/internal/ledger/ledger.go index 7f7b12c..7591a3d 100644 --- a/internal/ledger/ledger.go +++ b/internal/ledger/ledger.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: GPL-3.0-or-later +// Copyright (C) 2026 TheIntroDB + // Package ledger is the tool's own durable state, kept in a SQLite database // that is separate from Plex's. // diff --git a/internal/ledger/ledger_test.go b/internal/ledger/ledger_test.go index 5b68148..691333e 100644 --- a/internal/ledger/ledger_test.go +++ b/internal/ledger/ledger_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: GPL-3.0-or-later +// Copyright (C) 2026 TheIntroDB + package ledger import ( diff --git a/internal/logging/logging.go b/internal/logging/logging.go index 29ec231..5ce0dc7 100644 --- a/internal/logging/logging.go +++ b/internal/logging/logging.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: GPL-3.0-or-later +// Copyright (C) 2026 TheIntroDB + // Package logging configures the program's logger. // // Output goes to standard error, because standard output belongs to command diff --git a/internal/model/model.go b/internal/model/model.go index 8d100d9..9e26e23 100644 --- a/internal/model/model.go +++ b/internal/model/model.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: GPL-3.0-or-later +// Copyright (C) 2026 TheIntroDB + // Package model holds the shared vocabulary of the tool: library items, // segments as sources report them, and markers as Plex stores them. // diff --git a/internal/model/model_test.go b/internal/model/model_test.go index 44388f4..99d2fc7 100644 --- a/internal/model/model_test.go +++ b/internal/model/model_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: GPL-3.0-or-later +// Copyright (C) 2026 TheIntroDB + package model import "testing" diff --git a/internal/planfile/planfile.go b/internal/planfile/planfile.go index c3bc95c..875bd72 100644 --- a/internal/planfile/planfile.go +++ b/internal/planfile/planfile.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: GPL-3.0-or-later +// Copyright (C) 2026 TheIntroDB + // Package planfile reads and writes plans on disk. // // A plan file exists so the work can be split in two: deciding what should diff --git a/internal/planfile/planfile_test.go b/internal/planfile/planfile_test.go index a7e419a..aa501fb 100644 --- a/internal/planfile/planfile_test.go +++ b/internal/planfile/planfile_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: GPL-3.0-or-later +// Copyright (C) 2026 TheIntroDB + package planfile import ( diff --git a/internal/planner/planner.go b/internal/planner/planner.go index 5d703b8..5aa7536 100644 --- a/internal/planner/planner.go +++ b/internal/planner/planner.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: GPL-3.0-or-later +// Copyright (C) 2026 TheIntroDB + // Package planner turns what the sources know into a change set. // // It is pure: it takes library items, per-source segment sets, the markers Plex diff --git a/internal/planner/planner_test.go b/internal/planner/planner_test.go index 82b2456..cd439b6 100644 --- a/internal/planner/planner_test.go +++ b/internal/planner/planner_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: GPL-3.0-or-later +// Copyright (C) 2026 TheIntroDB + package planner import ( diff --git a/internal/plexapi/client.go b/internal/plexapi/client.go index f8586e0..78e1c76 100644 --- a/internal/plexapi/client.go +++ b/internal/plexapi/client.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: GPL-3.0-or-later +// Copyright (C) 2026 TheIntroDB + // Package plexapi talks to Plex Media Server over its HTTP API. // // It is read-only by necessity: Plex has no write API for intro or credits diff --git a/internal/plexapi/client_test.go b/internal/plexapi/client_test.go index 0e8f508..4add56a 100644 --- a/internal/plexapi/client_test.go +++ b/internal/plexapi/client_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: GPL-3.0-or-later +// Copyright (C) 2026 TheIntroDB + package plexapi import ( diff --git a/internal/plexapi/parse.go b/internal/plexapi/parse.go index 598bce9..a150fc1 100644 --- a/internal/plexapi/parse.go +++ b/internal/plexapi/parse.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: GPL-3.0-or-later +// Copyright (C) 2026 TheIntroDB + package plexapi import ( diff --git a/internal/plexdb/backup.go b/internal/plexdb/backup.go index 2ad9f05..613796a 100644 --- a/internal/plexdb/backup.go +++ b/internal/plexdb/backup.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: GPL-3.0-or-later +// Copyright (C) 2026 TheIntroDB + package plexdb import ( diff --git a/internal/plexdb/db.go b/internal/plexdb/db.go index 8966464..622281a 100644 --- a/internal/plexdb/db.go +++ b/internal/plexdb/db.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: GPL-3.0-or-later +// Copyright (C) 2026 TheIntroDB + // Package plexdb reads and writes the markers Plex keeps in its SQLite library // database. // diff --git a/internal/plexdb/extra.go b/internal/plexdb/extra.go index c226479..2e36f89 100644 --- a/internal/plexdb/extra.go +++ b/internal/plexdb/extra.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: GPL-3.0-or-later +// Copyright (C) 2026 TheIntroDB + package plexdb import ( diff --git a/internal/plexdb/extra_golden_test.go b/internal/plexdb/extra_golden_test.go index 8ded14c..b8a4fc6 100644 --- a/internal/plexdb/extra_golden_test.go +++ b/internal/plexdb/extra_golden_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: GPL-3.0-or-later +// Copyright (C) 2026 TheIntroDB + package plexdb import ( diff --git a/internal/plexdb/fixture_test.go b/internal/plexdb/fixture_test.go index 619084f..1463ddc 100644 --- a/internal/plexdb/fixture_test.go +++ b/internal/plexdb/fixture_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: GPL-3.0-or-later +// Copyright (C) 2026 TheIntroDB + package plexdb import ( diff --git a/internal/plexdb/fts_probe_test.go b/internal/plexdb/fts_probe_test.go index bfc17b8..b517715 100644 --- a/internal/plexdb/fts_probe_test.go +++ b/internal/plexdb/fts_probe_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: GPL-3.0-or-later +// Copyright (C) 2026 TheIntroDB + package plexdb import ( diff --git a/internal/plexdb/live_test.go b/internal/plexdb/live_test.go index 8f1961f..477bbfc 100644 --- a/internal/plexdb/live_test.go +++ b/internal/plexdb/live_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: GPL-3.0-or-later +// Copyright (C) 2026 TheIntroDB + package plexdb import ( diff --git a/internal/plexdb/markers.go b/internal/plexdb/markers.go index 8ba632a..fdaf6ea 100644 --- a/internal/plexdb/markers.go +++ b/internal/plexdb/markers.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: GPL-3.0-or-later +// Copyright (C) 2026 TheIntroDB + package plexdb import ( diff --git a/internal/plexdb/markertag_live_test.go b/internal/plexdb/markertag_live_test.go index f47bbb7..3e8a10b 100644 --- a/internal/plexdb/markertag_live_test.go +++ b/internal/plexdb/markertag_live_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: GPL-3.0-or-later +// Copyright (C) 2026 TheIntroDB + package plexdb import ( diff --git a/internal/plexdb/plexdb_test.go b/internal/plexdb/plexdb_test.go index 6fe3c50..e6a3e3b 100644 --- a/internal/plexdb/plexdb_test.go +++ b/internal/plexdb/plexdb_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: GPL-3.0-or-later +// Copyright (C) 2026 TheIntroDB + package plexdb import ( diff --git a/internal/plexdb/settingmarkers.go b/internal/plexdb/settingmarkers.go index 50a2c01..9e51008 100644 --- a/internal/plexdb/settingmarkers.go +++ b/internal/plexdb/settingmarkers.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: GPL-3.0-or-later +// Copyright (C) 2026 TheIntroDB + package plexdb import ( diff --git a/internal/plexdb/settingmarkers_live_test.go b/internal/plexdb/settingmarkers_live_test.go index 9dfd56a..e617faf 100644 --- a/internal/plexdb/settingmarkers_live_test.go +++ b/internal/plexdb/settingmarkers_live_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: GPL-3.0-or-later +// Copyright (C) 2026 TheIntroDB + package plexdb import ( diff --git a/internal/plexdb/showids.go b/internal/plexdb/showids.go index 9a8ba8b..4734f55 100644 --- a/internal/plexdb/showids.go +++ b/internal/plexdb/showids.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: GPL-3.0-or-later +// Copyright (C) 2026 TheIntroDB + package plexdb import ( diff --git a/internal/plexdb/showids_test.go b/internal/plexdb/showids_test.go index befa8b2..2c7c3b9 100644 --- a/internal/plexdb/showids_test.go +++ b/internal/plexdb/showids_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: GPL-3.0-or-later +// Copyright (C) 2026 TheIntroDB + package plexdb import ( diff --git a/internal/plexdb/undo.go b/internal/plexdb/undo.go index 5a8268d..af53596 100644 --- a/internal/plexdb/undo.go +++ b/internal/plexdb/undo.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: GPL-3.0-or-later +// Copyright (C) 2026 TheIntroDB + package plexdb import ( diff --git a/internal/schedule/cron.go b/internal/schedule/cron.go index fc21f7e..9f413a8 100644 --- a/internal/schedule/cron.go +++ b/internal/schedule/cron.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: GPL-3.0-or-later +// Copyright (C) 2026 TheIntroDB + // Package schedule implements the cron subset the tool needs to run itself on a // timer. // diff --git a/internal/schedule/cron_test.go b/internal/schedule/cron_test.go index 6d85eaa..e4a8abf 100644 --- a/internal/schedule/cron_test.go +++ b/internal/schedule/cron_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: GPL-3.0-or-later +// Copyright (C) 2026 TheIntroDB + package schedule import ( diff --git a/internal/source/chapters.go b/internal/source/chapters.go index 9028fe4..d833e67 100644 --- a/internal/source/chapters.go +++ b/internal/source/chapters.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: GPL-3.0-or-later +// Copyright (C) 2026 TheIntroDB + // Package source holds the alternate marker sources. // // TheIntroDB is the primary source and lives in internal/tidb. These fill in diff --git a/internal/source/detection.go b/internal/source/detection.go index dfdc708..3312f69 100644 --- a/internal/source/detection.go +++ b/internal/source/detection.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: GPL-3.0-or-later +// Copyright (C) 2026 TheIntroDB + package source import ( diff --git a/internal/source/source_test.go b/internal/source/source_test.go index 6bdee29..b50b547 100644 --- a/internal/source/source_test.go +++ b/internal/source/source_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: GPL-3.0-or-later +// Copyright (C) 2026 TheIntroDB + package source import ( diff --git a/internal/sync/detection.go b/internal/sync/detection.go index 1d39e15..a33302f 100644 --- a/internal/sync/detection.go +++ b/internal/sync/detection.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: GPL-3.0-or-later +// Copyright (C) 2026 TheIntroDB + package sync import ( diff --git a/internal/sync/setup.go b/internal/sync/setup.go index 62f9349..7490133 100644 --- a/internal/sync/setup.go +++ b/internal/sync/setup.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: GPL-3.0-or-later +// Copyright (C) 2026 TheIntroDB + package sync import ( diff --git a/internal/sync/sync.go b/internal/sync/sync.go index 8b1e59d..ed96b88 100644 --- a/internal/sync/sync.go +++ b/internal/sync/sync.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: GPL-3.0-or-later +// Copyright (C) 2026 TheIntroDB + // Package sync orchestrates a run: inventory, fetch, plan, apply. // // It is the only package that decides when something is written. The terminal diff --git a/internal/sync/sync_test.go b/internal/sync/sync_test.go index 0ee8312..c35dd83 100644 --- a/internal/sync/sync_test.go +++ b/internal/sync/sync_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: GPL-3.0-or-later +// Copyright (C) 2026 TheIntroDB + package sync import ( diff --git a/internal/tidb/client.go b/internal/tidb/client.go index c9925e7..3dde220 100644 --- a/internal/tidb/client.go +++ b/internal/tidb/client.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: GPL-3.0-or-later +// Copyright (C) 2026 TheIntroDB + // Package tidb is the TheIntroDB API client: lookups, the scan record, the // response cache, the request pacing and the daily budget. // diff --git a/internal/tidb/client_test.go b/internal/tidb/client_test.go index e1e11c4..b3c145d 100644 --- a/internal/tidb/client_test.go +++ b/internal/tidb/client_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: GPL-3.0-or-later +// Copyright (C) 2026 TheIntroDB + package tidb import ( diff --git a/internal/tidb/lookup.go b/internal/tidb/lookup.go index bd28dbb..1f7289c 100644 --- a/internal/tidb/lookup.go +++ b/internal/tidb/lookup.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: GPL-3.0-or-later +// Copyright (C) 2026 TheIntroDB + package tidb import ( diff --git a/internal/tui/header_test.go b/internal/tui/header_test.go index eae227c..7b41181 100644 --- a/internal/tui/header_test.go +++ b/internal/tui/header_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: GPL-3.0-or-later +// Copyright (C) 2026 TheIntroDB + package tui import ( diff --git a/internal/tui/model.go b/internal/tui/model.go index c7b8832..7ca5b89 100644 --- a/internal/tui/model.go +++ b/internal/tui/model.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: GPL-3.0-or-later +// Copyright (C) 2026 TheIntroDB + // Package tui is the interactive terminal interface. // // It is the default way to use the tool: a terminal, a keyboard, and no diff --git a/internal/tui/model_test.go b/internal/tui/model_test.go index 565ee57..f29e7ae 100644 --- a/internal/tui/model_test.go +++ b/internal/tui/model_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: GPL-3.0-or-later +// Copyright (C) 2026 TheIntroDB + package tui import ( diff --git a/internal/tui/plan_test.go b/internal/tui/plan_test.go index 25ecf0b..4962cef 100644 --- a/internal/tui/plan_test.go +++ b/internal/tui/plan_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: GPL-3.0-or-later +// Copyright (C) 2026 TheIntroDB + package tui import ( diff --git a/internal/tui/refresh_test.go b/internal/tui/refresh_test.go index 423fa5e..05a06b8 100644 --- a/internal/tui/refresh_test.go +++ b/internal/tui/refresh_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: GPL-3.0-or-later +// Copyright (C) 2026 TheIntroDB + package tui import ( diff --git a/internal/tui/settings.go b/internal/tui/settings.go index 0ecb059..5a962b6 100644 --- a/internal/tui/settings.go +++ b/internal/tui/settings.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: GPL-3.0-or-later +// Copyright (C) 2026 TheIntroDB + package tui import ( diff --git a/internal/tui/settings_edit.go b/internal/tui/settings_edit.go index 626c8df..006782d 100644 --- a/internal/tui/settings_edit.go +++ b/internal/tui/settings_edit.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: GPL-3.0-or-later +// Copyright (C) 2026 TheIntroDB + package tui import ( diff --git a/internal/tui/settings_markertag_test.go b/internal/tui/settings_markertag_test.go index 7ebb384..a9c8d36 100644 --- a/internal/tui/settings_markertag_test.go +++ b/internal/tui/settings_markertag_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: GPL-3.0-or-later +// Copyright (C) 2026 TheIntroDB + package tui import ( diff --git a/internal/tui/settings_resolved_test.go b/internal/tui/settings_resolved_test.go index 8562d95..769454c 100644 --- a/internal/tui/settings_resolved_test.go +++ b/internal/tui/settings_resolved_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: GPL-3.0-or-later +// Copyright (C) 2026 TheIntroDB + package tui import ( diff --git a/internal/tui/settings_test.go b/internal/tui/settings_test.go index 099a7a9..da5f54a 100644 --- a/internal/tui/settings_test.go +++ b/internal/tui/settings_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: GPL-3.0-or-later +// Copyright (C) 2026 TheIntroDB + package tui import ( diff --git a/internal/tui/view.go b/internal/tui/view.go index 2b84c3d..3d4f44d 100644 --- a/internal/tui/view.go +++ b/internal/tui/view.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: GPL-3.0-or-later +// Copyright (C) 2026 TheIntroDB + package tui import ( diff --git a/main.go b/main.go index b499b76..b4e0218 100644 --- a/main.go +++ b/main.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: GPL-3.0-or-later +// Copyright (C) 2026 TheIntroDB + // Command plex-sync fills in Plex's intro and credits markers from TheIntroDB. package main diff --git a/scripts/live-e2e.sh b/scripts/live-e2e.sh index fff6f74..b3d7990 100755 --- a/scripts/live-e2e.sh +++ b/scripts/live-e2e.sh @@ -1,4 +1,7 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: GPL-3.0-or-later +# Copyright (C) 2026 TheIntroDB + # # Run the live tests in internal/plexdb against a copy of a real Plex database. # diff --git a/scripts/update-homebrew-formula.py b/scripts/update-homebrew-formula.py index fbb10a3..9078d47 100755 --- a/scripts/update-homebrew-formula.py +++ b/scripts/update-homebrew-formula.py @@ -1,4 +1,7 @@ #!/usr/bin/env python3 +# SPDX-License-Identifier: GPL-3.0-or-later +# Copyright (C) 2026 TheIntroDB + """Point the Homebrew formula in the tap at a released version. Called by the release workflow after the release exists. It rewrites the