Skip to content
Merged
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
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

---

Expand Down
3 changes: 3 additions & 0 deletions internal/api/journals.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: GPL-3.0-or-later
// Copyright (C) 2026 TheIntroDB

package api

import (
Expand Down
3 changes: 3 additions & 0 deletions internal/api/server.go
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 3 additions & 0 deletions internal/app/app.go
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 3 additions & 0 deletions internal/app/plexdb_handle_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: GPL-3.0-or-later
// Copyright (C) 2026 TheIntroDB

package app

import (
Expand Down
3 changes: 3 additions & 0 deletions internal/buildinfo/buildinfo.go
Original file line number Diff line number Diff line change
@@ -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

Expand Down
3 changes: 3 additions & 0 deletions internal/cli/api.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: GPL-3.0-or-later
// Copyright (C) 2026 TheIntroDB

package cli

import (
Expand Down
3 changes: 3 additions & 0 deletions internal/cli/commands.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: GPL-3.0-or-later
// Copyright (C) 2026 TheIntroDB

package cli

import (
Expand Down
3 changes: 3 additions & 0 deletions internal/cli/config.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: GPL-3.0-or-later
// Copyright (C) 2026 TheIntroDB

package cli

import (
Expand Down
3 changes: 3 additions & 0 deletions internal/cli/markerflag_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: GPL-3.0-or-later
// Copyright (C) 2026 TheIntroDB

package cli

import (
Expand Down
3 changes: 3 additions & 0 deletions internal/cli/root.go
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 3 additions & 0 deletions internal/cli/schedule.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: GPL-3.0-or-later
// Copyright (C) 2026 TheIntroDB

package cli

import (
Expand Down
3 changes: 3 additions & 0 deletions internal/cli/setup.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: GPL-3.0-or-later
// Copyright (C) 2026 TheIntroDB

package cli

import (
Expand Down
3 changes: 3 additions & 0 deletions internal/cli/startstop.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: GPL-3.0-or-later
// Copyright (C) 2026 TheIntroDB

package cli

import (
Expand Down
3 changes: 3 additions & 0 deletions internal/cli/tui.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: GPL-3.0-or-later
// Copyright (C) 2026 TheIntroDB

package cli

import (
Expand Down
3 changes: 3 additions & 0 deletions internal/cli/version.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: GPL-3.0-or-later
// Copyright (C) 2026 TheIntroDB

package cli

import (
Expand Down
3 changes: 3 additions & 0 deletions internal/config/config.go
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 3 additions & 0 deletions internal/config/config_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: GPL-3.0-or-later
// Copyright (C) 2026 TheIntroDB

package config

import (
Expand Down
3 changes: 3 additions & 0 deletions internal/config/example_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: GPL-3.0-or-later
// Copyright (C) 2026 TheIntroDB

package config

import (
Expand Down
3 changes: 3 additions & 0 deletions internal/config/identity.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: GPL-3.0-or-later
// Copyright (C) 2026 TheIntroDB

package config

import (
Expand Down
3 changes: 3 additions & 0 deletions internal/config/identity_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: GPL-3.0-or-later
// Copyright (C) 2026 TheIntroDB

package config

import (
Expand Down
3 changes: 3 additions & 0 deletions internal/config/plexpaths.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: GPL-3.0-or-later
// Copyright (C) 2026 TheIntroDB

package config

import (
Expand Down
3 changes: 3 additions & 0 deletions internal/config/plexpaths_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: GPL-3.0-or-later
// Copyright (C) 2026 TheIntroDB

package config

import (
Expand Down
3 changes: 3 additions & 0 deletions internal/config/save.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: GPL-3.0-or-later
// Copyright (C) 2026 TheIntroDB

package config

import (
Expand Down
3 changes: 3 additions & 0 deletions internal/config/save_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: GPL-3.0-or-later
// Copyright (C) 2026 TheIntroDB

package config

import (
Expand Down
3 changes: 3 additions & 0 deletions internal/config/schedule_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: GPL-3.0-or-later
// Copyright (C) 2026 TheIntroDB

package config

import (
Expand Down
3 changes: 3 additions & 0 deletions internal/httpclient/client.go
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 3 additions & 0 deletions internal/ledger/ledger.go
Original file line number Diff line number Diff line change
@@ -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.
//
Expand Down
3 changes: 3 additions & 0 deletions internal/ledger/ledger_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: GPL-3.0-or-later
// Copyright (C) 2026 TheIntroDB

package ledger

import (
Expand Down
3 changes: 3 additions & 0 deletions internal/logging/logging.go
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 3 additions & 0 deletions internal/model/model.go
Original file line number Diff line number Diff line change
@@ -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.
//
Expand Down
3 changes: 3 additions & 0 deletions internal/model/model_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: GPL-3.0-or-later
// Copyright (C) 2026 TheIntroDB

package model

import "testing"
Expand Down
3 changes: 3 additions & 0 deletions internal/planfile/planfile.go
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 3 additions & 0 deletions internal/planfile/planfile_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: GPL-3.0-or-later
// Copyright (C) 2026 TheIntroDB

package planfile

import (
Expand Down
3 changes: 3 additions & 0 deletions internal/planner/planner.go
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 3 additions & 0 deletions internal/planner/planner_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: GPL-3.0-or-later
// Copyright (C) 2026 TheIntroDB

package planner

import (
Expand Down
3 changes: 3 additions & 0 deletions internal/plexapi/client.go
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 3 additions & 0 deletions internal/plexapi/client_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: GPL-3.0-or-later
// Copyright (C) 2026 TheIntroDB

package plexapi

import (
Expand Down
3 changes: 3 additions & 0 deletions internal/plexapi/parse.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: GPL-3.0-or-later
// Copyright (C) 2026 TheIntroDB

package plexapi

import (
Expand Down
3 changes: 3 additions & 0 deletions internal/plexdb/backup.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: GPL-3.0-or-later
// Copyright (C) 2026 TheIntroDB

package plexdb

import (
Expand Down
3 changes: 3 additions & 0 deletions internal/plexdb/db.go
Original file line number Diff line number Diff line change
@@ -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.
//
Expand Down
3 changes: 3 additions & 0 deletions internal/plexdb/extra.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: GPL-3.0-or-later
// Copyright (C) 2026 TheIntroDB

package plexdb

import (
Expand Down
3 changes: 3 additions & 0 deletions internal/plexdb/extra_golden_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: GPL-3.0-or-later
// Copyright (C) 2026 TheIntroDB

package plexdb

import (
Expand Down
3 changes: 3 additions & 0 deletions internal/plexdb/fixture_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: GPL-3.0-or-later
// Copyright (C) 2026 TheIntroDB

package plexdb

import (
Expand Down
3 changes: 3 additions & 0 deletions internal/plexdb/fts_probe_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: GPL-3.0-or-later
// Copyright (C) 2026 TheIntroDB

package plexdb

import (
Expand Down
3 changes: 3 additions & 0 deletions internal/plexdb/live_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: GPL-3.0-or-later
// Copyright (C) 2026 TheIntroDB

package plexdb

import (
Expand Down
3 changes: 3 additions & 0 deletions internal/plexdb/markers.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: GPL-3.0-or-later
// Copyright (C) 2026 TheIntroDB

package plexdb

import (
Expand Down
3 changes: 3 additions & 0 deletions internal/plexdb/markertag_live_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: GPL-3.0-or-later
// Copyright (C) 2026 TheIntroDB

package plexdb

import (
Expand Down
3 changes: 3 additions & 0 deletions internal/plexdb/plexdb_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: GPL-3.0-or-later
// Copyright (C) 2026 TheIntroDB

package plexdb

import (
Expand Down
3 changes: 3 additions & 0 deletions internal/plexdb/settingmarkers.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: GPL-3.0-or-later
// Copyright (C) 2026 TheIntroDB

package plexdb

import (
Expand Down
3 changes: 3 additions & 0 deletions internal/plexdb/settingmarkers_live_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: GPL-3.0-or-later
// Copyright (C) 2026 TheIntroDB

package plexdb

import (
Expand Down
3 changes: 3 additions & 0 deletions internal/plexdb/showids.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: GPL-3.0-or-later
// Copyright (C) 2026 TheIntroDB

package plexdb

import (
Expand Down
3 changes: 3 additions & 0 deletions internal/plexdb/showids_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: GPL-3.0-or-later
// Copyright (C) 2026 TheIntroDB

package plexdb

import (
Expand Down
3 changes: 3 additions & 0 deletions internal/plexdb/undo.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: GPL-3.0-or-later
// Copyright (C) 2026 TheIntroDB

package plexdb

import (
Expand Down
3 changes: 3 additions & 0 deletions internal/schedule/cron.go
Original file line number Diff line number Diff line change
@@ -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.
//
Expand Down
Loading
Loading