Page 1 of 1

Display of File Name extensions

PostPosted: Fri Oct 14, 2011 12:53 pm
by jhb50
I was pretty sure I had found a bug when the filename extensions that display for all my files in my folder menus eg: "testfile.mkv" and "testfile.flv" did not display in the menus when I added "last added" and "last viewed" folders and simply gave me eg: "testfile" and "testfile". Such inconsistency and the inability to distinguish between files made no sense to me.

I opened Ticket #434, reporting this as a bug but was advised that this is a feature and that I should ask in the forum for an explanation of this behaviour.

Would someone please explain the logic of this?

Re: Display of File Name extensions

PostPosted: Fri Oct 14, 2011 1:06 pm
by zip
The Folders view shows files as they appear on the filesystem, e.g.:

  Code:
Avatar (2009) DVD Rip.avi


In all other views it uses title from retrieved (online) metadata (if found), e.g.:

  Code:
Avatar

Re: Display of File Name extensions

PostPosted: Fri Oct 14, 2011 1:17 pm
by jhb50
OK, but I assume that if I turn metadate off or there is no "online" metadata for "testfile.mkv" that the file system will be the only source for this info, so why drop the .ext which is a valid part of the name?

Re: Display of File Name extensions

PostPosted: Fri Oct 14, 2011 1:44 pm
by zip
I tries to fake metadata title by removing the extension. In most cases users don't care about extension and to have the same file name with different extension in Last added is very corner case. It might happen when testing, but not really in real world usage.

Re: Display of File Name extensions

PostPosted: Fri Oct 14, 2011 3:18 pm
by jhb50
OK, I'd only suggest that leaving the extension instead of trying to fake has no adverse effect, but removing the extension does have an adverse effect, so I would not have chosen to do so. May I suggest that if the filename contains a series pattern that makes faking it appropriate then drop the extension, but if it is a plain filename that the extension be left alone.

Regardless of your decision, I would suggest that the Metadata Extraction documentation, http://www.serviio.org/index.php?option=com_content&view=article&id=12 be expanded to explain the conditions under which extension is removed/retained.

Thanks again for all your support.