From e4c2ca0881629fe2432107383e26204f6e8f1a4e Mon Sep 17 00:00:00 2001 From: PiratesIRC <98669745+PiratesIRC@users.noreply.github.com> Date: Tue, 24 Nov 2026 06:40:44 -0600 Subject: [PATCH 1/3] [stream-mapparr] 1.26.3281235 Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_017Q5fkWbvFYRadudTSM2M4Z --- plugins/stream-mapparr/README.md | 37 +++++++++++++++++++++++++++--- plugins/stream-mapparr/plugin.json | 2 +- 2 files changed, 35 insertions(+), 4 deletions(-) diff --git a/plugins/stream-mapparr/README.md b/plugins/stream-mapparr/README.md index c66ad19e..aeb06cf8 100644 --- a/plugins/stream-mapparr/README.md +++ b/plugins/stream-mapparr/README.md @@ -230,7 +230,7 @@ the operation lock prevents concurrent runs and auto-expires after 10 minutes. | **Match US OTA Only** | Match US broadcast channels by callsign | | **Sort Alternate Streams** | Re-sort existing streams by quality, and by throughput tier where probe data exists | | **Probe Stream Throughput** | Measure sustained throughput for assigned streams. Run this before Sort Alternate Streams | -| **Fill Mirror Backups** | For M3U accounts placed in one Dispatcharr server group that carry the same streams from different provider hosts, add to each channel the matching stream, found by provider stream id, from every other active account whose host the channel has no stream from yet. Two accounts on the same host count as one, and inactive accounts are skipped. New streams go after the existing provider streams and before any custom stream. Adds only and never removes. In live mode it first saves each changed channel's previous stream order to `/data/stream_mapparr_snapshots/`, and changes nothing if that save fails. Writes every addition to `/config/stream-mapparr/fill-mirror-backups.txt` | +| **Fill Mirror Backups** | For M3U accounts placed in one Dispatcharr server group that carry the same streams from different provider hosts, add to each channel the matching stream, found by provider stream id, from every other active account whose host the channel has no stream from yet. Two accounts on the same host count as one, and inactive accounts are skipped. New streams go after the existing provider streams and before any custom stream. Adds only and never removes. In live mode it first saves each changed channel's previous stream order to `snapshots/` in the plugin's data directory (see [Where Stream-Mapparr keeps its files](#where-stream-mapparr-keeps-its-files)), and changes nothing if that save fails. Writes every addition to `/config/stream-mapparr/fill-mirror-backups.txt` | | **Manage Channel Visibility** | Enable or disable channels based on stream count | | **View Status** | Show the running operation's percentage and estimated time, or a summary of the last completed operation when nothing is running | | **Clear CSV Exports** | Delete plugin CSV files, skipping any written in the last 40 minutes | @@ -330,12 +330,43 @@ asks the server to delete this install's figures. Once the server confirms the delete, the plugin forgets its id, and ticking the setting again later starts a new one; if the delete could not reach the server, the plugin keeps the id and retries. The plugin keeps that id and the timing of its reports in -/data/plugin_stats/stream-mapparr/ (install_id, sent, backoff, disabled, -delete_backoff, lock). To start a new id, untick the setting and let a run +`usage/stream-mapparr/` inside the plugin's data directory (install_id, sent, +backoff, disabled, delete_backoff, lock). To start a new id, untick the setting and let a run finish so the delete succeeds; deleting that folder while the setting is ticked leaves the old figures on the server, and the new id then sends the full total again, so the badge counts those matches twice. +## Where Stream-Mapparr keeps its files + +Dispatcharr 0.34 gives each plugin a private data directory. On that version Stream-Mapparr +keeps its state there, in `/data/plugins/_data//` (for this plugin, +`/data/plugins/_data/stream-mapparr/`). It holds the saved settings cache, the processed +results, the last run's results, the match tally behind the Streams Matched badge, the +channel snapshots, the readouts written when `/config` cannot be written, and the usage +counts folder. On Dispatcharr 0.33 nothing moves. + +Four other places hold files: + +- `/data/plugins/_shared/newsflasharr/stream-mapparr/` holds the run reports that + Newsflasharr attaches to its notifications. The folder is shared with Newsflasharr. +- `/data/exports/` holds the CSV exports, as before. +- `/data/stream_mapparr_*` holds the files from earlier versions. The first run on this + version copies them across and leaves them where they are, and records what it copied in + `migrated.json` inside the data directory. Delete them by hand only when both of these are + true: the `failed` list in `migrated.json` is empty, and none of the old files has changed + since the time `migrated.json` records. A Dispatcharr process that still runs the earlier + version, such as a Celery worker that has not run a plugin action since the upgrade, keeps + writing the old files until it reloads the plugin, and a restart of Dispatcharr ends that. +- `/data/plugins/_data/` holds seven small files beside the data directory: + `.scheduler.lock`, `.scheduler_last_run.json`, `.active`, + `.migrated`, `.operation.lock`, `.m3u_refresh.lock` and + `.m3u_refresh_pending` (the last exists only while a rerun is queued). + +Uninstalling the plugin and choosing "delete data" removes the data directory. That takes +the match tally behind the Streams Matched badge and this install's anonymous usage id, so +a reinstall starts a new id. The seven small files and the shared reports folder are not +removed by that choice. + ## Changelog See [CHANGELOG.md](https://github.com/PiratesIRC/Stream-Mapparr/blob/main/CHANGELOG.md) for full version history. diff --git a/plugins/stream-mapparr/plugin.json b/plugins/stream-mapparr/plugin.json index 8634b39a..24b43517 100644 --- a/plugins/stream-mapparr/plugin.json +++ b/plugins/stream-mapparr/plugin.json @@ -1,6 +1,6 @@ { "name": "Stream-Mapparr", - "version": "1.26.3262042", + "version": "1.26.3281235", "description": "Automatically add matching streams to channels based on name similarity and quality precedence. Supports unlimited stream matching, channel visibility management, and CSV export cleanup.", "author": "PiratesIRC", "license": "MIT", From 3aeaed036ca6849075e7d4d8228e89b48cca86ab Mon Sep 17 00:00:00 2001 From: PiratesIRC <98669745+PiratesIRC@users.noreply.github.com> Date: Tue, 24 Nov 2026 06:54:00 -0600 Subject: [PATCH 2/3] [stream-mapparr] 1.26.3281249 Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_017Q5fkWbvFYRadudTSM2M4Z --- plugins/stream-mapparr/plugin.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/stream-mapparr/plugin.json b/plugins/stream-mapparr/plugin.json index 24b43517..9f4c8df5 100644 --- a/plugins/stream-mapparr/plugin.json +++ b/plugins/stream-mapparr/plugin.json @@ -1,6 +1,6 @@ { "name": "Stream-Mapparr", - "version": "1.26.3281235", + "version": "1.26.3281249", "description": "Automatically add matching streams to channels based on name similarity and quality precedence. Supports unlimited stream matching, channel visibility management, and CSV export cleanup.", "author": "PiratesIRC", "license": "MIT", From 34c1e03463c2a07b456e1306ce3022cd13ee98fd Mon Sep 17 00:00:00 2001 From: PiratesIRC <98669745+PiratesIRC@users.noreply.github.com> Date: Tue, 24 Nov 2026 07:05:05 -0600 Subject: [PATCH 3/3] [stream-mapparr] 1.26.3281300 Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_017Q5fkWbvFYRadudTSM2M4Z --- plugins/stream-mapparr/plugin.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/stream-mapparr/plugin.json b/plugins/stream-mapparr/plugin.json index 9f4c8df5..1ac58dc7 100644 --- a/plugins/stream-mapparr/plugin.json +++ b/plugins/stream-mapparr/plugin.json @@ -1,6 +1,6 @@ { "name": "Stream-Mapparr", - "version": "1.26.3281249", + "version": "1.26.3281300", "description": "Automatically add matching streams to channels based on name similarity and quality precedence. Supports unlimited stream matching, channel visibility management, and CSV export cleanup.", "author": "PiratesIRC", "license": "MIT",