i added a xbmc.getinfotag(int) to xbmcmodule.cpp.
before i submit the patch, i wondered if i should add all the infotag constants also? like you have for player and playlist...
also in guiinfomanager.h, i noticed a double entry, should i update that file and include it in the patch?
#define system_free_space_c 115
#define system_free_space_c 115
thanks
Nuka1195
Skilled Python Coder Posts: 3,917 Joined: Dec 2004 Reputation: 17 |
2006-05-28 03:11
Post: #1
|
| find quote |
jmarshall
Team-XBMC Developer Posts: 24,523 Joined: Oct 2003 Reputation: 138 |
2006-05-28 03:17
Post: #2
cool.
i've added the fix for the #define in my local build as well. 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. ![]() |
| find quote |
Nuka1195
Skilled Python Coder Posts: 3,917 Joined: Dec 2004 Reputation: 17 |
2006-05-28 04:12
Post: #3
i changed it to:
xbmc.getinfolabel(int) and xbmc.getinfoimage(int). since there are overlaps of info. weather.conditions... edit: i misunderstood what the constants at the bottom did. should there be a list of the values in the python doc? |
| find quote |
Nuka1195
Skilled Python Coder Posts: 3,917 Joined: Dec 2004 Reputation: 17 |
2006-05-28 05:03
Post: #4
patch 1496246 uploaded.
edit: changed so now it takes the actual infotag as input. the format is: xbmc.getinfolabel("weather.conditions") xbmc.getinfoimage("weather.conditions") should have thought of this first. |
| find quote |
Nuka1195
Skilled Python Coder Posts: 3,917 Joined: Dec 2004 Reputation: 17 |
2006-05-29 15:55
Post: #5
thanks for the fix,
i've noticed in the xbmc.html and xbmcgui.html that some descriptions are well written with an example. some are formatted better. if i was to update these and maybe add an example if one would help. is this something that could go in before 2.0? it only affects .cpp files in lib\libpython\xbmcmodule\. if so i could run makedoc.py and submit the files to cvs. |
| find quote |
jmarshall
Team-XBMC Developer Posts: 24,523 Joined: Oct 2003 Reputation: 138 |
2006-05-29 22:02
Post: #6
sure, that'd be great
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. ![]() |
| find quote |
Nuka1195
Skilled Python Coder Posts: 3,917 Joined: Dec 2004 Reputation: 17 |
2006-05-30 04:52
Post: #7
the getcputemp() doesn't work. looking at cfancontroller::getcputempinternal() theres a lot different.
since you can now get the infolabel for it may i suggest deleting it? i doubt there are many if any scripts that use it. also the sleep() method. i don't understand it. if it's suppose to do what the description says, it doesn't. when i tried using it. all it did was keep the script from continuing after that call. maybe it's not necessary either ![]() Quote: // sleep() method |
| find quote |
thor918
Fan Posts: 363 Joined: Jun 2004 Reputation: 0 Location: Norway |
2006-05-31 13:26
Post: #8
thanks nuka1195, i can see that infolabel can be a good addition to python.(i have allready taken one infolabel to use in my script)
i have added some resourcelinks to the python manuals in my signatur
pydev manuals: http://home.no.net/thor918/xbmc/xbmcgui.html http://home.no.net/thor918/xbmc/xbmc.html |
| find quote |
Nuka1195
Skilled Python Coder Posts: 3,917 Joined: Dec 2004 Reputation: 17 |
2006-05-31 14:35
Post: #9
thor, i added the links down with the functions, but i like your idea better. would you share your changes so i can add them in.
thanks |
| find quote |
thor918
Fan Posts: 363 Joined: Jun 2004 Reputation: 0 Location: Norway |
2006-05-31 15:16
Post: #10
i'm not touching source.
all is done automatically in python script. everytime a new xbmc is uploaded to my xbox, a script will detect that a new version is in place, it will then generate the python docs, add the resource links, and then connect to my ftp to upload the documents. it's very neat ![]() this script is a part of something else. i may release the whole thing, in the near future. pydev manuals: http://home.no.net/thor918/xbmc/xbmcgui.html http://home.no.net/thor918/xbmc/xbmc.html |
| find quote |

![[Image: badge.gif]](http://www.ohloh.net/projects/9132/badge.gif)

Search
Help