@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)