Skip to content

Commit

Permalink
Fix remove from watchlist;Fix lastseen display count; Don't cache wat…
Browse files Browse the repository at this point in the history
…chlist
  • Loading branch information
knaerzche committed Aug 13, 2019
1 parent a76573f commit 4789324
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion addon.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="plugin.video.joyn" name="Joyn" version="0.0.4.2" provider-name="knaerzche">
<addon id="plugin.video.joyn" name="Joyn" version="0.0.4.4" provider-name="knaerzche">
<requires>
<import addon="xbmc.python" version="2.1.0"/>
<import addon="inputstream.adaptive" version="2.2.21"/>
Expand Down
10 changes: 5 additions & 5 deletions resources/lib/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,15 +118,15 @@ def drop_favorites(favorite_item, siltent=False, fav_type=''):
for favorite in favorites:
if 'tv_show_id' in favorite_item.keys() and 'tv_show_id' in favorite.keys():
if favorite_item['tv_show_id'] == favorite['tv_show_id'] and favorite_item['season_id'] == favorite['season_id']:
favorites.remove(favorite_item)
favorites.remove(favorite)
found = True
elif 'channel_id' in favorite_item.keys() and 'channel_id' in favorite.keys():
if favorite_item['channel_id'] == favorite['channel_id']:
favorites.remove(favorite_item)
favorites.remove(favorite)
found = True
elif 'category_name' in favorite_item.keys() and 'category_name' in favorite.keys():
if favorite_item['category_name'] == favorite['category_name']:
favorites.remove(favorite_item)
favorites.remove(favorite)
found = True

favorites = xbmc_helper.set_json_data('favorites', favorites)
Expand Down Expand Up @@ -164,7 +164,7 @@ def show_lastseen(max_lastseen_count):
if max_lastseen_count == 0:
lastseen = []
else:
lastseen = lastseen[:(max_lastseen_count-1)]
lastseen = lastseen[:max_lastseen_count]

if len(lastseen) > 0:
tvshow_ids = []
Expand Down Expand Up @@ -289,7 +289,7 @@ def show_favorites():
xbmc_helper.translation('MSG_FAVS_UNAVAILABLE'),
default_icon)

endOfDirectory(pluginhandle)
endOfDirectory(handle=pluginhandle,cacheToDisc=False)


def get_uepg_params():
Expand Down

0 comments on commit 4789324

Please sign in to comment.