feat(media): add mam-bonus daily upload-credit buyer

Spends MAM bonus points once a day (04:17) on upload credit via
json/bonusBuy.php (spendtype=upload, "Max Affordable ") so seedbonus
never caps out. Dedicated MAM session; rotated mam_id is persisted in a
curl cookie jar under /config/mam-bonus. Skips when below the 50 GiB
minimum; failures alert ntfy topic `mam`.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
ginnoirandClaude Opus 5.5 committed 2026-11-21 17:20:02 -06:00
1 parent 4140fd49c8
commit ca257000c8
3 files changed
+111

No files matched your search

+6
View File
@@ -39,3 +39,9 @@ AUTOBRR__OIDC_DISABLE_BUILT_IN_LOGIN=true
# autobrr API key for scripted ops (row "homelab-ops" in api_key table)
AUTOBRR_API_KEY=3076c984c78d9ef477228379faea6b04
# mam-bonus: dedicated MAM session (bare mam_id) for the daily upload-credit buy.
# Seeds /config/mam-bonus/cookies.txt; MAM rotates it and the job re-saves it there.
MAM_BONUS_MAM_ID=JbRgCtBtbsFjCbXsDOUhtMpuUO-oe2dc1i1wT8-8OZRJ0dmBspWkG2SmK5euqhgX-XbtncjiGHWHBYMRS_DSvO4DXsdH--OHZAcZmUgcDuPBaDAcSMEmKSkpvPayUazed0YU3ncV6om380HXPnBgaAvTvocM5lcPruIHWgcji4771TuLriZ7D5xPtqjkO9YdsjOh2A_ckhQQLhFPmejFjgx9mJJ6fc4Xw3ctFwO2CY8EDcH6u3ViF7jD73Qpr8gWnfwGokuHVpKSyJDUzUWPkj7NbldwUhdS-C4l
MAM_BONUS_RESERVE=0
MAM_BONUS_NTFY=http://ntfy:80/mam