@@ -55,9 +55,6 @@ def game_to_listitem(self, game):
5555 image = self .get_boxart (game .get (Keys .BOX_ART_URL ), Images .BOXART )
5656 context_menu = list ()
5757 context_menu .extend (menu_items .refresh ())
58- if self .has_token :
59- context_menu .extend (menu_items .edit_follow_game (game [Keys .ID ], name , follow = True ))
60- context_menu .extend (menu_items .edit_follow_game (game [Keys .ID ], name , follow = False ))
6158 plot = '{name}' .format (name = name )
6259 return {'label' : name ,
6360 'path' : kodi .get_plugin_url ({'mode' : MODES .GAMELISTS , 'game_name' : name , 'game_id' : game [Keys .ID ]}),
@@ -75,8 +72,6 @@ def followed_game_to_listitem(self, game):
7572 image = self .get_boxart (game ['boxArtURL' ], Images .BOXART )
7673 context_menu = list ()
7774 context_menu .extend (menu_items .refresh ())
78- if self .has_token :
79- context_menu .extend (menu_items .edit_follow_game (game ['id' ], name , follow = False ))
8075 plot = '{name}\r \n {viewers}:{viewer_count}' \
8176 .format (name = name , viewers = i18n ('viewers' ), viewer_count = viewer_count )
8277 return {'label' : name ,
@@ -91,8 +86,6 @@ def channel_to_listitem(self, channel):
9186 context_menu = list ()
9287 context_menu .extend (menu_items .refresh ())
9388 name = channel .get (Keys .DISPLAY_NAME ) if channel .get (Keys .DISPLAY_NAME ) else channel .get (Keys .LOGIN )
94- if self .has_token :
95- context_menu .extend (menu_items .edit_follow (channel [Keys .ID ], name ))
9689 return {'label' : name ,
9790 'path' : kodi .get_plugin_url ({'mode' : MODES .CHANNELVIDEOS , 'channel_id' : channel [Keys .ID ],
9891 'channel_name' : channel [Keys .LOGIN ], 'display_name' : name }),
@@ -110,8 +103,6 @@ def clip_to_listitem(self, clip):
110103 context_menu = list ()
111104 context_menu .extend (menu_items .refresh ())
112105 display_name = to_string (clip .get (Keys .BROADCASTER_NAME ))
113- if self .has_token :
114- context_menu .extend (menu_items .edit_follow (clip [Keys .BROADCASTER_ID ], display_name ))
115106 context_menu .extend (menu_items .channel_videos (clip [Keys .BROADCASTER_ID ], display_name , display_name ))
116107 context_menu .extend (menu_items .set_default_quality ('clip' , clip [Keys .BROADCASTER_ID ],
117108 display_name , clip_id = clip [Keys .ID ]))
@@ -139,8 +130,6 @@ def video_list_to_listitem(self, video):
139130 context_menu .extend (menu_items .refresh ())
140131 display_name = to_string (video .get (Keys .USER_NAME ) if video .get (Keys .USER_NAME ) else video .get (Keys .USER_LOGIN ))
141132 channel_name = to_string (video [Keys .USER_LOGIN ])
142- if self .has_token :
143- context_menu .extend (menu_items .edit_follow (video [Keys .USER_ID ], display_name ))
144133 context_menu .extend (menu_items .channel_videos (video [Keys .USER_ID ], channel_name , display_name ))
145134 context_menu .extend (menu_items .set_default_quality ('video' , video [Keys .USER_ID ],
146135 video [Keys .USER_LOGIN ], video [Keys .USER_ID ]))
@@ -172,8 +161,6 @@ def search_stream_to_listitem(self, search):
172161 context_menu .extend (menu_items .refresh ())
173162 channel_name = to_string (search [Keys .DISPLAY_NAME ])
174163 game_name = to_string (search [Keys .GAME_NAME ])
175- if self .has_token :
176- context_menu .extend (menu_items .edit_follow (search [Keys .ID ], display_name ))
177164 context_menu .extend (menu_items .channel_videos (search [Keys .ID ], channel_name , display_name ))
178165 if search [Keys .GAME_NAME ]:
179166 context_menu .extend (menu_items .go_to_game (game_name , search [Keys .GAME_ID ]))
@@ -203,8 +190,6 @@ def search_channel_to_listitem(self, search):
203190 context_menu = list ()
204191 context_menu .extend (menu_items .refresh ())
205192 channel_name = to_string (search [Keys .DISPLAY_NAME ])
206- if self .has_token :
207- context_menu .extend (menu_items .edit_follow (search [Keys .ID ], display_name ))
208193 context_menu .extend (menu_items .channel_videos (search [Keys .ID ], channel_name , display_name ))
209194
210195 return {'label' : title ,
@@ -234,8 +219,6 @@ def stream_to_listitem(self, stream):
234219 display_name = to_string (stream .get (Keys .USER_NAME ) if stream .get (Keys .USER_NAME ) else stream .get (Keys .USER_LOGIN ))
235220 channel_name = to_string (stream [Keys .USER_NAME ])
236221 game_name = to_string (stream [Keys .GAME_NAME ])
237- if self .has_token :
238- context_menu .extend (menu_items .edit_follow (stream [Keys .USER_ID ], display_name ))
239222 context_menu .extend (menu_items .channel_videos (stream [Keys .USER_ID ], channel_name , display_name ))
240223 if stream [Keys .GAME_NAME ]:
241224 context_menu .extend (menu_items .go_to_game (game_name , stream [Keys .GAME_ID ]))
0 commit comments