From 46b8eb945a50f15dc7b62195cc59cfc5ce96c7f4 Mon Sep 17 00:00:00 2001 From: mac12m99 <10120390+mac12m99@users.noreply.github.com> Date: Tue, 8 Jun 2021 19:49:30 +0200 Subject: [PATCH] Merge branch 'alpha' of /home/marco/.kodi/addons/plugin.video.kod with conflicts. --- core/support.py | 2 +- default.py | 5 +++++ specials/videolibrary.py | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/core/support.py b/core/support.py index f46546ee..fd3a51a9 100755 --- a/core/support.py +++ b/core/support.py @@ -475,7 +475,7 @@ def scrape(func): typeContentDict, typeActionDict, blacklist, search, pag, function, lang, sceneTitle, group) for it in blockItemlist: if 'lang' in bl: - it.contentLanguage = scrapeLang(bl, it.contentLanguage, it.title) + it.contentLanguage = scrapeLang(bl, it.contentLanguage) if 'quality' in bl and bl['quality']: it.quality = bl['quality'].strip() # it.title = it.title + typo(bl['quality'].strip(), '_ [] color kod') diff --git a/default.py b/default.py index eb72aed5..3c5e589f 100644 --- a/default.py +++ b/default.py @@ -29,3 +29,8 @@ if sys.argv[2] == "": launcher.start() launcher.run() +# import sqlitedict +# +# d = sqlitedict.SqliteDict('/home/marco/.kodi/userdata/addon_data/plugin.video.kod/videolibrary/videolibrary.sqlite', 'tvshow') +# for k, v in d.items(): +# print(k, v['item']) diff --git a/specials/videolibrary.py b/specials/videolibrary.py index 81df89a1..b3b539f2 100644 --- a/specials/videolibrary.py +++ b/specials/videolibrary.py @@ -505,7 +505,7 @@ def update_videolibrary(item=None): for s in show['channels'].values(): show_list += s - t = float(100) / len(show_list) + t = float(100) / len(show_list) if len(show_list) > 0 else 1 i = 0 for it in show_list: