streama
streama copied to clipboard
Fixing error adding tv shows to watchlist
TV shows currently have a error adding to watchlist, due to the fact that they don't have a video property and specific properties inside the video object are extracted during this addition.
I changed this so that it it simply assigns response["tvShow"] to the tvShow object and the response["video"] to the video objects. This way one of them can be null (as will always happen) and it will be added without errors to the list.
The second problem is that TV shows aren't even shown in the watchlist, because, again, their Entry don't have a video property and during list it was filtered by video!=null, which fails.
I changed it so that it checks for video!=null || tvShow!=null. This way it prevents completely null entries and it works for both shows and movies.
Is important to pull this fix. Thank you so much @darkarp
Is important to pull this fix. Thank you so much @darkarp
You're welcome :)