plugin.video.twitch icon indicating copy to clipboard operation
plugin.video.twitch copied to clipboard

Following Live Channels not sorted anymore

Open apo86 opened this issue 6 years ago • 9 comments

The followed live streams are listed in seemingly random order. They used to be sorted by viewer count. Curiously, all the other live channel views (Browse Live Channels, Browse Games, Browse) are still sorted by viewers.

This started a few days ago, maybe a change in the API with how the followed live streams are returned?

As a workaround I added a line of code to sort the json by viewers right after it is loaded. That works fine for me. I noticed for some of the other API functions there are sorting parameters, but as a Python noob I have no idea how any of it works. Anyways doesn't seem to be implemented for followed live streams.

apo86 avatar Jan 18 '20 21:01 apo86

Ditto - trying out the other sort options doesn't get me back to 'sorting by viewer count'

cmsimike avatar Jan 20 '20 14:01 cmsimike

As a workaround I added a line of code to sort the json by viewers right after it is loaded. That works fine for me.

For me it's also not sorting by view count any longer. Can you explain how and what you did to create a workaround?

lococola avatar Jan 21 '20 20:01 lococola

have a fix in place, will be pr'ing shortly

anxdpanic avatar Jan 21 '20 20:01 anxdpanic

The fix is in master now 6a88aa4bf255fd03bafa81456eefda984bf89ee5

anxdpanic avatar Jan 21 '20 21:01 anxdpanic

Thank you very much!

cmsimike avatar Jan 21 '20 21:01 cmsimike

Looks good, thanks!

apo86 avatar Jan 21 '20 21:01 apo86

Perfect, thank you! :)

lococola avatar Jan 21 '20 23:01 lococola

Fixed in https://github.com/MrSprigster/Twitch-on-Kodi/releases/tag/2.4.8, waiting official repository review.

anxdpanic avatar Jan 24 '20 15:01 anxdpanic

Thank you for your continued work on this!

cmsimike avatar Jan 24 '20 16:01 cmsimike