Results 1 to 2 of 2

Thread: Downloading with information from source

  1. #1
    Join Date
    Dec 2012

    Downloading with information from source

    Hi, I'm a beginner at this, but I have a quite specific wish I want to achieve.

    There is a site, where you can download single music tracks
    The downloading works like this xxx.com/download/###### (###-track id)
    Downloading multiple tracks is quite annoying like this so I want to make a script that does the work.

    When I have a playlist opened at the site, I open source and all the track id-s from the playlist are there on specific lines.
    For example track #1
    line 892 				rt.subscribe("track_123456", function (result) {
    track #2
    line 926					rt.subscribe("track_654321", function (result) {

    I want to collect 10 track-ids and start downloading them all at once.
    How do I achieve this?

  2. #2
    Join Date
    Mar 2011
    You'd be best off doing this with server-based software that would create a single .zip or .gz archive file of all the requested files. While you might find a way to do it with JavaScript alone, it would be clumsy since JavaScript doesn't have direct access to the user's disk storage and would ultimately have to rely on HTTP requests for each file. I'm sure that you could find a suitable PHP script on one of the scripts directories.
    Rick Trethewey
    Rainbo Design

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center