Imports?

this is new. didnt expect this so soon after asking about file structure in the other thread. hopefully you will allow us to make our own channels like comedy, movies etc, like pseudo tv.

image

3 Likes

Yeah..I see it also; wonder how it's going to be used?

Interesting. I hadn't noticed that until seeing this thread. What could this mean?

It's probably a beta feature they're slowly implementing allowing users to import their existing movie collections (at first, followed later probably by TV episodes).

The developers have stated their interest in implementing this, as well as soliciting information from users about how they have their archived recordings named.

3 Likes

That is what it would seem to me as well. I definitely hope so. If they can implement that as well as they do their DVR and Live TV offering I think it would eventually become pretty awesome.

1 Like

Can't get anything past you folks, huh?

I guess the cat is out of the bag now. The import feature currently supports only movies, and has been tested only on Mac/Linux. If you have a movie library you want to try importing, run the following command (replacing the IP and the folder path accordingly):

curl -XPUT http://127.0.0.1:8089/dvr/scanner/paths/movies?path=/Volumes/USB/Movies

The movie scanner is still being tweaked, but it should find most matches automatically. If there is a mismatch or no matches found, you can click the gear icon and select "Fix Incorrect Match".

If you find movies in your library that didn't match, or matched incorrectly when there is an obvious result that should have been picked, or if you find that no matching results are shown, please post the full filename/path of the movie so we can use it to improve the scanner.

4 Likes

when i run the command from my mac (pointing to the ip of the server on windows), it crashes the channels server.

what would the path in the command look like if its pointing to a NAS? the path is /nas/video/movies where they are stored.

thanks

What does the DVR Log show about the crash?

i only see panic runtime error when i start the server up again.

here is is twice

    panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xc0000005 code=0x0 addr=0x18 pc=0xcc5455]

goroutine 148 [running]:
github.com/fancybits/channels-server/dvr.(*Recorder).scanMovies.func1(0xc000038215, 0x2a, 0x0, 0x0, 0x1a4f940, 0xc0005e6930, 0xc000896050, 0xc00073f490)
	github.com/fancybits/[email protected]/dvr/scanner.go:60 +0x65
path/filepath.Walk(0xc000038215, 0x2a, 0xc000b25e38, 0x17ed3df, 0x19)
	path/filepath/path.go:402 +0x71
github.com/fancybits/channels-server/dvr.(*Recorder).scanMovies(0xc00073f340, 0xc000038215, 0x2a, 0xc8a489, 0xc00073f340)
	github.com/fancybits/[email protected]/dvr/scanner.go:59 +0x113
github.com/fancybits/channels-server/dvr.(*Recorder).doScan(0xc00073f340)
	github.com/fancybits/[email protected]/dvr/scanner.go:52 +0xb6
github.com/fancybits/channels-server/dvr.(*Recorder).RunScanner(0xc00073f340)
	github.com/fancybits/[email protected]/dvr/scanner.go:41 +0xb7
created by github.com/fancybits/channels-server/dvr.(*Recorder).Run
	github.com/fancybits/[email protected]/dvr/recorder.go:163 +0xf4
2019/11/01 18:27:16 [SYS] Starting Channels DVR v2019.10.31.2332 (windows-x86_64 pid:916) in C:\ProgramData\ChannelsDVR\data
2019/11/01 18:27:18 [HDR] Found 1 devices
2019/11/01 18:27:19 [SYS] Started HTTP Server
2019/11/01 18:27:19 [DVR] Recording engine started in D:\Channels DVR
2019/11/01 18:27:19 [CACHE] Deleting cache for already deleted file 1289
2019/11/01 18:27:19 [CACHE] Deleting cache for already deleted file 1291
2019/11/01 18:27:19 [CACHE] Deleting cache for already deleted file 1300
2019/11/01 18:27:19 [CACHE] Deleting cache for already deleted file 1305
2019/11/01 18:27:19 [CACHE] Deleting cache for already deleted file 1306
2019/11/01 18:27:19 [CACHE] Deleting cache for already deleted file 1309
2019/11/01 18:27:19 [CACHE] Deleting cache for already deleted file 1330
2019/11/01 18:27:19 [CACHE] Deleting cache for already deleted file 1331
2019/11/01 18:27:19 [CACHE] Deleting cache for already deleted file 1332
2019/11/01 18:27:19 [CACHE] Deleting cache for already deleted file 1364
2019/11/01 18:27:19 [CACHE] Deleting cache for already deleted file 1480
2019/11/01 18:27:19 [CACHE] Deleting cache for already deleted file 1689
2019/11/01 18:27:19 [CACHE] Deleting cache for already deleted file 1700
2019/11/01 18:27:19 [CACHE] Deleting cache for already deleted file 1701
2019/11/01 18:27:19 [CACHE] Deleting cache for already deleted file 1796
2019/11/01 18:27:19 [CACHE] Deleting cache for already deleted file 465
2019/11/01 18:27:19 [SYS] Bonjour service running for dvr-tvpc.local. [192.168.2.5]
2019/11/01 18:27:19 [DVR] Waiting 2m40.9263389s until next job 1572647400-1 NBC Nightly News With Lester Holt
2019/11/01 18:27:19 [SYS] Created database snapshot: backup-20191101.182719
2019/11/01 18:27:19 [SYS] Removing old backup backup-20191017.201749
2019/11/01 18:27:21 [HWE] Killing ffmpeg after 5s timeout..
2019/11/01 18:27:29 [IDX] Pruned 0 expired airings from USA-OTA07512 in 998.4µs.
2019/11/01 18:27:29 [IDX] Pruned 1 expired airings from X-TVE in 9.2201ms.
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xc0000005 code=0x0 addr=0x18 pc=0xcc5455]

