Boring long trip on an Italian high-speed train? It’s time to update your home media library π
Connecting to the train Wi-Fi you can access to an internal nginx server that serves see some media like films or listen multi genre songs.
Choose your favourite movie and you can see that the page make an AJAX request like:
GET https://portal.italolive.it/movie/benvenuti_al_nord_800x480_audio_ok.mp4
“name”: “benvenuti_al_nord_800x480_audio_ok”,
“directory”: “/media/movies/benvenuti_al_nord_800x480_audio_ok”,
“dash”: {
“hasSegment”: true,
“hasAudio”: true,
“hasVideo”: true,
“languages”: [“en”],
“file”: “benvenuti_al_nord_800x480_audio_ok.mpd”
},
“hls”: {
“hasSegment”: true,
“hasAudio”: true,
“hasVideo”: true,
“languages”: [],
“file”: “benvenuti_al_nord_800x480_audio_ok.m3u8”,
“tsFile”: “/media/movies/benvenuti_al_nord_800x480_audio_ok/media-1/media.ts”
}
}
Interesting path on tsFile json key π It’s time to download our movie from:
https://www.italolive.it/movies/benvenuti_al_nord_800x480_audio_ok/media-1/media.ts
Now we have to update our iPod music library with the new hits!
If you look at the HTML code we can see that the “a” element has the track_id attribute, the system use it to get the file location with a GET request:
GET https://www.italolive.it/music/play/track_id
And the server response is:
“id”: 6140,
“title”: “BUONA (CATTIVA) SORTE”,
“artist”: “TIZIANO FERRO”,
“src”: “buona-cattiva-sorte-tiziano-ferro-r105hit-201906.mp3”,
“image”: “105_new_wave_201906_v2-2.png”
}
With the src field we can go to:
https://www.italolive.it/uploads/song/content/buona-cattiva-sorte-tiziano-ferro-r105hit-201906.mp3
…and download it π
Have a nice trip!
Leave a Comment