2020-01-24, 06:39
I'd like to understand exactly how the substitutions in passwords.xml are applied, because I am moving my media library to a new server, and I can't figure out how my old/current one works at all . Strangely, passwords.xml is hardly even mentioned in the wiki, and it's suspiciously absent from the userdata page.
Do the substitutions have to match exactly? Like a straight string replacement? Or is there some fuzzy/advanced logic? If multiple passwords.xml paths match, how does it choose which one to use?
The reason I'm confused is all my media has their paths set like "smb://ipaddr/path/to/media.mkv" in the db. I have a record in passwords.xml that prefix-matches it exactly, (<from>smb://ipaddr/path</from>) but the <to> value actually has an invalid path in it...so if it was using that one it wouldn't be able to find any of my media. There is another record in the form of <from>smb://hostname</from> (where hostname resolves to ipaddr) which has a valid <to> path, so I assume it must be using that record...but I don't know how it figured out to use that one instead. Anyone have any insights? Thanks!
Do the substitutions have to match exactly? Like a straight string replacement? Or is there some fuzzy/advanced logic? If multiple passwords.xml paths match, how does it choose which one to use?
The reason I'm confused is all my media has their paths set like "smb://ipaddr/path/to/media.mkv" in the db. I have a record in passwords.xml that prefix-matches it exactly, (<from>smb://ipaddr/path</from>) but the <to> value actually has an invalid path in it...so if it was using that one it wouldn't be able to find any of my media. There is another record in the form of <from>smb://hostname</from> (where hostname resolves to ipaddr) which has a valid <to> path, so I assume it must be using that record...but I don't know how it figured out to use that one instead. Anyone have any insights? Thanks!