xboxscene.org forums

OG Xbox Forums => XBMC Skinning => XBMC for Xbox Forums => Software Forums => Official Team Blackbolt Skins Forum => Topic started by: morpheus2n on March 06, 2008, 10:36:00 PM

Title: Need Help With Gamercard
Post by: morpheus2n on March 06, 2008, 10:36:00 PM
For some reason the new skin 1066 will not get my card from xbox.com it will pop up saying downloading but then nothing it just stays at the default card?!?!?!?! is there no way of implamenting a card like the ones on mygamercard.net would be a nice alt as i always have problems with the current one or even redo the code ????
Title: Need Help With Gamercard
Post by: rkolech on March 07, 2008, 10:22:00 PM
I too am having the exact same issue...  (IMG:style_emoticons/default/mad.gif)
It says downloading, but then nothing happens.  Please help.   (IMG:style_emoticons/default/unsure.gif)  
Title: Need Help With Gamercard
Post by: Jezz_X on March 08, 2008, 12:40:00 AM
welcome to the wonderfull world of scraping sites for info the sites change the scaper breaks.  Unless someone who knows python can fix it, it will stay broke
Title: Need Help With Gamercard
Post by: rkolech on March 08, 2008, 05:37:00 PM
QUOTE(Jezz_X @ Mar 8 2008, 02:40 AM) *

welcome to the wonderfull world of scraping sites for info the sites change the scaper breaks.  Unless someone who knows python can fix it, it will stay broke


Hope this doesn't sound snobby but, why wouldn't the MC360 team address the issue, since its their skin?
Title: Need Help With Gamercard
Post by: Jezz_X on March 08, 2008, 10:15:00 PM
because these days mc360 team is pretty much me and blackbolt
and neither of us know python ao unless someone who knows python can fix it the solution we can do is remove the feature
Title: Need Help With Gamercard
Post by: xess on March 09, 2008, 04:57:00 PM
Going back to what Morpheus said: would it be possible to include a script from mygamercard.net instead then? As long as someone makes one obviously... Or would that just run into the same problems?
Title: Need Help With Gamercard
Post by: Jezz_X on March 09, 2008, 05:06:00 PM
Sure if soeone makes a working replacement that does all the same as the current did I will gladly add it

This post has been edited by Jezz_X: Mar 10 2008, 12:08 AM
Title: Need Help With Gamercard
Post by: xess on March 09, 2008, 04:51:00 PM
QUOTE(Jezz_X @ Mar 9 2008, 11:06 PM) View Post

Sure if soeone makes a working replacement that does all the same as the current did I will gladly add it


I put a request in the python scripting forum, so hopefully someone will sort it out. Its such a great feature of the skin, its a shame its not working.

You can find the thread here.
Title: Need Help With Gamercard
Post by: enixidfrag on March 09, 2008, 06:51:00 PM
If someone can send me the current scriot (and supporting files it ties to if needed) then i will be willing to take a go at tieing it into my gamercard i did it before for my vB forum not that hard sometimes
Title: Need Help With Gamercard
Post by: rkolech on March 09, 2008, 09:31:00 PM
QUOTE(xess @ Mar 9 2008, 06:27 PM) *

I put a request in the python scripting forum, so hopefully someone will sort it out. Its such a great feature of the skin, its a shame its not working.


Good idea, hopefully someone will code something up...
Title: Need Help With Gamercard
Post by: Stefan Leroux on March 17, 2008, 07:30:00 PM
I'm sorry to bring this up again, but I was trying to edit the script for personal use earlier, but obviously it wouldn't work.  Now, I'm pretty much entirely new to scripting but I compared the script html recompile method to extract the info and it is the same - I can see no reason for the scraping not working.  Is it possibly that the script has been offset by any changes to XBMC rather than to Xbox.com?
Title: Need Help With Gamercard
Post by: enixidfrag on March 19, 2008, 12:33:00 PM
QUOTE(Stefan Leroux @ Mar 18 2008, 02:30 AM) View Post