goroutine 138 [running]:
github.com/fancybits/channels-server/dvr.(*Recorder).scanMovies.func1(0xc0007f6f55, 0x2a, 0x0, 0x0, 0x1a4f940, 0xc000309440, 0xc0008ee0a0, 0xc000bf0150)
	github.com/fancybits/[email protected]/dvr/scanner.go:60 +0x65
path/filepath.Walk(0xc0007f6f55, 0x2a, 0xc000b65e38, 0x17ed3df, 0x19)
	path/filepath/path.go:402 +0x71
github.com/fancybits/channels-server/dvr.(*Recorder).scanMovies(0xc000bf0000, 0xc0007f6f55, 0x2a, 0xc8a489, 0xc000bf0000)
	github.com/fancybits/[email protected]/dvr/scanner.go:59 +0x113
github.com/fancybits/channels-server/dvr.(*Recorder).doScan(0xc000bf0000)
	github.com/fancybits/[email protected]/dvr/scanner.go:52 +0xb6
github.com/fancybits/channels-server/dvr.(*Recorder).RunScanner(0xc000bf0000)
	github.com/fancybits/[email protected]/dvr/scanner.go:41 +0xb7
created by github.com/fancybits/channels-server/dvr.(*Recorder).Run
	github.com/fancybits/[email protected]/dvr/recorder.go:163 +0xf4
2019/11/01 18:28:07 [SYS] Starting Channels DVR v2019.10.31.2332 (windows-x86_64 pid:4984) in C:\ProgramData\ChannelsDVR\data
2019/11/01 18:28:08 [HDR] Found 1 devices
2019/11/01 18:28:09 [SYS] Started HTTP Server
2019/11/01 18:28:09 [DVR] Recording engine started in D:\Channels DVR
2019/11/01 18:28:09 [CACHE] Deleting cache for already deleted file 1289
2019/11/01 18:28:09 [CACHE] Deleting cache for already deleted file 1291
2019/11/01 18:28:09 [CACHE] Deleting cache for already deleted file 1300
2019/11/01 18:28:09 [CACHE] Deleting cache for already deleted file 1305
2019/11/01 18:28:09 [CACHE] Deleting cache for already deleted file 1306
2019/11/01 18:28:09 [CACHE] Deleting cache for already deleted file 1309
2019/11/01 18:28:09 [CACHE] Deleting cache for already deleted file 1330
2019/11/01 18:28:09 [CACHE] Deleting cache for already deleted file 1331
2019/11/01 18:28:09 [CACHE] Deleting cache for already deleted file 1332
2019/11/01 18:28:09 [CACHE] Deleting cache for already deleted file 1364
2019/11/01 18:28:09 [CACHE] Deleting cache for already deleted file 1480
2019/11/01 18:28:09 [CACHE] Deleting cache for already deleted file 1689
2019/11/01 18:28:09 [CACHE] Deleting cache for already deleted file 1700
2019/11/01 18:28:09 [CACHE] Deleting cache for already deleted file 1701
2019/11/01 18:28:09 [CACHE] Deleting cache for already deleted file 1796
2019/11/01 18:28:09 [CACHE] Deleting cache for already deleted file 465
2019/11/01 18:28:09 [DVR] Waiting 1m50.3945938s until next job 1572647400-1 NBC Nightly News With Lester Holt
2019/11/01 18:28:09 [SYS] Bonjour service running for dvr-tvpc.local. [192.168.2.5]
2019/11/01 18:28:09 [SYS] Created database snapshot: backup-20191101.182809
2019/11/01 18:28:09 [SYS] Removing old backup backup-20191018.154658
2019/11/01 18:28:12 [HWE] Killing ffmpeg after 5s timeout..

