I've recently written a small utility for downloading shows from SVTPlay called SPPD. It is written in python 3 and requires the requests library.

The program takes two arguments;

  1. A url to a program on SVTPlay
  2. A filename to save the files to

It hasn't got all the cool setup-tools-stuff yet, but I plan to add it.

The reason I wrote this is so that I can record copies of shows before they get taken off air, like you used to do with old VHS-tapes back in the 1990s. It even has a really cool looking status bar!

$ ./sppd.py http://www.svtplay.se/somevideo/ dunz0rs-show.ts
Fetching segments: [############################################################] 57/57

The way it works is that it fetches the playlist by appending ?output=json, this playlist is then fetched and the segments in it are fetched sequentially and appended to sys.argv[2]. I have future plans to let it use multiple threads for fetching the segments, storing them in RAM and then writing them to a file when they're all done. Not that I think that it would increase the download speed very much but it would be a fun exercise :).

A programming adapter for AVRs

I've just placed an order at [SeeedStudio][sed] for some PCBs that I've designed in [KiCAD][kic].It's a very simple circuit consisting of...… Continue reading

Matching subnets with Salt-stack

Published on March 02, 2015