Dynamic variable query string in HLS URL

  • Hello all. I am a novice at Linux and need some expert help. I am streaming from a HLS URL where the token and keys change either on a 24 hour basis or 20 minute basis depending on which token is used to generate the query string.


    Currently, I am updating the .tv bouquet file manually by generating the new token and then inserting this into the .tv bouquet file then rebooting the receiver but this is proving to be too tedious.


    I was wondering whether there is any way of creating a realtime lookup to the relevant URL to generate the token and insert this?


    To give a bit of context this is what I need to do to currently create the base URL+query string:


    1. Go to xxxxxx/tv.php site to get hdnts string (expiry is 20 minutes from point of generation)

    2. Append this hdnts string onto base URL: xxxx/tvchannel1/index.m3u8?hdntsstring from1 then go to this URL. If I use a web browser, the result is several bandwidth EXTM3U locations which need to be appended to base URL (expiry is 24 hours from point of generation). Note that I can stream immediately from this new URL but it is not worth entering into the receiver as the expiry is only 20 minutes.

    3. Select relevant HD bandwidth from 2. above which creates a new query string to append to base URL

    4. Create new base URL+query string from 3. then insert this into bouquets tv file and reboot receiver


    Can anyone kindly tell me if there is a better way of doing this please such as creating a dynamic lookup and/or writing a small script which could do this for me. I have no idea about scripts otherwise I would do this myself but keen to learn! Thank you

OpenATV Team Images Support Forum ~ based on OE-Alliance

OpenATV Supported Models ~ Airdigital, Amiko, Anadol, Atemio, Atto, AX Technology, Axas, Beyonwiz, Dinobot, Dreambox, Edision, EVO, Ferguson, Formuler, Galaxy Innovations, Gigablue, Golden Interstar, HDBox, Hitube, James Donkey, IQON, Izibox, Jepssen, Maxdigital, Medialink, MaXytec, MediaArt, Megaset, Miraclebox, MK-Digital, Mut@nt, Novaler, Octagon, Odin, Optibox, Protek, PULSe, Qviart, Red-Eagle, Relook, Roxxs, SAB, Sezam, Sogno, Space, Spycat, Technomate, Telestar, Tiviar, T-Rex, Uclan, Venton Unibox, Vimastec, VisionNet, VU+, VUplus, World Vision, Vizyon, WWio, Xsarius, and Xtrend.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!