# ex:ts=4:sw=4:sts=4:et # -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- from __future__ import absolute_import import re import json import copy from svtplay_dl.service import Service, OpenGraphThumbMixin from svtplay_dl.utils.urllib import urlparse from svtplay_dl.fetcher.hds import hdsparse from svtplay_dl.fetcher.hls import hlsparse from svtplay_dl.subtitle import subtitle from svtplay_dl.error import ServiceError class Nrk(Service, OpenGraphThumbMixin): supported_domains = ['nrk.no', 'tv.nrk.no', 'p3.no', 'tv.nrksuper.no'] def get(self): if self.exclude(): yield ServiceError("Excluding video") return # First, fint the video ID from the html document video_id = re.search("