1
0
mirror of https://github.com/lutris/lutris synced 2024-07-03 07:28:41 +00:00

Return when no medias need to be downloaded (Fixes #411)

This commit is contained in:
Mathieu Comandon 2016-10-17 13:16:42 -07:00
parent dc5c3c5037
commit cafd521799
2 changed files with 3 additions and 1 deletions

View File

@ -95,7 +95,7 @@ desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
%{_datadir}/pixmaps/%{name}.png
%{_datadir}/polkit-1/actions/*
%{python3_sitelib}/%{name}-%{version}-py*.egg-info
%{python3_sitelib}/%{name}-*.egg-info
%{python3_sitelib}/%{name}/

View File

@ -33,6 +33,8 @@ def fetch_icons(game_slugs, callback=None):
# Remove duplicate slugs
missing_media_slugs = list(set(no_banners) | set(no_icons))
if not missing_media_slugs:
return
response = api.get_games(game_slugs=missing_media_slugs)
if not response: