Skip to content

Commit c906cb8

Browse files
committed
Disabled content lookup for game items, so that Kodi does not treat our virtual "run game" urls as media URLs
1 parent ac07c7e commit c906cb8

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

resources/main.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ def create_directory_items(app_entries):
134134
item = xbmcgui.ListItem(name)
135135
item.setUniqueIDs({'steam': appid, 'steam_img_icon': app_entry['img_icon_url']})
136136
item.setInfo('video', {'playcount': app_entry.get('playtime_forever', 0)})
137+
item.setContentLookup(False) # Tells Kodi not to send HEAD requests (used to determine MIME type for example) to the item's run URL.
137138

138139
item.addContextMenuItems([('Play', 'RunPlugin(' + run_url + ')'),
139140
('Install', 'RunPlugin(' + plugin.url_for(install, appid=appid) + ')')])

0 commit comments

Comments
 (0)