Commit 2653098b authored by Koen Martens's avatar Koen Martens

Add new gcg calendar

parent d9887936
......@@ -10,15 +10,15 @@ from datetime import timedelta
class GcgFetcher(IcalFetcher):
def __init__(self, eventlist, webcache=None):
super(GcgFetcher,self).__init__(
"http://www.brownbearsw.com/cal/gcgevents?Op=iCalSubscribe",
"https://calendar.google.com/calendar/ical/l1ubkuairsuu4icjm2574j5n8o%40group.calendar.google.com/public/basic.ics",
[ Category("grid-gcg") ],
eventlist,
webcache,
GcgHelper()
)
self.webcache = webcache
self.minexpiry = 3000
self.maxexpiry = 5000
self.minexpiry = 1000
self.maxexpiry = 1800
if __name__=='__main__':
from lib.webcache import WebCache
......
......@@ -15,6 +15,10 @@ class GcgHelper(RegionHelper):
re.compile("Starlight Mall", flags=re.I) : "Alabo Falls",
}
bad_title = [
re.compile("Submission Deadline", flags=re.I),
]
def findRegion(self, data):
if data==None:
return None
......@@ -33,6 +37,10 @@ class GcgHelper(RegionHelper):
if event.title == "(open 24/7) Labyrinth Walk by Dragon Ronin":
return None
for exp in GcgHelper.bad_title:
if exp.search(event.title)!=None:
return None
event = super(GcgHelper, self).customizeEvent(event)
if event.hgurl!=None and GcgHelper.hgre.match(event.hgurl)==None:
......
......@@ -14,6 +14,7 @@
</div>
<div class="mainrow" id="news">
<div class="newsitem">2017-03-15: New grid - The Encore Escape - added</div>
<div class="newsitem">2017-03-15: Updated Great Canadian Grid calendar</div>
<div class="newsitem">2017-01-24: Added OneMoreGrid.com's event calendar</div>
<div class="newsitem">2016-11-04: Added Island Oasis Grid events</div>
<div class="newsitem">2016-10-29: New version of in-world board, 0.8, released</div>
......
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