Posts: 7,172
Joined: Dec 2003
Reputation:
4
kraqh3d
Retired Developer
Posts: 7,172
the addition of the base media window may make this rather trivial actually. and instead of just adding .py to the extensions lists, i'd kind of prefer it as a settings option ("show python scripts"?), seperate for each media window like the "allow file operations" option.
Posts: 3,746
Joined: May 2004
Reputation:
20
Livin
Posting Freak
Posts: 3,746
what about just adding a <script> tag to button controls... this way he gets his request and i also get mine.
we can launch a script along with any standard control.
I'm not an expert but I play one at work.
Posts: 61
Joined: Jan 2006
Reputation:
0
take it this way, i have added .py to the list of extensions that my videos can 'see'. i created a folder in my f:/videos/ folder called scripts and in it i placed the cnn script and all its associated files. now when i try to select the cnn script the box crashes, however i can still select this from within its correct section. this way, if i want to watch a music video i click on music videos folder and a video from within my videos section, if i want to watch streaming media from cnn i would simply click on the scripts folder and then cnn. same area of the media center for both streaming and local files, the xbox shouldnt care where it is coming from, it's still using the same codec to play it. now correct me if i am wrong (and i usually am) but couldnt you just add the code needed to execute the py files from the scripts menu and place that same functionality into the my videos or my music code. it seems to me that all the media is linked together anyways, and adding the ability to execute a py script from anywhere wouldnt be that hard... correct? either way, xbmc is by far the greatest media application availible today commercially or not. and if this is the worst part to me, you're doing a excellent job. javascript:emoticon(':bowdown:')
:bowdown:
Posts: 928
Joined: Feb 2004
Reputation:
0
Asteron
"Skilled" Python Coder
Posts: 928
the difference is that when you click a .py file in "my scripts" xbmc is smart enough to open it with the python engine. when you click on anything in "my video" xbmc will try to open it in the video player. videos that are started from within cnn use the same player though.
Posts: 61
Joined: Jan 2006
Reputation:
0
am i the only one who see a use for this feature. i myself am annoyed that there are 2 different places to find media. explaining this to new users of xbmc can be tough, think of it this way... you wanna listen to music go to my music and select the album or go to the main menu, click the arrow button find for instance, the xm py file, open that folder then click on the .py, run that and select the station. to me, it would be easier if say you wanted to listen to music, streaming or not, you go to my music. theres a bookmark in my music for listening to shoucast streams, if i select the http item i get a text list of availible stations, if i go to the shoucast script however, i am presented with a nice gui and a sorted list of stations and genres. why shouldnt i be able to access this script from my music... it is music the players uses the same codecs in the end to run them. most py files themselves just act as a gui interface that then streams in media of different types (video, music or pictures). it seems like a logical step to allow scripts to be sorted in thier respective catagories. the xbmc player is using the same functions. allowing py scripts to execute from any screen, not just the scripts menu or file browser, doesnt seem like it would require much more coding....