Additional Storage Locations for Channels DVR Recordings


#43

i was was pretty excited about this but there’s a pretty big oversight in your implementation: Windows paths have to have a colon (“D:\DVR”) in them and your implementation uses colon as a delimiter, so Windows users can’t use this feature.

Any chance of getting this bug fixed? I’m running low on space :wink:


#44

Here is the repro:

$url = "http://127.0.0.1:8089/dvr"
$payload = '{"ExtraPaths":"D:\DVR"}'

Invoke-RestMethod -Method Patch -Body $payload -uri $url

Invoke-RestMethod -Method Get -uri $url

Output:
activity : @{0-job-1520402220-15=Recording ch7.1 for NCIS: New Orleans until 11:03PM.}
busy : True
clients : 0
disk : @{free=356599914496; total=1999753965568; used=1643154051072}
enabled : True
extra_paths : {D, \DVR}
keep : @{num=; only=}
padding : @{end=180; start=180}
path : C:\DVR
stats : @{groups=29; files=313; jobs=38; rules=19}
status : running


#45

Hey cool, I didn’t know about Invoke-RestMethod

I’ll change the separator to ; on windows since that seems to be the standard for PATH.


#46

Awesome, let me know when you have a build available and I will test it out.


#47

After thinking about this; Why not make this value a JSON array instead of using delimiters in a string?


#48

It’s a limitation of how the data is stored. Settings are stored in a simple string key/value format.

I’ve uploaded a test build which uses ; on windows. Use this to upgrade:

iwr -Method put http://127.0.0.1:8089/updater/check/2018.03.07.2242


#49

Didn't seem to work.

New version: 2018.03.07.2242

Patch request body was:
{"ExtraPaths":"D:\DVR"}

Get response body was:
{
"activity":{},
"busy":false,
"clients":3,
"disk":{"free":449997070336,"total":1999753965568,"used":1549756895232},
"enabled":true,
"extra_paths":["D","\DVR"],
"keep":{"num":"","only":""},
"padding":{"end":"180","start":"180"},
"path":"C:\DVR",
"stats":{"groups":29,"files":278,"jobs":33,"rules":19},
"status":"running"
}


#50

Oops, try again with 2018.03.08.0054


#51

Success! Thanks for getting a fix so quickly, that was awesome!


#52

I would like to request this feature to be added to the GUI to select multiple folders.


#53

I was able to get this set up today and it works great. I have a question about it though… Is this additional directory used solely for playback of recordings? Or, will it also be used to record new shows once the original path (drive) is full? Thanks!


#54

The extra directories are used for playback only.


#55

So recordings can be manually copied over to a second drive/array?

I’m thinking I’ll record to the 4 tb drive & copy over to the RAID array. OTA mpeg-2 really adds up quick.


#56

How do I implement this on Windows? Is it documented somewhere? Thanks.


#57

The powershell commands required are listed above.

$url = "http://127.0.0.1:8089/dvr"
$payload = '{"ExtraPaths":"D:\DVR"}'

Invoke-RestMethod -Method Patch -Body $payload -uri $url