2025-05-17, 06:51 PM
(2024-12-22, 02:31 PM)sjorge Wrote: You can't set a next up periode for example which is one of the many annoyances I have with it
Not perfect but i hacked my way around this at the reverse proxy level

Code:
## Infuse-Direct NextUp 180 days
RewriteEngine On
RewriteMap date_cutoff prg:/abs/path/to/infuse_nextup_hack.sh
RewriteCond %{HTTP_USER_AGENT} ^Infuse-Direct [NC]
RewriteCond %{REQUEST_URI} ^/Shows/NextUp$ [NC]
RewriteCond %{QUERY_STRING} !NextUpDateCutoff= [NC]
RewriteRule ^(.*)$ $1?NextUpDateCutoff=${date_cutoff:180} [QSA,R]
Code:
## infuse_nextup_hack.sh
#!/bin/bash
while read key; do
date -u -d "$key days ago" +"%Y-%m-%dT%H:%M:%S.000Z"
done