Can I download video streams to disk in OSMC?

I’m not sure but the iptv pvr addon may do what you want.

:flushed: Sorry, I totally forgot that I discussed this here back in September!
Anyways I remembered that I used ffmpeg at some earlier time and that it did work then.
Now I have tried it with different results, so it seems like I am back at square one.
And I found my notes from September 2015 so I have now performed the steps that worked back then:

I tried to download an SVTPlay program using ffmpeg, but the response I get on the OSM command line is:

http://media.svt.se/download/mcc/test/core-prd/SUB-1366384-005A-HUSDROMMAR/index.m3u8~lang=sv: Server returned 404 Not Found

So either the command line is not correctly composed or something has changed between then and now.
The command line itself looked like this (one single line):

ffmpeg -i "https://media.svt.se/download/mcc/test/core-prd/SUB-1366384-005A-HUSDROMMAR/index.m3u8~lang=sv" -acodec copy -vcodec copy -absf aac_adtstoasc "sasong-3-avsnitt-5.mp4"

The formatting etc of this command was retrieved using the Pirateplayer API page.
When I enter the URL of the webpage holding the program it seems to be able to find all of the streams OK but the resulting command is not working.
Maybe I need a later version of ffmpeg? The one on my OSMC Pi2 is 2.6.4

Edit:
I forgot to say that I also tried svtplay-dl on this program but with the same dismal result.
But OTOH if I select another program like a childrens cartoon it does work with ffmpeg but not svtplay-dl, so it seems like there is some problem with the way the streams are encoded in certain cases.
The failing program is on this page:

And here is the cartoon I tested successfully on.