TOOLSP
"
WELCOME !

Please ! USE [CODE] tags for your LINKS and CODE.

Favor usar balisas [CODE] para sus vínculos y código.

Merci d'utiliser les balises [CODE] pour vos liens et code.


[code]http://Thank.you[/code]
"
*** Doc. Kodi & PYthon ***
.
.
Python & Modules PY
.
.
.
.
(Video) Cache Kodi
.
.
.
Addons Kodi
.
.
.
Addons Kodi
.
.
*** GITHUB ***
.
.
URLresolver (J.S.) [GIT] +
.
.
.
URLresolver (elD.) [GIT] -
.
.
URLresolver (tvA.) [GIT] -
.
.
.
.
Cloudflare (external) [GIT]
.
.
.
*** Associated ***
.
Pastebin Your list online
.
mediafire Upload Files
.
imgur Upload Pics
lyngsat TV logos collection
transparent .png
.
http://hola.org free? VPN
Hola.apk free? VPN App.
.
hidester- free Proxy
.
webgrabplus EPG - Eng
xmltv EPG - Fr
kazer EPG - Fr
.
.wordreference Traduction
.
mail.com (fast sign-in)
.
.
FRIENDS / PARTNERS

£$π community

créer un forum


list sorting by watched

Go down

list sorting by watched

Post by vbprofi on Wed 20 Dec - 19:03

Hi,
I hope, I get a work solution here.

have someone an idea, how I can sort list for watched streams?
I try sort a big list from a-z and Need the watched streams on top of the list.

With this Code I have sort by Alphabetical.

Code:

 from operator import itemgetter
 ck = sorted(ck, key=itemgetter(1)) #1 = title
So I Need an solution for both (sort by Alphabetical and sort by watched (likes button in Kodi).)

Or an other one:
How I can mark Items in Array and bring that to top?

Example:
corrent List
channel 1
channel 2
channel 3 watched
channel 5
channel 6 watched
channel 7

I Need that list:
channel 3 watched
channel 6 watched
channel 1
channel 2
channel 5
channel 7

best regards

vbprofi

Messages : 31
Date d'inscription : 2017-05-03

View user profile

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum