﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc	mlocked
10108	Mythbackend Media scanner renames all files on every scan	ryan@…	robertm	"It appears, whenever mythbackend receives a SCAN_VIDEOS command, during scanning, it goes through and renames all files in the database to the full path, not relative to the storage group:
{{{
2011-10-19 13:17:42.321629 E  Hash 614a1f79735dcca3 already exists in the database, updating record 1478 with new filename /var/lib/mythtv/videos/TV Shows/MythBusters/Season 2/MythBusters - S02E03 - Scuba Diver, Car Capers.avi
2011-10-19 13:17:42.363171 E  Hash 5aab6febdf596b9 already exists in the database, updating record 1479 with new filename /var/lib/mythtv/videos/TV Shows/MythBusters/Season 2/MythBusters - S02E04 - Ancient Death Ray.avi
2011-10-19 13:17:42.419649 E  Hash af665f8b715e68d already exists in the database, updating record 1480 with new filename /var/lib/mythtv/videos/TV Shows/MythBusters/Season 2/MythBusters - S02E05 - Elevator of Death, Levitation Machine.avi
2011-10-19 13:17:42.452162 E  Hash 65fc6985de96f857 already exists in the database, updating record 1481 with new filename /var/lib/mythtv/videos/TV Shows/MythBusters/Season 2/MythBusters - S02E06 - Beat the Radar Detector.avi
}}}

After it has been through and completed. Running SCAN_VIDEOS again causes it to rename again, this time relative to Storage Groups


{{{
2011-10-19 13:22:29.321629 E  Hash 614a1f79735dcca3 already exists in the database, updating record 1478 with new filename TV Shows/MythBusters/Season 2/MythBusters - S02E03 - Scuba Diver, Car Capers.avi
2011-10-19 13:22:29.363183 E  Hash 5aab6febdf596b9 already exists in the database, updating record 1479 with new filename TV Shows/MythBusters/Season 2/MythBusters - S02E04 - Ancient Death Ray.avi
2011-10-19 13:22:29.419678 E  Hash af665f8b715e68d already exists in the database, updating record 1480 with new filename TV Shows/MythBusters/Season 2/MythBusters - S02E05 - Elevator of Death, Levitation Machine.avi
2011-10-19 13:22:29.452252 E  Hash 65fc6985de96f857 already exists in the database, updating record 1481 with new filename TV Shows/MythBusters/Season 2/MythBusters - S02E06 - Beat the Radar Detector.avi
}}}
"	Bug Report - General	closed	minor	0.25	Plugin - MythVideo	Master Head	medium	Invalid	scan video		0
