NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Information Community Announcements v
« Previous 1 … 4 5 6 7 8 … 56 Next »
myGBPVR: use XMBC as GBPVR FrontEnd

 
  • 0 Vote(s) - 0 Average
myGBPVR: use XMBC as GBPVR FrontEnd
carpeVideo
Offline

Posting Freak

Posts: 824
Threads: 23
Joined: Dec 2006
#111
2010-05-04, 08:43 PM
Quote:I have found the following format in .Net that should be fine: "''yyyy'-'MM'-'dd'T'HH': 'mm': 'ss.fffffff'zzz' " where "zzz" should be the offset from GMT(in hours/minutes). I will be able to specify that from Python, so I'm hoping that will be fine....

Could you give me the TZ and regional settings for youre GBPVR machine? I can then configure my own server that way and see if the above would work....

It is set for central time zone with daylight savings
(UTC -6) Central Time (US & Canada)

I'll also try the extension stuff , I brute forced it by having it try several extensions. Your solution is much better L:O)
Ton
Offline

Member

Posts: 233
Threads: 16
Joined: Aug 2005
#112
2010-05-04, 09:25 PM
carpeVideo Wrote:It is set for central time zone with daylight savings
(UTC -6) Central Time (US & Canada)
Can I assume that you have XBMC set to the same timezone? That's what I'll be trying intitally then...
//Ton
carpeVideo
Offline

Posting Freak

Posts: 824
Threads: 23
Joined: Dec 2006
#113
2010-05-04, 09:51 PM
Quote:Can I assume that you have XBMC set to the same timezone? That's what I'll be trying initially then...

I didn't even know you could set XBMC to a different timezone/region setting I just assume it takes that from the machine.
dljones8053
Offline

Senior Member

USA
Posts: 267
Threads: 2
Joined: Jul 2006
#114
2010-05-04, 09:53 PM
Ton

The correct time is the Credential time string and Credential time converted, the now Time was wrong and I did check both Server/Client they both matched the Credential time. The time zone was also correct on both Server and Client, I removed the "T" seems to fix it for now..:-)

Thanks
DJ
Ton
Offline

Member

Posts: 233
Threads: 16
Joined: Aug 2005
#115
2010-05-06, 08:30 PM
Hi,

Finally found it! It was a dual problem.... EWA expects a UTC time in the authentication object and the .Net parsing routines resolve a time in non-iso format to the current locale... So if you specified it in the same manner as the current locale, things would be fine...

The final fix is to change "GBPVR_Connect.py" and change the timeSting assignment (in _AddAuthentication) to:
Code:
TimeString = DateTime.utcnow().strftime("%Y-%m-%dT%H:%M:%S")
//Ton
dljones8053
Offline

Senior Member

USA
Posts: 267
Threads: 2
Joined: Jul 2006
#116
2010-05-06, 11:20 PM
Ton

This change broke my script canniot connect to GPPVR error.

Works - timeString = DateTime.utcnow().strftime("%Y-%m-%dT%H:%M:%S")
Don't Work - timeString = datetime.now().strftime("%m/%d/%Y %H:%M:00")

thanks
dj
dljones8053
Offline

Senior Member

USA
Posts: 267
Threads: 2
Joined: Jul 2006
#117
2010-05-06, 11:24 PM
Ton

Sorry my last post I have it backwarded.

Don't Work - timeString = DateTime.utcnow().strftime("%Y-%m-%dT%H:%M:%S")
Works - timeString = datetime.now().strftime("%m/%d/%Y %H:%M:00")

thanks
dl
Ton
Offline

Member

Posts: 233
Threads: 16
Joined: Aug 2005
#118
2010-05-07, 07:11 PM
Hi,
dljones8053 Wrote:Ton
Don't Work - timeString = DateTime.utcnow().strftime("%Y-%m-%dT%H:%M:%S")
l
What's your timezone? I have tried this with US Central (GMT -6) and the mm/dd/yy format that is nomal in the US. I would also appreciate a dump from the EWA log.... (that should tell us what's going wrong)....
//Ton
martynw
Offline

