Skip to content

Commit

Permalink
see changelog.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
rols1 committed Sep 26, 2021
1 parent 31cacad commit b5c401c
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion addon.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="plugin.image.flickrexplorer" name="FlickrExplorer" version="0.7.3" provider-name="rols1 (rols1@gmx.de)">
<addon id="plugin.image.flickrexplorer" name="FlickrExplorer" version="0.7.4" provider-name="rols1 (rols1@gmx.de)">
<requires>
<import addon="xbmc.python" version="2.25.0"/>
<import addon="script.module.kodi-six" />
Expand Down
4 changes: 4 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ CHANGE HISTORY Kodi-Addon-FlickrExplorer
Releases: https://github.com/rols1/Kodi-Addon-FlickrExplorer/releases
--------------

26.09.2021 0.7.4 RequestUrl: ssl.SSLContext(ssl.PROTOCOL_TLSv1) changed to
ssl.create_default_context() for security reasons.
RequestUrl: UrlopenTimeout changed from 3 to 10 (sec).

15.10.2020 0.7.3 ShowPhotoObject: for albums-lists api-call photos.getSizes added to
get the sizes-list for every photo in the loop. If no Original-mark
is found, the addon takes the last list-entry (ascending sorted).
Expand Down
4 changes: 2 additions & 2 deletions flickrexplorer.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@

# +++++ FlickrExplorer - Addon Kodi-Version, migriert von der Plexmediaserver-Version +++++

VERSION = '0.7.3'
VDATE = '15.10.2020'
VERSION = '0.7.4'
VDATE = '26.09.2021'

#
#
Expand Down
6 changes: 3 additions & 3 deletions resources/lib/util_flickr.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
# util_flickr.py
#
# Stand: 23.09.2020
# Stand: 26.09.2021

# Python3-Kompatibilität:
from __future__ import absolute_import
Expand Down Expand Up @@ -768,7 +768,7 @@ def L(string):
#
def RequestUrl(CallerName, url):
PLog('RequestUrl: ' + url)
UrlopenTimeout = 3 # Timeout sec
UrlopenTimeout = 10 # Timeout sec

msg=''
loc = Dict('load', 'loc') # Bsp. fr, loc_browser nicht benötigt
Expand All @@ -783,7 +783,7 @@ def RequestUrl(CallerName, url):
req.add_header('User-Agent', 'Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2228.0 Safari/537.3')
req.add_header('Accept-Language', '%s, en;q=0.9, %s;q=0.7' % (loc, loc))

gcontext = ssl.SSLContext(ssl.PROTOCOL_TLSv1)
gcontext = ssl.create_default_context()
gcontext.check_hostname = False
gcontext.verify_mode = ssl.CERT_NONE
ret = urlopen(req, context=gcontext, timeout=UrlopenTimeout)
Expand Down

0 comments on commit b5c401c

Please sign in to comment.