Skip to content

Commit

Permalink
New artwork (#416)
Browse files Browse the repository at this point in the history
* new artwork

* delete old cached artwork on first run of 2.2.0
  • Loading branch information
mediaminister authored and dagwieers committed Aug 12, 2019
1 parent 0dfc5a2 commit 4390d9f
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion addon.xml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ v2.0.0 (2019-06-30)
<forum>https://www.facebook.com/kodivrtnu/</forum>
<assets>
<icon>resources/media/icon.png</icon>
<fanart>resources/media/fanart.jpg</fanart>
<fanart>resources/media/fanart.png</fanart>
<screenshot>resources/media/screenshot01.jpg</screenshot>
<screenshot>resources/media/screenshot02.jpg</screenshot>
<screenshot>resources/media/screenshot03.jpg</screenshot>
Expand Down
9 changes: 7 additions & 2 deletions resources/lib/vrtplayer.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,15 @@ def show_main_menu(self):
self._version_check()

def _version_check(self):
first_run, settings_version, addon_version = self._first_run() # pylint: disable=unused-variable
first_run, settings_version, addon_version = self._first_run()
if first_run:
if settings_version == '' and self._kodi.credentials_filled_in(): # New major version, favourites and what-was-watched will break
# 2.0.0 version: changed plugin:// url interface: show warning that favourites and what-was-watched will break
if settings_version == '' and self._kodi.credentials_filled_in():
self._kodi.show_ok_dialog(self._kodi.localize(30978), self._kodi.localize(30979))
# 2.2.0 version: changed artwork: delete old cached artwork
if addon_version == '2.2.0':
self._kodi.delete_cached_thumbnail(self._kodi.get_addon_info('fanart').replace('.png', '.jpg'))
self._kodi.delete_cached_thumbnail(self._kodi.get_addon_info('icon'))

def _first_run(self):
'''Check if this add-on version is run for the first time'''
Expand Down
Binary file removed resources/media/fanart.jpg
Binary file not shown.
Binary file added resources/media/fanart.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/media/icon.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 4390d9f

Please sign in to comment.