I'm sorry to bring this up again, but I was trying to edit the script for personal use earlier, but obviously it wouldn't work.  Now, I'm pretty much entirely new to scripting but I compared the script html recompile method to extract the info and it is the same - I can see no reason for the scraping not working.  Is it possibly that the script has been offset by any changes to XBMC rather than to Xbox.com?


send me the script (or just tell me which folder its located in lol to lazy to look) And i'll see what i can do for linking to mygamercard.com most likely there was changes to xbox.com's gamer card protocols they may have even made it not work on prupose u know cause there pissed XBMC owns there soul LOL
Title: Need Help With Gamercard
Post by: Jezz_X on March 26, 2008, 05:20:00 PM
Should be fixed in the SVN thanks to Martomo
QUOTE
Revision: 1287
Author: jezz_x
Date: 9:37:52 AM, Thursday, 27 March 2008
Message:
Fixed : Gamercard didn't update from xbox.com any more thanks Martomo for pointing out the bit that needed changing (it was a small thing too) sad.gif
----
Modified : /MC360/extras/gamercardupdate.py
Modified : /MC360/extras/set_gamercard.py



Title: Need Help With Gamercard
Post by: chronno on April 07, 2008, 07:57:00 PM
Nice, I just put those new files in and it worked great.

Is that all that needed changed?  Just that 8 to a 7?  Ether way good show.
Title: Need Help With Gamercard
Post by: Jezz_X on April 07, 2008, 10:07:00 PM
Yeah pretty funny how small it was hey smile.gif
Title: Need Help With Gamercard
Post by: Demogorge on May 01, 2008, 07:43:00 PM
D'oh!

I just spent the last hour resolving this problem (after downloading rev 1096 from Blackbolt's site)...

Though the small fix works, you can do slightly better. Here is my code, which goes in the GetGTNFO function of set_gamercard.py and gamercardupdate.py:

CODE

    wsock = urllib.urlopen(str(card_url))
    card_html = wsock.read()
    wsock.close()
    nfo = re.search('([^<]*).*?.*?Gamerscore(.*).*?Zone(.*)', card_html, re.IGNORECASE).groups()
    return nfo


You'll never have to change a 7 to an 8 again, since this parses the whole page, but if the structure of the gamercard html changes too much then you'll of course have to rewrite the regex. This expression can handle some minor changes, which is better than before.
Title: Need Help With Gamercard
Post by: personman on May 05, 2008, 07:51:00 PM
QUOTE(Demogorge @ May 2 2008, 02:43 AM) View Post

D'oh!

I just spent the last hour resolving this problem (after downloading rev 1096 from Blackbolt's site)...

Though the small fix works, you can do slightly better. Here is my code, which goes in the GetGTNFO function of set_gamercard.py and gamercardupdate.py:

CODE

    wsock = urllib.urlopen(str(card_url))
    card_html = wsock.read()
    wsock.close()
    nfo = re.search('([^<]*).*?.*?Gamerscore(.*).*?Zone(.*)', card_html, re.IGNORECASE).groups()
    return nfo


You'll never have to change a 7 to an 8 again, since this parses the whole page, but if the structure of the gamercard html changes too much then you'll of course have to rewrite the regex. This expression can handle some minor changes, which is better than before.



Thanks for this, it works for me!
Title: Need Help With Gamercard
Post by: NeoTINS on May 06, 2008, 03:55:00 AM
YES!!! I've been patiently waiting for a fix for this problem. biggrin.gif

Thank you, Demogorge, THANK YOU!! beerchug.gif
Title: Need Help With Gamercard
Post by: Jezz_X on May 06, 2008, 06:55:00 AM
QUOTE(NeoTINS @ May 6 2008, 08:31 PM) View Post

YES!!! I've been patiently waiting for a fix for this problem. biggrin.gif

Thank you, Demogorge, THANK YOU!! beerchug.gif

couldn't of been waiting too hard it was fixed Mar 27 2008, 09:56 AM in the SVN if you look back a page
Title: Need Help With Gamercard
Post by: IAmTheDude360 on January 27, 2009, 09:59:00 AM
Me too. Mines not been updating since NXE, am assuming the htmls changed a lot with the introduction of avators. Tis a shame as it was one of the 'bragging features' which I loved to show my friends!