From a6bf237c9a3651ddc896b0f305e75a6b13198aaf Mon Sep 17 00:00:00 2001 From: Worros Date: Sat, 2 Apr 2011 14:15:42 +0800 Subject: [PATCH] Win2day: Allow CAD espacejeux.com hand to parse --- pyfpdb/Win2dayToFpdb.py | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/pyfpdb/Win2dayToFpdb.py b/pyfpdb/Win2dayToFpdb.py index d3d587c0..4ee21aee 100755 --- a/pyfpdb/Win2dayToFpdb.py +++ b/pyfpdb/Win2dayToFpdb.py @@ -35,10 +35,16 @@ class Win2day(HandHistoryConverter): siteID = 4 # Static regexes - # - - #'^$' - re_GameInfo = re.compile('', re.MULTILINE) + re_GameInfo = re.compile("""[0-9]+)"\sSESSION="session[0-9]+\.xml"\s + TABLE="(?P[-\sa-zA-Z0-9\xc0-\xfc/.]+)"\s + GAME="(?P[_A-Z]+)"\sGAMETYPE="[_a-zA-Z]+"\sGAMEKIND="[_a-zA-Z]+"\s + TABLECURRENCY="(?P[A-Z]+)"\s + LIMIT="(?PNL|PL)"\s + STAKES="(?P[.0-9]+)/(?P[.0-9]+)"\s + DATE="(?P[0-9]+)"\s + (TABLETOURNEYID=""\s)? + WIN="[.0-9]+"\sLOSS="[.0-9]+" + """, re.MULTILINE| re.VERBOSE) re_SplitHands = re.compile('') re_HandInfo = re.compile("^Table \'(?P
[- a-zA-Z]+)\'(?P.+?$)?", re.MULTILINE) re_Button = re.compile('\n\n\n