summaryrefslogtreecommitdiff
path: root/plugin.video.mediathek/mediathek/factory.py
diff options
context:
space:
mode:
Diffstat (limited to 'plugin.video.mediathek/mediathek/factory.py')
-rw-r--r--plugin.video.mediathek/mediathek/factory.py42
1 files changed, 42 insertions, 0 deletions
diff --git a/plugin.video.mediathek/mediathek/factory.py b/plugin.video.mediathek/mediathek/factory.py
new file mode 100644
index 0000000..7bcdb96
--- /dev/null
+++ b/plugin.video.mediathek/mediathek/factory.py
@@ -0,0 +1,42 @@
+# -*- coding: utf-8 -*-
+#-------------LicenseHeader--------------
+# plugin.video.Mediathek - Gives access to most video-platforms from German public service broadcasters
+# Copyright (C) 2010 Raptor 2101 [raptor2101@gmx.de]
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+from mediathek.wdr import *
+from mediathek.ard import *
+from mediathek.zdf import *
+from mediathek.arte import *
+from mediathek.dreisat import *
+from mediathek.orf import *
+from mediathek.ndr import *
+from mediathek.kika import *
+
+class MediathekFactory(object):
+ def __init__(self):
+ self.avaibleMediathekes = {
+ ARDMediathek.name():ARDMediathek,
+ ZDFMediathek.name():ZDFMediathek,
+ ARTEMediathek.name():ARTEMediathek,
+ DreiSatMediathek.name():DreiSatMediathek,
+ ORFMediathek.name():ORFMediathek,
+ NDRMediathek.name():NDRMediathek,
+ KIKA.name():KIKA
+ }
+ def getAvaibleMediathekTypes(self):
+ return sorted(self.avaibleMediathekes.keys())
+
+ def getMediathek(self,mediathekName, gui):
+ return self.avaibleMediathekes[mediathekName](gui);