![]() |
[HOW TO] Speed Dial Favourites - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33) +--- Forum: Tips, tricks, and step by step guides (https://forum.kodi.tv/forumdisplay.php?fid=110) +--- Thread: [HOW TO] Speed Dial Favourites (/showthread.php?tid=223773) |
[HOW TO] Speed Dial Favourites - MediaPi - 2015-04-08 say I put iplayer into favourites and want to access Iplayer press favourites, locate iplayer, hover over iplayer, press enter. but what if I could do this press favourites, press 1 (this could be any key on your remote). THATS IT this is how to after you added favourites, you'll need to download the favourites.xml folder (in openelec its in xbmc./storage/.xbmc/userdata) Code: <favourites> now create a file and call it Code: 1.py Code: import xbmc now from favourites take out the code that performs the action of opening iplayer Code: ActivateWindow(10025,"plugin://plugin.video.iplayer/?content_type=video",return) place this code in 1.py (like so) Code: import xbmc save file and place inside userdata folder (same place where you got favourites.xml) Now create a file call it remote.xml (might have to call it keyboard.xml if kodi recognises your remote as keyboard place this code inside remote.xml (if you named it keyboard.xml, where ever you see remote in the code replace with keyboard Code: <keymap> place this inside keymaps (/storage/.xbmc/userdata/keymaps) you'll need to restart for it to work (only once needed) now when you press favourites you got iplayer on speed dial number 1. you could speed dial with any remote button on your remote, so in theory you could almost double the number of remote keys. you can add more things into favourites and then map them for speed dial. let me know what you think (P.S. the code was provided by Spoyser, thanks bud) EDIT I'm still on Gotham so I'm not sure if you have to replace "xbmc" with "kodi" in the python script (for 1.py) also you could just map direcctly the action to a key but the beauty of doing it like this is you don't use up keys rather you have added keys to your remote EDIT 2 each new button you assign as a speed dial, you'll need to create new python script files, so for example if I speed dialled button 2 I would need a new file for that (2.py) and for button 3 (3.py) etc RE: [HOW TO] Speed Dial Favourites - k4sh1n - 2015-04-08 Thank you and nice leverage of Autoexec.py, can you request this be moved to the tips and trick section ![]() RE: [HOW TO] Speed Dial Favourites - MediaPi - 2015-04-09 the credit goes to Spoyser, but I really appreciate your kind words, I'm not sure how to do a request, but if a mod is listening, could this please be consider to be placed in tips and tricks, thankyou RE: [HOW TO] Speed Dial Favourites - Ned Scott - 2015-04-09 Thread moved :) I haven't had time to test it yet, but I think some of the instructions/scripts can be simplified by using the special protocol (wiki) for the XBMC/Kodi folder (it will be called special://xbmc for the special protocol, even for Kodi). That way the path works for all OSes. EDIT: Correction, you will want to use special://home for the Kodi settings folder. |