Junior Member

Posts: 30
Threads: 4
Joined: Apr 2006
#119
2010-05-08, 02:48 PM
Hey Ton,

I found a pure Python module that does AES encryption and have been attempting to get myGBPVR to work on my original XBoxes with XBMC.

I've got as far as (I think) correctly encrypting the credentials and passing them in the requests, but I'm getting errors from GBPVR with regards to "Padding", so I'm guessing something isn't quite right.

Would you be willing to take a look at that for me? Or even take a look at using the Python module instead of using PyCrypto?

The module is at http://code.google.com/p/slowaes/source/...unk/python

My (poor) code to replace the _AESEncrypt routine is:

Code:
def _AESEncrypt(self, clear_bytes, key_bytes, iv_bytes):

    import aes

    try:        

        mode = aes.AESModeOfOperation.modeOfOperation["CBC"]
        
        key_bytes = map(ord, key_bytes)
        key_size = len(key_bytes)        

        clear_bytes = aes.append_PKCS7_padding(clear_bytes)
        
        iv_bytes = map(ord, iv_bytes)

        aes_cypher = aes.AESModeOfOperation()        
        (mode, orig_len, encrypted) = aes_cypher.encrypt(clear_bytes,mode,key_bytes,key_size,iv_bytes)

        return ''.join(map(chr, encrypted))

    except:
        import traceback
        traceback.print_exc()
        return

Cheers,

Martyn
martynw
Offline

Junior Member

Posts: 30
Threads: 4
Joined: Apr 2006
#120
2010-05-08, 08:39 PM
Hey Ton,

I persevered with this and got it to work:

Code:
def _AESEncrypt(self, clear_bytes, key_bytes, iv_bytes):

    import aes

    try:
        mode = aes.AESModeOfOperation.modeOfOperation["CBC"]
        
        key_bytes = map(ord, key_bytes)
        key_size = len(key_bytes)
        assert key_size in aes.keySize.values(), 'invalid key size: %s' % key_size

        clear_bytes = aes.append_PKCS7_padding(clear_bytes)
        
        iv_bytes = map(ord, iv_bytes)

        aes_cypher = aes.AESModeOfOperation()        
        (mode, orig_len, encrypted) = aes_cypher.encrypt(clear_bytes,mode,key_bytes,key_size,iv_bytes)
        
        return ''.join("%c" % i for i in encrypted)
        
    except:
        import traceback
        traceback.print_exc()
        return

myGBPVR on original XBox XBMC rocks!!

Martyn
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (17): « Previous 1 … 10 11 12 13 14 … 17 Next »
Jump to page 


Possibly Related Threads…
Thread Author Replies Views Last Post
  External tool: Transfer Season Record schedules from GBPVR to NPVR kendrak24 37 21,282 2013-04-11, 05:58 AM
Last Post: kendrak24
  Translations for nPVR and GBPVR MixMan 19 8,188 2011-08-25, 07:32 PM
Last Post: sub
  N3XT Rev 001.6 with GBPVR support psicotron3 0 1,988 2009-08-30, 08:57 PM
Last Post: psicotron3
  Showname - Rename utility for GBPVR recordings Anthony 0 1,477 2009-03-05, 05:40 PM
Last Post: Anthony
  GBPVR install on WINE/Ubuntu Gutsy fhmanas 28 15,935 2009-02-03, 12:53 PM
Last Post: fhmanas
  GBPVR Wellington Xmas drinks psycik 44 11,104 2008-12-08, 05:44 AM
Last Post: skippy_nz
  Possible infection found on GBPVR site? suddste 40 13,144 2008-10-21, 01:06 AM
Last Post: sub
  GBPVR LCD Plugin for LCDSmartie fooman1 146 68,626 2008-07-03, 08:04 PM
Last Post: prada115
  GameZone, Now much more than an Emulator frontend idkpmiller 0 1,460 2008-06-08, 05:56 AM
Last Post: idkpmiller
  PSP Streaming from GBPVR psycik 11 4,813 2008-06-03, 11:58 AM
Last Post: fuzzweed

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode