From 7d465e6a162832758b1e36b755b99d56a108e4fa Mon Sep 17 00:00:00 2001 From: rols1 Date: Thu, 15 Oct 2020 12:01:40 +0200 Subject: [PATCH] Changes see changelog.txt --- changelog.txt | 7 +++---- flickrexplorer.py | 15 ++------------- 2 files changed, 5 insertions(+), 17 deletions(-) diff --git a/changelog.txt b/changelog.txt index 2296fae..ca64b69 100644 --- a/changelog.txt +++ b/changelog.txt @@ -5,13 +5,12 @@ CHANGE HISTORY Kodi-Addon-FlickrExplorer 15.10.2020 0.7.2 BuildPath: added api-method for getting photos from photosets (albums) - MyAlbumsSingle: photoset_id added for BuildPath, calculate number - of photos new (wrong flickr-output) and round up for calculate - pages depending on settings. + MyAlbumsSingle: photoset_id added for BuildPath. MyAlbums: Fix building more-Buttons (page -> page_next). BuildPages: maxPageContent (flickr: per_page) in build-loop added. new function del_slides in modul util_flickr: cache-deletion with - dialog. + dialog. + Settings DICT_store_days: term delete added. Language file de.json: Fix '.' -> ',' Language files: terms für cache-deletion added. L: py2_encode for comparison term1/string. diff --git a/flickrexplorer.py b/flickrexplorer.py index ff579dc..d103e07 100644 --- a/flickrexplorer.py +++ b/flickrexplorer.py @@ -558,13 +558,6 @@ def MyAlbums(title, user_id, pagenr): thumb_src = stringextract('url_z="', '"', rec) # z=640 summ = "%s %s (%s)" % (count_photos, L('Fotos'), title_org) # Anzahl stimmt nicht -# anz = count_photos -# if int(count_photos) <= 10: -# anz = '<= 10' -# if int(count_photos) >= 10: -# anz = '> 10' - -# summ = "%s: %s (%s)" % (L('Fotos'), anz, title_org) if description: summ = '%s | %s' % (summ, description) img_src = R(ICON_FLICKR) @@ -643,12 +636,8 @@ def MyAlbumsSingle(title, photoset_id, user_id, pagenr=1): PLog('2Satz:') PLog('records: %s, maxPageContent: %s, mypagemax: %s' % (str(len(records)), maxPageContent, str(mypagemax))) - mypagemax = int(round(mypagemax + 0.49)) # zwangsw. aufrunden - PLog('mypagemax: %s' % str(mypagemax)) - -# todo: fotozahl doch korrekt - BuildPages mit flicker-Werten aufrufen od. -# hier neue mehr-buttons -> SeperateVideos -# cache löschen via setting + # mypagemax = int(round(mypagemax + 0.49)) # zwangsw. aufrunden - entfällt + # PLog('mypagemax: %s' % str(mypagemax)) searchname = '#MyAlbumsSingle#' li = BuildPages(title=title, searchname=searchname, SEARCHPATH=path, pagemax=pagemax, perpage=perpage,