Skip to content

Commit

Permalink
Merge pull request #677 from anxdpanic/nexus
Browse files Browse the repository at this point in the history
v3.0.1
  • Loading branch information
anxdpanic authored Apr 2, 2023
2 parents 57ebef6 + eada114 commit 9fb46d2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 21 deletions.
6 changes: 2 additions & 4 deletions 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.twitch" version="3.0.0" name="Twitch" provider-name="anxdpanic, A Talented Community">
<addon id="plugin.video.twitch" version="3.0.1" name="Twitch" provider-name="anxdpanic, A Talented Community">
<requires>
<import addon="xbmc.python" version="3.0.1"/>
<import addon="script.module.requests" version="2.9.1"/>
Expand All @@ -15,9 +15,7 @@
<fanart>resources/media/fanart.jpg</fanart>
</assets>
<news>
[rem] removed support for versions of Kodi pre-Nexus v20
[rem] removed support for python 2
[rem] removed dependency on six
[rem] toggle follow
[lang] updated translations from Weblate
</news>
<platform>all</platform>
Expand Down
17 changes: 0 additions & 17 deletions resources/lib/twitch_addon/addon/converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,6 @@ def game_to_listitem(self, game):
image = self.get_boxart(game.get(Keys.BOX_ART_URL), Images.BOXART)
context_menu = list()
context_menu.extend(menu_items.refresh())
if self.has_token:
context_menu.extend(menu_items.edit_follow_game(game[Keys.ID], name, follow=True))
context_menu.extend(menu_items.edit_follow_game(game[Keys.ID], name, follow=False))
plot = '{name}'.format(name=name)
return {'label': name,
'path': kodi.get_plugin_url({'mode': MODES.GAMELISTS, 'game_name': name, 'game_id': game[Keys.ID]}),
Expand All @@ -75,8 +72,6 @@ def followed_game_to_listitem(self, game):
image = self.get_boxart(game['boxArtURL'], Images.BOXART)
context_menu = list()
context_menu.extend(menu_items.refresh())
if self.has_token:
context_menu.extend(menu_items.edit_follow_game(game['id'], name, follow=False))
plot = '{name}\r\n{viewers}:{viewer_count}' \
.format(name=name, viewers=i18n('viewers'), viewer_count=viewer_count)
return {'label': name,
Expand All @@ -91,8 +86,6 @@ def channel_to_listitem(self, channel):
context_menu = list()
context_menu.extend(menu_items.refresh())
name = channel.get(Keys.DISPLAY_NAME) if channel.get(Keys.DISPLAY_NAME) else channel.get(Keys.LOGIN)
if self.has_token:
context_menu.extend(menu_items.edit_follow(channel[Keys.ID], name))
return {'label': name,
'path': kodi.get_plugin_url({'mode': MODES.CHANNELVIDEOS, 'channel_id': channel[Keys.ID],
'channel_name': channel[Keys.LOGIN], 'display_name': name}),
Expand All @@ -110,8 +103,6 @@ def clip_to_listitem(self, clip):
context_menu = list()
context_menu.extend(menu_items.refresh())
display_name = to_string(clip.get(Keys.BROADCASTER_NAME))
if self.has_token:
context_menu.extend(menu_items.edit_follow(clip[Keys.BROADCASTER_ID], display_name))
context_menu.extend(menu_items.channel_videos(clip[Keys.BROADCASTER_ID], display_name, display_name))
context_menu.extend(menu_items.set_default_quality('clip', clip[Keys.BROADCASTER_ID],
display_name, clip_id=clip[Keys.ID]))
Expand Down Expand Up @@ -139,8 +130,6 @@ def video_list_to_listitem(self, video):
context_menu.extend(menu_items.refresh())
display_name = to_string(video.get(Keys.USER_NAME) if video.get(Keys.USER_NAME) else video.get(Keys.USER_LOGIN))
channel_name = to_string(video[Keys.USER_LOGIN])
if self.has_token:
context_menu.extend(menu_items.edit_follow(video[Keys.USER_ID], display_name))
context_menu.extend(menu_items.channel_videos(video[Keys.USER_ID], channel_name, display_name))
context_menu.extend(menu_items.set_default_quality('video', video[Keys.USER_ID],
video[Keys.USER_LOGIN], video[Keys.USER_ID]))
Expand Down Expand Up @@ -172,8 +161,6 @@ def search_stream_to_listitem(self, search):
context_menu.extend(menu_items.refresh())
channel_name = to_string(search[Keys.DISPLAY_NAME])
game_name = to_string(search[Keys.GAME_NAME])
if self.has_token:
context_menu.extend(menu_items.edit_follow(search[Keys.ID], display_name))
context_menu.extend(menu_items.channel_videos(search[Keys.ID], channel_name, display_name))
if search[Keys.GAME_NAME]:
context_menu.extend(menu_items.go_to_game(game_name, search[Keys.GAME_ID]))
Expand Down Expand Up @@ -203,8 +190,6 @@ def search_channel_to_listitem(self, search):
context_menu = list()
context_menu.extend(menu_items.refresh())
channel_name = to_string(search[Keys.DISPLAY_NAME])
if self.has_token:
context_menu.extend(menu_items.edit_follow(search[Keys.ID], display_name))
context_menu.extend(menu_items.channel_videos(search[Keys.ID], channel_name, display_name))

return {'label': title,
Expand Down Expand Up @@ -234,8 +219,6 @@ def stream_to_listitem(self, stream):
display_name = to_string(stream.get(Keys.USER_NAME) if stream.get(Keys.USER_NAME) else stream.get(Keys.USER_LOGIN))
channel_name = to_string(stream[Keys.USER_NAME])
game_name = to_string(stream[Keys.GAME_NAME])
if self.has_token:
context_menu.extend(menu_items.edit_follow(stream[Keys.USER_ID], display_name))
context_menu.extend(menu_items.channel_videos(stream[Keys.USER_ID], channel_name, display_name))
if stream[Keys.GAME_NAME]:
context_menu.extend(menu_items.go_to_game(game_name, stream[Keys.GAME_ID]))
Expand Down

0 comments on commit 9fb46d2

Please sign in to comment.