OnGame: Modify re_HandInfo to parse SPEED tables
This commit is contained in:
		
							parent
							
								
									e570e34f28
								
							
						
					
					
						commit
						2da7dc8495
					
				|  | @ -68,17 +68,19 @@ class OnGame(HandHistoryConverter): | |||
|     # ***** End of hand R5-75443872-57 ***** | ||||
|     re_SplitHands = re.compile(u'\*\*\*\*\*\sEnd\sof\shand\s[-A-Z\d]+.*\n(?=\*)') | ||||
| 
 | ||||
|     #TODO: detect play money | ||||
|     # "Play money" rather than "Real money" and set currency accordingly | ||||
|     re_HandInfo = re.compile(u""" | ||||
|             \*\*\*\*\*\sHistory\sfor\shand\s(?P<HID>[-A-Z\d]+).* | ||||
|             Start\shand:\s(?P<DATETIME>.*) | ||||
|             Table:\s(?P<TABLE>[-\'\w\s]+)\s\[\d+\]\s\( | ||||
|             Table:\s(\[SPEED\]\s)?(?P<TABLE>[-\'\w\s]+)\s\[\d+\]\s\( | ||||
|             ( | ||||
|             (?P<LIMIT>NO_LIMIT|Limit|LIMIT|Pot\sLimit|POT_LIMIT)\s | ||||
|             (?P<GAME>TEXAS_HOLDEM|OMAHA_HI|SEVEN_CARD_STUD|SEVEN_CARD_STUD_HI_LO|RAZZ|FIVE_CARD_DRAW)\s | ||||
|             (?P<CURRENCY>%(LS)s|)?(?P<SB>[.0-9]+)/ | ||||
|             (%(LS)s)?(?P<BB>[.0-9]+) | ||||
|             )? | ||||
|             """ % substitutions, re.MULTILINE|re.DOTALL|re.VERBOSE) #TODO: detect play money (identified by "Play money" rather than "Real money" and set currency accordingly | ||||
|             """ % substitutions, re.MULTILINE|re.DOTALL|re.VERBOSE) | ||||
| 
 | ||||
|     re_TailSplitHands = re.compile(u'(\*\*\*\*\*\sEnd\sof\shand\s[-A-Z\d]+.*\n)(?=\*)') | ||||
|     re_Button       = re.compile('Button: seat (?P<BUTTON>\d+)', re.MULTILINE)  # Button: seat 2 | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user