forked from platypush/platypush
Fabio Manganiello
ce882381c0
- Support for custom PopcornTime API mirror/base URL. - Full support for TV series search. - Fixed torrent search (now using a different PopcornTime API mirror). - Migrated SASS engine from `node-sass` (currently deprecated and broken on Node 16) to `sass`. - Fixed alignment of Z-Wave UI header on Chrome/Webkit.
30 lines
821 B
Python
30 lines
821 B
Python
import logging
|
|
from typing import Optional
|
|
|
|
from .. import MediaPlugin
|
|
|
|
|
|
class MediaSearcher:
|
|
"""
|
|
Base class for media searchers
|
|
"""
|
|
|
|
def __init__(self, *args, media_plugin: Optional[MediaPlugin] = None, **kwargs):
|
|
self.logger = logging.getLogger(self.__class__.__name__)
|
|
self.media_plugin = media_plugin
|
|
|
|
def search(self, query, *args, **kwargs):
|
|
raise NotImplementedError('The search method should be implemented ' +
|
|
'by a derived class')
|
|
|
|
|
|
from .local import LocalMediaSearcher
|
|
from .youtube import YoutubeMediaSearcher
|
|
from .torrent import TorrentMediaSearcher
|
|
from .plex import PlexMediaSearcher
|
|
|
|
__all__ = ['MediaSearcher', 'LocalMediaSearcher', 'TorrentMediaSearcher', 'YoutubeMediaSearcher', 'PlexMediaSearcher']
|
|
|
|
|
|
# vim:sw=4:ts=4:et:
|