I've been emailed by someone using my Move_TV_Films program with a FlexRaid/T-Raid array. He is finding that it throws an error when attempting to get the metadata from the WTV file.
My code (in vb.net) does this:
Code: Select all
For Each theFile In Directory.GetFiles(directoryFrom)
theExt = LCase(Path.GetExtension(theFile))
If theExt = ".wtv" Or theExt = ".dvrms" Or theExt = ".dvr-ms" Then
' Get the meta-data for this film
Dim metaData As New Toub.MediaCenter.Dvrms.Metadata.DvrmsMetadataEditor(theFile)
isMovie = CBool(Get_Meta(metaData, "WM/MediaIsMovie"))
If isMovie = False Then
Code: Select all
Function Get_Meta(ed As Toub.MediaCenter.Dvrms.Metadata.DvrmsMetadataEditor, sKey As String) As String
Get_Meta = Toub.MediaCenter.Dvrms.Metadata.DvrmsMetadataEditor.GetMetadataItemAsString(ed.GetAttributes(), sKey)
End Function
Code: Select all
Unhandled Exception: System.Runtime.InteropServices.COMException: Not enough storage is available to process this command. (Exception from HRESULT: 0x80070008)
at Toub.MediaCenter.Dvrms.Metadata.DvrmsMetadataEditor.IFileSourceFilter.Load(String pszFileName, AmMediaType pmt)
at Toub.MediaCenter.Dvrms.Metadata.DvrmsMetadataEditor..ctor(String filepath)
at Move_TV_Films.Main.Scan_Folders()
at Move_TV_Films.Main.Main()
What are people's thoughts?