The top piece of code CANNOT be used if item.playoptions is invalid. The right side of an = statement cannot be a variable with the value of invalid. You need to check for this first, then if it isnt invalid allow the rest of the code to run. This corrects the problem and liveTV no longer crashes upon playing.
The problem is item.PlayOptions may be invalid
m.PlayOptions = Item.PlayOptions
The top piece of code CANNOT be used if item.playoptions is invalid. The right side of an = statement cannot be a variable with the value of invalid. You need to check for this first, then if it isnt invalid allow the rest of the code to run. This corrects the problem and liveTV no longer crashes upon playing.