diff --git a/specials/news.json b/specials/news.json index 5c5e7f87..8aa732a7 100644 --- a/specials/news.json +++ b/specials/news.json @@ -29,18 +29,15 @@ ] }, { - "id": "perfil", + "id": "order", "type": "list", - "label": "@60666", + "label": "Ordinamento", "default": 0, "enabled": true, "visible": true, "lvalues": [ - "@60667", - "@60668", - "@60669", - "@60670", - "@60671" + "Default", + "Alfabetico" ] } ] diff --git a/specials/news.py b/specials/news.py index 870731df..800161ee 100644 --- a/specials/news.py +++ b/specials/news.py @@ -453,8 +453,9 @@ def no_group(list_result_canal): # i.text_color = color3 itemlist.append(i.clone()) - - return sorted(itemlist, key=lambda it: it.title.lower()) + if config.get_setting('order','news') == 1: + itemlist = sorted(itemlist, key=lambda it: it.title.lower()) + return itemlist def group_by_channel(list_result_canal):