Commit 6a93232f authored by Koen Martens's avatar Koen Martens

add arcana

parent 324e0e1a
import requests
from lib.event import Event
from fetcher.icalfetcher import IcalFetcher
import icalendar
from lib.category import Category
from fetcher.icalfetcher import IcalFetcher
from helper.helper import Helper
from datetime import timedelta
class ArcanaFetcher(IcalFetcher):
def __init__(self, eventlist, webcache=None):
super(ArcanaFetcher,self).__init__(
"http://www.brownbearsw.com/cal/Events.Calendar?Op=iCalSubscribe",
[ Category("grid-arcana") ],
eventlist,
webcache,
Helper()
)
self.webcache = webcache
self.minexpiry = 3000
self.maxexpiry = 5000
if __name__=='__main__':
from lib.webcache import WebCache
from lib.eventlist import EventList
eventlist = EventList()
cache = WebCache('data/test_arcana.pck')
f = ArcanaFetcher(eventlist, cache)
f.fetch()
cache.flush()
for ev in eventlist:
print str(ev)
......@@ -129,6 +129,7 @@
case "refuge": rv = "Refuge Grid"; break;
case "narasnook": rv = "Nara's Nook"; break;
case "jog": rv = "Japan Open Grid"; break;
case "arcana": rv = "Arcana"; break;
default: rv = null; break;
}
return rv;
......
......@@ -13,12 +13,12 @@
<span id="headerHYP">HYP</span><span id="headerEvents">Events</span>
</div>
<div class="mainrow" id="news">
<div class="newsitem">2016-02-03: New calendar from the Arcana grid added</div>
<div class="newsitem">2015-12-19: Added calendar from Japan Open Grid</div>
<div class="newsitem">2015-12-17: Calendar from VHS (Volks Hoch Schule) added</div>
<div class="newsitem">2015-12-16: Added Nara's Nook calendar, contains events for other grids too</div>
<div class="newsitem">2015-12-03: Added the ZanGrid event calendar</div>
<div class="newsitem">2015-11-24: Added calendar from Exo-Life Virtual World and Nextlife-World (has events for Dorenas World and Anettes Welt too)</div>
<div class="newsitem">2015-11-21: Added Lighthouse Point calendar</div>
</div>
<div class="mainrow" id="menu">
<ul>
......@@ -109,6 +109,7 @@ If, for some reason, an ical feed or json provider is not an option (or there is
<li><a href="http://3rdrockgrid.com/">Third Rock Grid</a></li>
<li><a href="http://www.vhs-sl.de/fr_hypergrid-eventkalender.htm">VHS Goslar</a></li>
<li><a href="http://zangrid.ch/">ZanGrid</a></li>
<li><a href="http://opensimworld.com/hop/76099-Arcana">Arcana</a></li>
</ul>
<h2>Why isn't grid XYZ on the calendar?</h2>
......
......@@ -27,6 +27,7 @@ from lib.eventlist import EventList
# will be discarded
fetchers = [
# ("gridtalkfetcher", "GridTalkFetcher", 0),
("arcanafetcher", "ArcanaFetcher", 0),
("japanopenfetcher", "JapanOpenFetcher", 0),
("oscc15fetcher", "OSCC15Fetcher", 0),
("zangridfetcher", "ZanGridFetcher", 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