Uploading v2019.11.01.2234 with fix.

/nas/video/movies doesn't look like a Windows path name. If the NAS is mapped to a drive it would be z:\video\movies. If it's not mapped, then perhaps \\nas\video\movies would work

1 Like

Thanks. I’ll try after this recording. Will the Windows unc path work on the Mac?

The path is being sent to the DVR server, and the server will try to access that path to scan for movies. It doesn't matter where you run the command.

1 Like

I am on Windows, so I will test this out on that platform.

My first attempt also crashed the server. I will wait for your updated version and try it out again to see what happens. I don't have any recordings going on tonight so I can test this as much as needed.

To remove the bad path, change -XPUT to -XDELETE

curl -XDELETE http://127.0.0.1:8089/dvr/scanner/paths/movies?path=/Volumes/USB/Movies

1 Like

v2019.11.01.2234 is available now.

1 Like

updating now, but the server has been crashing on its own now after i tried the curl command.

Mine was crashing too after that. However, with the update it seems to have stopped.

here is my command:

curl -XPUT http://192.168.2.5:8089/dvr/scanner/paths/movies?path=\drobo\video\movies

Here are the errors:

2019/11/01 19:06:21 [ERR] Scanner error walking /Drobo._afpovertcp._tcp.local/Video/Movies: CreateFile /Drobo._afpovertcp._tcp.local/Video/Movies: The system cannot find the path specified.
2019/11/01 19:06:21 [ERR] Scanner error walking /drobo/video/movies: CreateFile /drobo/video/movies: The system cannot find the path specified.
2019/11/01 19:06:21 [ERR] Scanner error walking \drobovideomovies: CreateFile \drobovideomovies: The system cannot find the file specified.

thanks

Here is my command: curl -XPUT http://127.0.0.1:8089/dvr/scanner/paths/movies?path=/Movies

I am on Windows 10 and my Movies folders is on my Drivepool drive D. I think this is the correct path?

I am seeing a similar error as above:

2019/11/01 19:01:27 [ERR] Scanner error walking /Movies: CreateFile /Movies: The system cannot find the file specified.
2019/11/01 19:01:40 [ERR] Failed to fetch station 108919: Get http://data.tmsapi.com/v1.1/stations/108919?api_key=x26sg2rpk8qyuyn9ddzwmsuu&lineupId=: dial tcp: lookup data.tmsapi.com: no such host
2019/11/01 19:01:40 [ERR] Failed to fetch station 104846: Get http://data.tmsapi.com/v1.1/stations/104846?api_key=x26sg2rpk8qyuyn9ddzwmsuu&lineupId=: dial tcp: lookup data.tmsapi.com: no such host
2019/11/01 19:04:49 [ERR] Scanner error walking /D/Movies: CreateFile /D/Movies: The system cannot find the path specified.
2019/11/01 19:04:49 [ERR] Scanner error walking /Movies: CreateFile /Movies: The system cannot find the file specified.
2019/11/01 19:09:49 [ERR] Scanner error walking /D/Movies: CreateFile /D/Movies: The system cannot find the path specified.
2019/11/01 19:09:49 [ERR] Scanner error walking /Movies: CreateFile /Movies: The system cannot find the file specified.
2019/11/01 19:14:02 [ERR] Scanner error walking /D/Movies: CreateFile /D/Movies: The system cannot find the path specified.
2019/11/01 19:14:02 [ERR] Scanner error walking /Movies: CreateFile /Movies: The system cannot find the file specified.

curl -XPUT http://edsynology:8089/dvr/scanner/paths/movies?path=/Volume1/Public/Imports/Movies

GIN] 2019/11/01 - 16:15:21 | 200 | 153.422977ms | 192.168.1.186 | PUT /dvr/scanner/paths/movies?path=/Volume1/Public/Imports/Movies
2019/11/01 16:15:21 [ERR] Scanner error walking /Volume1//Public/Playon/Imports/Movies: lstat /Volume1//Public/Playon/Imports/Movies: no such file or directory
2019/11/01 16:15:21 [ERR] Scanner error walking /Volume1/Public/Imports/Movies: lstat /Volume1/Public/Imports/Movies: no such file or directory