Fix crash in rating.

Forgot to rename 2 variables in rating update to support non-library items. This caused a crash when stopping a video.
Merge pull request #83 from nate1280/unknown_type_fix4

Fix crash in rating.