Music Choice offer variety of music channels with video and radio stations,access is authorised by TVE credentials.
I tried to do some preliminary job - base code here -> here
However I encounter problem because puppeteer always gives me "network error, press retry to reconnect" error and I cannot fix it Usage:
- extract archive
- npm install
- replace in app.js strings YOUREMAIL and YOURPASSWORD with your credentials
- run node app.js
In app.js I included array of anchors representing different music stations, on Website clicking into anchor reloads musicplayer. Each streaming link can be accessed from player using document.getElementsByTagName("video")[1].attributes[6].nodeValue
Important information: due to weird nature of contracts Music Choice has, TVE authorisation on web lasts ~4hours, while authorisation on mobile device is for 30 days
I tried to:
await page.setUserAgent('Mozilla/5.0 (iPad; CPU OS 12_4 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148');
but that's apparently a no-go because each stream URL extracted that way had a ?Platform\=Web\
component