BigNoid/service.library.data.provider — pull request #22 by phate89 (2014-10-20 22:49:19+00:00)
Title: Fix a regression from 24f73335fae732e28bf0d8b6389e9fe65d486c6c and separate behavior of tv shows and episodes

Hi. I saw that with 24f73335fae732e28bf0d8b6389e9fe65d486c6c and (i think) trying to add support for episodes playlists you added some problem:
For example in episodes you have a tvshowid, but in tv shows it's always "-1" at least in gotham so you can't always use it to count tv shows.
Episodes is the count of episodes in tv shows but if you have an episode is the episodes is the number of episode. For example in the episode "Lost 1x04" it's 4.
watchedepisodes exists only in tvshows. In episodes you have to check for playcount.
I also moved movies and musicinfo so it sets and count them only if it's not a tv show or episode so everytime you switch between menus you will get cleared data without strange numbers