Hide .py extension in the scripts window.
#1
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
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
Reply
#2
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
Reply
#3
thanks lolol,

i've actually used that and it works good. i just wanted to use the scripts window and the icon view.
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
Reply
#4
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
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#5
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. Smile
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
Reply
#6
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
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#7
ok,

i submitted the patch #1188623.

thanks
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
Reply

Logout Mark Read Team Forum Stats Members Help
Hide .py extension in the scripts window.0