From c8d79cde211f565e585d9327543940263a60e853 Mon Sep 17 00:00:00 2001 From: Ruud Date: Thu, 15 Aug 2013 23:47:07 +0200 Subject: [PATCH] Add base for TV media type --- couchpotato/core/media/tv/__init__.py | 0 couchpotato/core/media/tv/_base/__init__.py | 6 ++++++ couchpotato/core/media/tv/_base/main.py | 13 +++++++++++++ couchpotato/core/media/tv/searcher/__init__.py | 7 +++++++ couchpotato/core/media/tv/searcher/main.py | 12 ++++++++++++ 5 files changed, 38 insertions(+) create mode 100644 couchpotato/core/media/tv/__init__.py create mode 100644 couchpotato/core/media/tv/_base/__init__.py create mode 100644 couchpotato/core/media/tv/_base/main.py create mode 100644 couchpotato/core/media/tv/searcher/__init__.py create mode 100644 couchpotato/core/media/tv/searcher/main.py diff --git a/couchpotato/core/media/tv/__init__.py b/couchpotato/core/media/tv/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/couchpotato/core/media/tv/_base/__init__.py b/couchpotato/core/media/tv/_base/__init__.py new file mode 100644 index 0000000..91d3708 --- /dev/null +++ b/couchpotato/core/media/tv/_base/__init__.py @@ -0,0 +1,6 @@ +from .main import TVBase + +def start(): + return TVBase() + +config = [] diff --git a/couchpotato/core/media/tv/_base/main.py b/couchpotato/core/media/tv/_base/main.py new file mode 100644 index 0000000..1436371 --- /dev/null +++ b/couchpotato/core/media/tv/_base/main.py @@ -0,0 +1,13 @@ +from couchpotato.core.logger import CPLog +from couchpotato.core.media import MediaBase + +log = CPLog(__name__) + + +class TVBase(MediaBase): + + identifier = 'tv' + + def __init__(self): + super(TVBase, self).__init__() + diff --git a/couchpotato/core/media/tv/searcher/__init__.py b/couchpotato/core/media/tv/searcher/__init__.py new file mode 100644 index 0000000..bf5dbc2 --- /dev/null +++ b/couchpotato/core/media/tv/searcher/__init__.py @@ -0,0 +1,7 @@ +from .main import TVSearcher +import random + +def start(): + return TVSearcher() + +config = [] diff --git a/couchpotato/core/media/tv/searcher/main.py b/couchpotato/core/media/tv/searcher/main.py new file mode 100644 index 0000000..07f8963 --- /dev/null +++ b/couchpotato/core/media/tv/searcher/main.py @@ -0,0 +1,12 @@ +from couchpotato.core.logger import CPLog +from couchpotato.core.plugins.base import Plugin + +log = CPLog(__name__) + + +class TVSearcher(Plugin): + + in_progress = False + + def __init__(self): + pass