Help - Search - Members - Calendar
Full Version: Need Help With Gamercard
Scenyx Entertainment Community > Xbox1 Forums > Software Forums > XBMC for Xbox Forums > XBMC Skinning > Official Team Blackbolt Skins Forum
morpheus2n
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 ????
rkolech
I too am having the exact same issue... mad.gif
It says downloading, but then nothing happens. Please help. unsure.gif
Jezz_X
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
rkolech
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?
Jezz_X
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
xess
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?
Jezz_X
Sure if soeone makes a working replacement that does all the same as the current did I will gladly add it
xess
QUOTE(Jezz_X @ Mar 9 2008, 11:06 PM) *

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.
enixidfrag
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
rkolech
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...
Stefan Leroux
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?
enixidfrag
QUOTE(Stefan Leroux @ Mar 18 2008, 02:30 AM) *

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
Jezz_X
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



chronno
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.
Jezz_X
Yeah pretty funny how small it was hey smile.gif
Demogorge
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('<span class="XbcFLAL">([^<]*)</span>.*?<img class="XbcgcGamertile" height="64" width="64" src="([^"]*)".*?<img src="/xweb/lib/images/gc_repstars_external_([^.]*).gif" />.*?<span class="XbcFLAL"><img alt="Gamerscore" src=".*" /></span><span class="XbcFRAR">(.*)</span>.*?<span class="XbcFLAL">Zone</span><span class="XbcFRAR">(.*)</span>', 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.
personman
QUOTE(Demogorge @ May 2 2008, 02:43 AM) *

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('<span class="XbcFLAL">([^<]*)</span>.*?<img class="XbcgcGamertile" height="64" width="64" src="([^"]*)".*?<img src="/xweb/lib/images/gc_repstars_external_([^.]*).gif" />.*?<span class="XbcFLAL"><img alt="Gamerscore" src=".*" /></span><span class="XbcFRAR">(.*)</span>.*?<span class="XbcFLAL">Zone</span><span class="XbcFRAR">(.*)</span>', 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!
NeoTINS
YES!!! I've been patiently waiting for a fix for this problem. biggrin.gif

Thank you, Demogorge, THANK YOU!! beerchug.gif
Jezz_X
QUOTE(NeoTINS @ May 6 2008, 08:31 PM) *

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
devouringone3
EDIT:
Oh shit, I got it, yay thanks!!

cause it worked (after not 1 but 2 xbox reboot) actually!!

biggrin.gif

Its kay




Hummmm.... starting from those two files (set_gamercard.py and gamercardupdate.py) I got in the SVN (Jezz), with or without the line "card_data = card_html[8]", and with the new ip of xbox.com (from 65.59.234.166 to 65.59.234.169) (In Kreten's last thread http://forums.xbox-scene.com/index.php?showtopic=672727).

My Xbox.com GamerCard isn't showing up still sad.gif.

Anyone? Now that I've pretty much tried all I could find here.

I have rev1096 MC360...

Thanks for helping me
IAmTheDude360
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!
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2013 Invision Power Services, Inc.