from plugin.svtplay.factories.fetchers.program import SvtProgramFetcher
from plugin.svtplay.factories.parsers.program import SvtProgramParser


class SvtProgramFactory(object):

    def get(self, name):
        fetcher = SvtProgramFetcher()
        parser = SvtProgramParser()

        return parser.parse(name, fetcher.get_page_string(name))
