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):
[ Category("grid-arcana") ],
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)
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 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 class="mainrow" id="menu">
......@@ -109,6 +109,7 @@ If, for some reason, an ical feed or json provider is not an option (or there is
<li><a href="">Third Rock Grid</a></li>
<li><a href="">VHS Goslar</a></li>
<li><a href="">ZanGrid</a></li>
<li><a href="">Arcana</a></li>
<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