Addons4Xbox development

Discussion of XBMC4XBOX development.
Post Reply
User avatar
Kozz
Posts: 238
Joined: Wed Jul 04, 2012 4:42 am
Has thanked: 22 times
Been thanked: 51 times

Re: Addons4Xbox development

Post by Kozz »

right, I'll check in the default.py too it must be something small I missed
Image
User avatar
Kozz
Posts: 238
Joined: Wed Jul 04, 2012 4:42 am
Has thanked: 22 times
Been thanked: 51 times

Re: Addons4Xbox development

Post by Kozz »

So problem solved by tracing back all the instances of addon id from script.navi-x to plugin.script.navi-x to match the folder But I'm wondering if its easier or cleaner to have created its folder as script.navi-x in the first place, Just thought I'd mention it in case there might be a solution you could come up with from within the xbmcaddon.py that can check both script.name and plugin.script.name, Not a big deal its easy to create the folder that the addon id is looking for
Image
User avatar
BuZz
Site Admin
Posts: 1890
Joined: Wed Jul 04, 2012 12:50 am
Location: UK
Has thanked: 65 times
Been thanked: 422 times
Contact:

Re: Addons4Xbox development

Post by BuZz »

scripts should be called script. not plugin. so its correct to have the folder name matching the id. plugins code is different from script code.
User avatar
Kozz
Posts: 238
Joined: Wed Jul 04, 2012 4:42 am
Has thanked: 22 times
Been thanked: 51 times

Re: Addons4Xbox development

Post by Kozz »

Cheers to that

It didn't want to fetch the file list within about 5min of commiting changes, must be the norm for g-code svn, had me baffled for a while though

Might have spoken too soon, the script is installing just fine when placed into script.navi-x and addon id's are matching, but still tossing up errors for me, wondering if the installer doesn't handle script.name the same way as plugin.script.name. Hope the xbmcaddons.py has not been replaced since your updates I did not check the diffs yet.

The strange thing is I had navi-x installing and working perfectly yesterday, I think what was different is the main addons.xml for the installer used plugin.script.navi-x is the id, its addon.xml was just script.navi-x so what causes the breakage is using the xml_generator.



I know how much you like log snippets so here

Code: Select all

ERROR: Error Type: exceptions.IndexError
08:48:51 M: 26095616   ERROR: Error Contents: list index out of range
08:48:51 M: 26095616   ERROR: Traceback (most recent call last):
                                              File "Q:\scripts\Navi-X\default.py", line 40, in ?
                                                addon = xbmcaddon.Addon(id='script.navi-x')
                                              File "Q:\scripts\.modules\script.module.xbmcaddon\lib\xbmcaddon.py", line 35, in __init__
                                                locations = [
                                            IndexError: list index out of range
08:48:51 M: 26095616    INFO: -->End of Python script error report<--
Image
User avatar
BuZz
Site Admin
Posts: 1890
Joined: Wed Jul 04, 2012 12:50 am
Location: UK
Has thanked: 65 times
Been thanked: 422 times
Contact:

Re: Addons4Xbox development

Post by BuZz »

aah. thats a addon search path failure. I will sort it. It's looking for the addon, and is hardcoded for 3 part names like something.something.something.
User avatar
Kozz
Posts: 238
Joined: Wed Jul 04, 2012 4:42 am
Has thanked: 22 times
Been thanked: 51 times

Re: Addons4Xbox development

Post by Kozz »

ahh right that's what I was trying to ask originally,

Cool, take your time I'm done for today, And I feel a storm brewing
Image
skatulskijean
Posts: 1028
Joined: Wed Jul 04, 2012 8:01 am
Has thanked: 1 time
Been thanked: 148 times

Re: Addons4Xbox development

Post by skatulskijean »

@KozZ and BuzZ

This weekend i have only small Time (and i working on many on the same Time i think i must have a lttle bit more structur for all what i do or help !)


I found a good starting Point for Questions is here http://wiki.xbmc.org/index.php?title=Add-on_development!

And we have the first problem when the developer from addons on Frodo change from .xml to po!

strings.xml will be deprecated after the release of Frodo. Frodo will still be back worths compatible with .xml

I hope we can than find a solution!

Regards Jan


Gruß ;)
User avatar
BuZz
Site Admin
Posts: 1890
Joined: Wed Jul 04, 2012 12:50 am
Location: UK
Has thanked: 65 times
Been thanked: 422 times
Contact:

