View Full Version : Hide .py extension in the scripts window.
Nuka1195
2005-04-22, 05:10
apparently thers a way to hide the .py extension in the scripts window. i have not been able to find how.
hide media extensions does not work with .py files.
does anyone know how?
thank you
hi!
because of the issue a script called scriptbrowser was developed.
it cuts the .py and displays a thumbail
look at xbmc.de to find
cu lolol
Nuka1195
2005-04-22, 15:45
thanks lolol,
i've actually used that and it works good. i just wanted to use the scripts window and the icon view.
jmarshall
2005-04-22, 16:19
a quick glance at the code shows it's not used.
guiwindowscripts.cpp - add the code necessary to clean the filenames in the update() routine and post a patch.
cheers,
jonathan
Nuka1195
2005-04-23, 03:44
hi jonathan,
i've made the necessary changes. i have a couple questions on how you would like it to work.
1. i have it setup to always hide extensions. do you want the user to have control? i think the extension should always be hidden, but let me know.
2. if you want user control, do you want it to hide with the hide media extensions setting? i added an xml entry <otherextensions>.py</otherextensions> so it could be checked or a different hide extension setting could be used and you could add more extensions.
3. i also added a default icon defaultscript.png and defaultscriptbig.png, is this ok?
if you miss this i'll post this in the development forum in a day or so.
thanks, this keeps most of my script titles from scrolling in icon view. :)
jmarshall
2005-04-23, 12:05
hi nuka1195
just set it up so that it works off filelists.hideextensions and then use the usual cutil function to remove the extension i think would suffice.
no problems with adding the extra icon.
cheers,
jonathan
Nuka1195
2005-04-23, 19:14
ok,
i submitted the patch #1188623.
thanks