﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc	mlocked
36	mythvideo gallery filebrowsemode fix	Robert Tsai <rtsai1111>	Isaac Richards	"When MythVideo gallery is configured for ""filebrowser"" mode, the zero-based array index of the file does not correspond to the 1-based (possibly sparsely-populated) ""intid"" values of the videos in the database.

However, in VideoSelected, the ""curitem"", rather than being populated with the correct database data corresponding to the selected file, is instead populated with the database data whose ""intid"" value is equal to the array index.

This patch fixes that problem. When configured for ""filebrowse"" mode, this bug will probably manifest itself as an ""off-by-one"" bug (e.g., if you select some video from the video gallery, the next detail screen will present information for the immediately-preceding video).

It also looks like this VideoSelected constructor will fail if a browsed file is not in the database. But I don't address that here."	patch	closed	minor	0.19	mythvideo	head	medium	fixed			0
