runtime error: index out of range [0] with length 0
goroutine 180 [running]:
github.com/fancybits/channels-server/dvr.(*Recorder).scanVideo(0xc000bf6000, {0xc001408270, 0x11}, {0xc000bb3f92, 0x60}, 0x1)
github.com/fancybits/channels-server/dvr/scanner.go:942 +0x1937
github.com/fancybits/channels-server/dvr.(*Recorder).scanEpisode(...)
github.com/fancybits/channels-server/dvr/scanner.go:800
github.com/fancybits/channels-server/dvr.(*Recorder).scanTV.func1({0xc002e79ec0, 0x60}, {0x39da7c8, 0xc00085a4d0}, {0x0, 0x0})
github.com/fancybits/channels-server/dvr/scanner.go:525 +0x44f io/fs.walkDir({0x39bf860, 0xc001cea110}, {0xc002e79ec0, 0x60}, {0x39da7c8, 0xc00085a4d0}, 0xc002f47d30)
io/fs/walk.go:73 +0x6c
io/fs.walkDir({0x39bf860, 0xc001cea110}, {0xc0034b0f80, 0x1d}, {0x39da7c8, 0xc000770540}, 0xc002f47d30)
io/fs/walk.go:95 +0x2c5
io/fs.walkDir({0x39bf860, 0xc001cea110}, {0xc000e726d8, 0x14}, {0x39da7c8, 0xc0007b5340}, 0xc002f47d30)
io/fs/walk.go:95 +0x2c5
io/fs.walkDir({0x39bf860, 0xc001cea110}, {0x39adf30, 0x1}, {0x39db0f0, 0xc001cea140}, 0xc002f47d30)
io/fs/walk.go:95 +0x2c5
io/fs.WalkDir({0x39bf860, 0xc001cea110}, {0x39adf30, 0x1}, 0xc0023edd30)
io/fs/walk.go:122 +0xd2
github.com/fancybits/channels-server/dvr.(*Recorder).scanTV(0xc000bf6000, 0xc00101e300)
github.com/fancybits/channels-server/dvr/scanner.go:469 +0xfd
github.com/fancybits/channels-server/dvr.(*Recorder).doScan(0xc000bf6000)
github.com/fancybits/channels-server/dvr/scanner.go:252 +0x6b5
github.com/fancybits/channels-server/dvr.(*Recorder).RunScanner(0xc000bf6000)
github.com/fancybits/channels-server/dvr/scanner.go:106 +0x1f3
created by github.com/fancybits/channels-server/dvr.(*Recorder).Run in goroutine 1
github.com/fancybits/channels-server/dvr/recorder.go:244 +0x196
2024/08/17 19:02:29.543354 [SYS] Starting Channels DVR v2024.08.13.1600 (windows-x86_64 pid:2900) in C:\ProgramData\ChannelsDVR\data
I was adding movies and TV shows. Channels has crashed twice already.
Once I removed the TV shows and allow the movies to finish scanning it hasn't crashed since but I haven't tried readding the shows.