Page 1 of 1
					
				Re: Suppress File Extensions?
				Posted: Fri Apr 22, 2011 6:29 am
				by Eugene
				ltldevl wrote:Is there a way to suppress File Extensions for DLNA browsing?
Settings - Processing - Add 
Name: Suppress file extension
Script: 
Code: Select all
var
  sFileName: string;
begin
  sFileName := ExtractFileName(CurrentMediaItem.Properties[mpiFilePath]);
  if SameText(CurrentMediaItem.Properties[mpiTitle], sFileName) then
    CurrentMediaItem.Properties[mpiTitle] := ChangeFileExt(sFileName, '')  
end.
Ok - Ok
Settings - Additional  - Events - "Ater reading of properties of a media-resource" - Suppress file extension - Ok
List [Movies] - select a file - right click - "Load file properties"
 
			 
			
					
				Re: Suppress File Extensions?
				Posted: Sun Apr 24, 2011 5:54 am
				by Eugene
				ltldevl wrote:Thank you but it didn't work 

 
It's tested solution, no problems
 
			 
			
					
				Re: Suppress File Extensions?
				Posted: Mon Apr 25, 2011 10:00 am
				by Eugene
				Settings - Scanning - "Always use a file name as the name of the media resource"
			 
			
					
				Re: Suppress File Extensions?
				Posted: Wed Apr 27, 2011 8:23 am
				by Eugene
				ltldevl wrote:I periodically get:
Process Event: Supress file extension
Message: Access violation at address 00A696DE in module 'wms.exe'. Read of address 00000080
After what actions ?
 
			 
			
					
				Re: Suppress File Extensions?
				Posted: Thu May 05, 2011 9:55 am
				by Eugene
				Unfortunately, I can not reproduce the problem