Re: Addons4Xbox development

Post by BuZz »

convert from po to xml :-)

Or maybe ill add .po support at some point ;-)
skatulskijean
Posts: 1028
Joined: Wed Jul 04, 2012 8:01 am
Has thanked: 1 time
Been thanked: 148 times

Re: Addons4Xbox development

Post by skatulskijean »

BuZz wrote:convert from po to xml :-)

Or maybe ill add .po support at some point ;-)
yes i think is a better solution !

Then when you switch on the Addon4xbox Installer to the Frodo repro (with release from frodo is the eden repro outdated)
whe have this problem not!

it looks like that it give not to many changes on the addon site on frodo!

The main problem with the addon is that the parameters are now passed by url_quote or url_unquote .

All dersphere addons as example have not this problem she use URL-Routing and not Parameter-Parsing

@KozZ on what for a Build test your the added Addons !

Regards jan
User avatar
Kozz
Posts: 238
Joined: Wed Jul 04, 2012 4:42 am
Has thanked: 22 times
Been thanked: 51 times

Re: Addons4Xbox development

Post by Kozz »

sounds good to me guys

@Jan

I always use the latest Stable 3.2 , since this is the build we try to target for the public to use
Image
User avatar
Kozz
Posts: 238
Joined: Wed Jul 04, 2012 4:42 am
Has thanked: 22 times
Been thanked: 51 times

Re: Addons4Xbox development

Post by Kozz »

@Buzz

Just an idea here, I was wondering if there might be a way to install skins from this installer, could be a nice way to install them and devs to update them etc.
Image
skatulskijean
Posts: 1028
Joined: Wed Jul 04, 2012 8:01 am
Has thanked: 1 time
Been thanked: 148 times

Re: Addons4Xbox development

Post by skatulskijean »

@Buzz
please can you integrate on the addon4xbox Installer a solution to look its the scriptmodul or addon is here or not when not install!
Is a matter i nstall 1 Channel and this install the urlresolver next i install burningseries and is install the urlresolver again as example!


@KozZ
Yes test on moment only to on the stable and hope instantly that was not works on the last nightly (adapted scriptmodule -addons whats works on the stable and my lastbuild)
On the next stable works!

have addet

scriptmodule xbmcswift2, scriptmodule.xmltodict

and under music addons radio and shoutcast2

i think the shoutcast addon will have more love (error must be string or unicode but that is the problem what we many have on xbmc4xbox)

the next addon is redditmusic (xbmcswift2 addon then follow all other xbmcswift2 addons)

the redditmusic have the dependencies from scriptmodul.request and this is python 2.7.3 complete!
I change and change the syntax problems and look for sulutions for that what we not have on python 2.4 but python 2.7 have as default!
can not say its works or not the next days!
But i have found a threading dummy and a solution to add LifoQueue what we not have on python 2.4 as a class and so can we it added to the 2.4 Queue!

ok i think i work on the end on the next days on the scriptmodul.request !

Nice you have addet burnigseries i hat asked the developer to change to urlresolver and he make this!

what is your next KozZ

regards Jan
User avatar
Kozz
Posts: 238
Joined: Wed Jul 04, 2012 4:42 am
Has thanked: 22 times
Been thanked: 51 times

Re: Addons4Xbox development

Post by Kozz »

@Jan

Nice work, I noticed the Shoutcast and Radio addons, I hope you can get them working I like shoutcast :)

I just finished adding vevo and set its default settings to not use RTMP or youtube and set to 480p as default and it works well :)

Don't know what I will try next yet, might try 1 or 2 more before monday
Image
Smiff
Posts: 125
Joined: Mon Sep 10, 2012 10:39 pm
Has thanked: 5 times
Been thanked: 2 times

Re: Addons4Xbox development

Post by Smiff »

good stuff! this could go a long way to making the xbox usable again, for "normal people" :)


had a quick go installing it from SVN repo installer, haven't read whole thread so ignore the following if it's covered!
couple of things.. it seems to pull in dependencies already installed? not sure
it seems quite slow and getting no wait indicator for the first step so it looks like it's doing nothing at first, then completes ok.


icefilms crashes after installing

Code: Select all

