MediaBrowser / Emby.Roku

Emby for Roku
http://emby.media
MIT License
78 stars 54 forks source link

Fix Crashing of LiveTV #147

Closed speechles closed 8 years ago

speechles commented 8 years ago

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.