mirror of
https://github.com/lutris/lutris
synced 2024-10-02 22:14:23 +00:00
Return when no medias need to be downloaded (Fixes #411)
This commit is contained in:
parent
dc5c3c5037
commit
cafd521799
|
@ -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}/
|
||||
|
||||
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue