Luca Soldi

  • Home
  • Blog
  • Projects
  • Github
  • About me

Download ItaloLive media content

    Home Random Stuff Download ItaloLive media content
    NextPrevious

    Download ItaloLive media content

    By admin | Random Stuff, Scraping | 0 comment | 20 June, 2019 | 0

    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!

    No tags.

    admin

    More posts by admin

    Related Post

    • REST API Best Security Practices [PRANK]

      By admin | 0 comment

      I love to see how internet is a secure place nowadays πŸ˜€ Apps and WebApps everywhere that use very reliable REST APIs. This time I found a perfect example to follow if you want toRead more

    • How to get duration of Wav file in React Native

      By admin | 0 comment

      I’m writing an audio app in React Native that plays WAV file from local storage. I was looking for a simple and little module to get the duration of WAV files, but I didn’t findRead more

    • How to get artworks for your music library

      By admin | 0 comment

      I’m working on a script to automate tagging and ordering my music library. I love artworks so I had to find a way to take them from the net. I found 2 ways to getRead more

    • My Desk Led Light (APA102 + Arduino Nano + HM10)

      By admin | 2 comments

      I recently changed home and I wanted to create something different in my new work desk. Months ago I created ambilight for my TV with some meters of APA102 led and ambilight software and IRead more

    • [POC] How to travel for free with Italian public transports

      By admin | 0 comment

      Hey remember! It’s a proof of concept πŸ™‚ Before publishing this article I verified that the company not use this technology anymore. Some years ago I did some experiments with my rechargeable card used inRead more

    • Unbrick Proxmark3 with a Raspberry Pi and OpenOCD

      By admin | 4 comments

      Months ago I bricked my Proxmark3 while I was experimenting with the creation of a new antenna for a tag. The leds blinkedΒ in a strange way at boot and my mac not recognized anymore theRead more

    Leave a Comment

    Cancel reply

    Your email address will not be published. Required fields are marked *

    NextPrevious

    Categories

    • Android
    • Arduino
    • Bluetooth
    • iOS
    • Random Stuff
    • Raspberry Pi
    • RFID
    • Scraping

    Archives

    • December 2020
    • June 2019
    • January 2019
    • October 2018
    • September 2018
    • May 2017
    • January 2017
    Copyright 2017 Luca Soldi | All Rights Reserved
    • About me
    • Blog
    • Home
    • Projects

    Luca Soldi