Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New artwork #416

Merged
merged 2 commits into from
Aug 12, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.