rectifyer/script.trakt — pull request #124 by nate1280 (2013-05-25 20:35:15+00:00)
Title: Some fixes and cleanup

Some fixes & cleanup, needs to be tested before merge.

Fixes a runtime error that could occur on a playback start.

If rate after watch is enabled, it would get summary info irregardless of if it couldn't actually get anything (due to missing imdb_id or tvdb_id in library). It now checks for this and outputs to log. And will try to get summary info after a successful watch (like how non-library items are done), and there is also an option to update your library's info with this ID.

Removed a check from the main update function in the scrobbler, use to check if the video was paused (internal flag toggled), I've removed this to prevent issues where this paused variable could become incorrect and cause the time updates to never happen.

## Changelog:
- Fix for RuntimeError
- Cleanup in tagging.py
- Update function that updates the current media's playing time, remove check for paused, this will prevent updates not happening if resume/pause gets messed up.
If library item is missing imdb or tvdb id, and rating is enabled, don't get summary, get it after a watching call instead. This will stop API calls being made that can never return data.
- Added ability to update library item's imdb/tvdb id from watching calls if they are missing.
- Added 2 new settings to control the ability to update a library item's imdb and tvdb id.
- Fix for watchlist tag check