Version 0.9.13

This commit is contained in:
Paco8 committed 2024-10-08 14:08:53 +02:00
1 parent 2a8157c238
commit af0a1fb6a6
6 files changed
+25 -1

No files matched your search

+13
View File
@@ -286,6 +286,19 @@ def add_videos(category, ctype, videos, ref=None, url_next=None, url_prev=None,
if 'subscribed' in t:
if addon.getSettingBool('only_subscribed') and t['subscribed'] == False: continue
t['info']['title'] = m.colorize_title(t)
if 'availability' in t:
ends = int(t['availability'].get('end', '0'))
if ends > 0:
now = int(time.time()*1000)
n_hours = int((ends - now) / (1000 * 60 * 60))
n_days = int(n_hours / 24)
if (n_days <= addon.getSettingInt('expdays')):
if n_days < 1:
t['info']['title'] += ' [COLOR red](' + addon.getLocalizedString(30401).format(n_hours) + ')[/COLOR]'
else:
t['info']['title'] += ' [COLOR red](' + addon.getLocalizedString(30400).format(n_days) + ')[/COLOR]'
title_name = t['info']['title']
if not 'type' in t: continue