Commit c33e36b8 authored by Koen Martens's avatar Koen Martens

Add OneMoreGrid

parent a5612e64
import requests
from lib.event import Event
from fetcher.icalfetcher import IcalFetcher
import icalendar
from lib.category import Category
from helper.helper import Helper
class OneMoreGridFetcher(IcalFetcher):
def __init__(self, eventlist, webcache=None):
super(OneMoreGridFetcher,self).__init__(
"https://www.google.com/calendar/ical/8re6r0l486d4fu08s1os96r9o8%40group.calendar.google.com/public/basic.ics",
[Category("grid-onemoregrid")],
eventlist,
webcache,
Helper()
)
self.webcache = webcache
self.minexpiry = 1000
self.maxexpirty = 1800
if __name__=='__main__':
from lib.webcache import WebCache
from lib.eventlist import EventList
eventlist = EventList()
cache = WebCache("data/test_omg.cache")
f = OneMoreGridFetcher(eventlist, cache)
f.fetch()
cache.flush()
for ev in eventlist:
print str(ev)
......@@ -128,6 +128,7 @@
case "digiworldz": rv = "DigiWorldz"; break;
case "refuge": rv = "Refuge Grid"; break;
case "narasnook": rv = "Nara's Nook"; break;
case "onemoregrid": rv = "OneMoreGrid"; break;
case "jog": rv = "Japan Open Grid"; break;
case "arcana": rv = "Arcana"; break;
case "thirdlife": rv = "3rdLifeGrid"; break;
......
......@@ -13,6 +13,7 @@
<span id="headerHYP">HYP</span><span id="headerEvents">Events</span>
</div>
<div class="mainrow" id="news">
<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>
<div class="newsitem">2016-09-19: Added calendar from 3rdLifeGrid</div>
......@@ -103,6 +104,7 @@ If, for some reason, an ical feed or json provider is not an option (or there is
<li><a href="https://hypergrid.org/">Metropolis</a></li>
<li><a href="http://www.narasnook.com/">Naras Nook</a></li>
<li><a href="http://nextlife-world.de/">Nextlife-World</a></li>
<li><a href="http://onemoregrid.com/">OneMoreGrid</a></li>
<li><a href="http://opensimworld.com/">OpenSimWorld</a></li>
<li><a href="http://www.phaandoria.de/">Phaandoria grid</a></li>
<li><a href="http://www.piratesatoll.com/">Pirates Atoll (Digiworldz)</a></li>
......
......@@ -50,6 +50,7 @@ fetchers = [
("nextlifefetcher", "NextLifeFetcher", 0),
("piratesatollfetcher", "PiratesAtollFetcher", 0),
("narasnookfetcher", "NarasNookFetcher", 0),
("omgfetcher", "OneMoreGridFetcher", 0),
("miscfetcher", "MiscFetcher", 0),
("opensimworldfetcher", "OpenSimWorldFetcher", 0),
]
......
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