Betfair: Fix for Betfair 2.0
The Betfair poker site has changed hands/software and now has a completely different hand history coverter. Starting the process of making it work
This commit is contained in:
		
							parent
							
								
									7c5f4645f2
								
							
						
					
					
						commit
						5d2e7cb320
					
				|  | @ -44,8 +44,9 @@ class Betfair(HandHistoryConverter): | |||
|     siteId   = 7 # Needs to match id entry in Sites database | ||||
| 
 | ||||
|     # Static regexes | ||||
|     #re_SplitHands    = re.compile(r'\n\n+') # Betfair 1.0 version | ||||
|     re_GameInfo      = re.compile("^(?P<LIMIT>NL|PL|) (?P<CURRENCY>\$|)?(?P<SB>[.0-9]+)/\$?(?P<BB>[.0-9]+) (?P<GAME>(Texas Hold\'em|Omaha Hi|Razz))", re.MULTILINE) | ||||
|     re_SplitHands    = re.compile(r'\n\n+') | ||||
|     re_SplitHands    = re.compile(r'End of hand .{2}-\d{7,9}-\d+ \*\*\*\*\*\n') | ||||
|     re_HandInfo      = re.compile("\*\*\*\*\* Betfair Poker Hand History for Game (?P<HID>[0-9]+) \*\*\*\*\*\n(?P<LIMIT>NL|PL|) (?P<CURRENCY>\$|)?(?P<SB>[.0-9]+)/\$?(?P<BB>[.0-9]+) (?P<GAMETYPE>(Texas Hold\'em|Omaha Hi|Razz)) - (?P<DATETIME>[a-zA-Z]+, [a-zA-Z]+ \d+, \d\d:\d\d:\d\d GMT \d\d\d\d)\nTable (?P<TABLE>[ a-zA-Z0-9]+) \d-max \(Real Money\)\nSeat (?P<BUTTON>[0-9]+)", re.MULTILINE) | ||||
|     re_Button        = re.compile(ur"^Seat (?P<BUTTON>\d+) is the button", re.MULTILINE) | ||||
|     re_PlayerInfo    = re.compile("Seat (?P<SEAT>[0-9]+): (?P<PNAME>.*)\s\(\s(\$(?P<CASH>[.0-9]+)) \)") | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user