Commit 71f50e65 authored by Koen Martens's avatar Koen Martens

Clean up gcg non-events, add kitely hints.

parent c6d95a6d
......@@ -26,6 +26,13 @@ class GcgHelper(RegionHelper):
return super(GcgHelper, self).findRegion(data)
def customizeEvent(self, event):
# these are not real events:
if event.title == "GCG Marketplace":
return None
if event.title == "(open 24/7) Labyrinth Walk by Dragon Ronin":
return None
event = super(GcgHelper, self).customizeEvent(event)
if event.hgurl!=None and GcgHelper.hgre.match(event.hgurl)==None:
......
......@@ -8,14 +8,22 @@ class KitelyHelper(Helper):
re.compile('Seanchai Library - Spaceworld', re.I) : 'grid.kitely.com:8002:Spaceworld',
re.compile('Seanchai' , re.I): 'grid.kitely.com:8002:Seanchai',
re.compile('^\s*$', re.I) : 'grid.kitely.com:8002:Kitely Welcome Center',
re.compile('^grid.kitely.com:8002:Never%20Ending%20Story$', re.I) : 'grid.kitely.com:8002:Never Ending Story',
re.compile('^Blues at the Junkyard with DJ Thunder$', re.I) : 'grid.kitely.com:8002:Cookie II',
}
titledict = {
re.compile('^LEN\s+-\s+English Drama', re.I) : 'grid.kitely.com:8002:Learn English Network Academy',
}
def customizeEvent(self, event):
event = super(KitelyHelper, self).customizeEvent(event)
if event.title=="Kitely Merchant Fair":
event.hgurl = "grid.kitely.com:8002:Kitely Hypergrid Merchant Fair"
elif event.hgurl!=None:
if event.title!=None:
for exp in KitelyHelper.titledict.keys():
if exp.search(event.title):
event.hgurl = KitelyHelper.titledict[exp]
if event.hgurl!=None:
for exp in KitelyHelper.dictionary.keys():
if exp.search(event.hgurl):
event.hgurl = KitelyHelper.dictionary[exp]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment