@great_vc ok script, but if I can suggest something:
change name of script trakt_new_shows_fixed.php to trakt_new_shows.php it would looks better, any new versions can be handled by git and user can read versions in dedicated file like Changelog.md
add in README.md section about, how to get TRAKT_ACCESS_TOKEN, because access tokes in trakt.tv api have short ttl: 7 days - Authentication
The weird thing with the API thouh, whenever i refresh i get a valid 90 days token. ALso at this point the Keys do not work for some reason (probably because something happened to all the APIS) but the page .[php still brings results, which is super weird.
@great_vc dont forget thtat you have vip account, so your access tokens can be “priviledged” about livetime
info about access tokens from docs:
Refreshing an Access Token
Access tokens are valid for 7 days. Use the refresh_token returned during authorization with the POST /oauth/token endpoint to obtain a new access token without asking the user to authorize your app again.
but it can be old info, because as I rememeber they short from days to hours, but refresh tokens have longer livetime so you can refresh token without making whole gathering new token procedure
@great_vc everything depends on implementation of oauth, but there are no obligatiory rule to invalid old token when you generate new one (when refresh yes, but not when you create new one)
Finding a past or future premiere I might want to watch, and adding that to a list.
With v3 #2 seems to be gone, and your work might just be a decent replacement.
However, since I use Kodi to watch my content, I, of course, have the Kodi addon register the watch status. Will I be able to use your code without VIP?
IIRC, you can only have one API connection on Free?
You need only a client ID not a “api key” i think that is free for averybody.
Go to your settings=>apps=>create application and just enter a name and nothing else, you will get a client ID, that is all that you need, no expiration and no refresh token like OAUTH
If it is only Create that requires VIP, it might be worth it to just get it registered, if you can keep it even when VIP expires. If not, then absolutely not.