From b3edd35ecfa6fba6623ceea1c10c759b357cee10 Mon Sep 17 00:00:00 2001 From: Sven Slootweg Date: Wed, 30 Jan 2013 20:41:11 +0100 Subject: [PATCH] Add support for lectures and sandboxes --- frontend/classes/item.php | 4 ++++ updater/shared/scraper.py | 1 + 2 files changed, 5 insertions(+) diff --git a/frontend/classes/item.php b/frontend/classes/item.php index 3bd9004..e02c729 100644 --- a/frontend/classes/item.php +++ b/frontend/classes/item.php @@ -87,6 +87,10 @@ class Item extends CPHPDatabaseRecordClass return "book"; case 9: return "audiobook"; + case 10: + return "lecture"; + case 11: + return "sandbox"; default: return "unknown"; } diff --git a/updater/shared/scraper.py b/updater/shared/scraper.py index 649c666..594be7b 100644 --- a/updater/shared/scraper.py +++ b/updater/shared/scraper.py @@ -10,6 +10,7 @@ class Scraper(object): BOOK = 8 AUDIOBOOK = 9 LECTURE = 10 + SANDBOX = 11 provider_id = 0