Advertisements

Bash script to send contents of file containing URLs to Synology Download Station via API

This bash script will read a file containing a list of URLs line-by-line and send each of those URLs to a Synology DiskStation’s Download Manager via the published API.

Read the comments.

Note that, in user land, it might be easier to simply upload the text file to the Download Station. The below is useful if you want to programatically pass download tasks to Download Station, such as on the update of a web page, etc, etc.

UPDATE: This has been moved to github, here.

If you have any questions or comments on this script, please feel free to comment below. Thank you!

Advertisements

, , ,

  1. #1 by Kristof Braekmans on March 26, 2014 - 6:39 am

    Hi Mike,

    this is very interesting, i have a few of my favorite radio shows that are encoded as http download links daily and the name stays the same. Do i run this script from the synology itself with task scheduler?

    example of the link http://download.streampower.be/vrt/radio1/11_11bral-snip_hi.mp3
    (from Belgium) :-)

    Best regards
    Kristof Braekmans

    • #2 by Mike Beach on April 4, 2014 - 5:45 pm

      That should work just fine :)