Guest User

Untitled

a guest
Jan 18th, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. [System.Collections.ArrayList]$StringXML = & $MediaInfoBinary '--Output=XML' $Path
  2. try{[xml]$MediaInfo = $StringXML}
  3. catch [Exception]
  4. {
  5. $ExceptionSplit = $_.Exception.Message.Split(".")
  6. $LineSplit = (($ExceptionSplit[$ExceptionSplit.Length - 2]).Trim()).Split(",")
  7. $Line = (($LineSplit[0].Trim()).Split(" "))[1]
  8. $Line = $Line - 1
  9. $StringXML.Remove($StringXML[$Line])
  10. [xml]$MediaInfo = $StringXML
  11. }
Add Comment
Please, Sign In to add comment