21:19:56 M: 16240640   ERROR: Error Type: exceptions.ImportError
21:19:56 M: 16240640   ERROR: Error Contents: No module named xbmcvfs
21:19:56 M: 16220160   ERROR: Traceback (most recent call last):
                                              File "Q:\plugins\video\Icefilms\default.py", line 57, in ?
                                                import xbmcvfs
                                            ImportError: No module named xbmcvfs
21:19:56 M: 24977408   ERROR: XFILE::CDirectory::GetDirectory - Error getting plugin://video/Icefilms/
21:19:56 M: 24977408   ERROR: CGUIMediaWindow::GetDirectory(plugin://video/Icefilms/) failed
21:20:00 M: 24465408 WARNING: old getenv from python.lib called, library check needed

keep going with this, on right track! just needs an autoupdate mechanism not sure how feasible on xbox.
i'm using b31600 btw.
User avatar
Kozz
Posts: 238
Joined: Wed Jul 04, 2012 4:42 am
Has thanked: 22 times
Been thanked: 51 times

Re: Addons4Xbox development

Post by Kozz »

@Smiff

Thanks for the feedback, as you know it is still getting a lot of things worked out. That error with icefilms is simply because I forgot to add xbmcvfs to be installed as a dependency, give me a few minutes to update then try again and let us know

Update: icefilms fixed and working now
Image
skatulskijean
Posts: 1028
Joined: Wed Jul 04, 2012 8:01 am
Has thanked: 1 time
Been thanked: 148 times

Re: Addons4Xbox development

Post by skatulskijean »

Morning !

Next old fucking python 2.4 problem the configparser is outdated!
I lock later that i can find a workaround!

adapted and addet

Al Jazzera
CollegeHumor
DiscloseTV
Documentary.net
Dump.com
MyVideo.de

on my myvideo scrapper all urllib2 urlopen and request over mechanize!
The old python 2.4 urllib2 give a redirect error!

search works not will have some love!


@KozZ you have addet the from me addapted scriptmodule.mechanize
i delete it on monday and add the unmodifie scriptmodule.mechanize and adapt it again that another can understand what i do!
And we have the diff !

more monday

grüsse JAn
Smiff
Posts: 125
Joined: Mon Sep 10, 2012 10:39 pm
Has thanked: 5 times
Been thanked: 2 times

Re: Addons4Xbox development

Post by Smiff »

hmmmm NaviX isn't working for me today, since i installed something else

edit: sorry Buzz, known issue.

Icefilms now works fine thanks.
downloading seems awful slow, just me or server overloaded perhaps?
Last edited by Smiff on Sun Dec 16, 2012 5:52 pm, edited 2 times in total.
User avatar
BuZz
Site Admin
Posts: 1890
Joined: Wed Jul 04, 2012 12:50 am
Location: UK
Has thanked: 65 times
Been thanked: 422 times
Contact:

Re: Addons4Xbox development

Post by BuZz »

look further up the thread. it needs a change in the addons module.
skatulskijean
Posts: 1028
Joined: Wed Jul 04, 2012 8:01 am
Has thanked: 1 time
Been thanked: 148 times

Re: Addons4Xbox development

Post by skatulskijean »

Smiff wrote:hmmmm NaviX isn't working for me today, since i installed something else

edit: sorry Buzz, known issue.

Icefilms now works fine thanks.
downloading seems awful slow, just me or server overloaded perhaps?
Please have a look on the naviX Plugin is faster and not so memory hungry we a script what will access the own Skin!

http://www.xbmc4xbox.org.uk/forum/viewt ... ?f=7&t=585
Smiff
Posts: 125
Joined: Mon Sep 10, 2012 10:39 pm
Has thanked: 5 times
Been thanked: 2 times

Re: Addons4Xbox development

Post by Smiff »

thanks i'll try that, never used to work right.. can you get it in repo now please?
edit: doesnt' work for same reason as Icefilms, i think.

little tip: as well as deleting old Addons4Xbox plugin, you must also delete relevant folder in \Userdata\plugin_data\ otherwise the xbmc4xbox repo doesn't show up.


not sure if it's to do with running a test build 31600, but my xboxes chew away on the hard drives for hours (ok, a long time) now just to open directories in these plugins, am i doing something wrong?
Last edited by Smiff on Sun Dec 16, 2012 8:11 pm, edited 1 time in total.
Post Reply