i need php script to grab/generate new Auth token after expired for .ts or .m3u8 url (kodi or vlc)

i have try so much but i have not lucky.

this is my sample url:

witch i need to play on kodi, but after 24 hours this url dead and not working again, i need to grab url again with new token.