mirror of
https://github.com/spaam/svtplay-dl.git
synced 2024-11-30 15:14:14 +01:00
19 lines
576 B
Python
19 lines
576 B
Python
import re
|
|
|
|
from svtplay_dl.error import ServiceError
|
|
from svtplay_dl.fetcher.hls import hlsparse
|
|
from svtplay_dl.service import OpenGraphThumbMixin
|
|
from svtplay_dl.service import Service
|
|
|
|
|
|
class Efn(Service, OpenGraphThumbMixin):
|
|
supported_domains_re = ["www.efn.se"]
|
|
|
|
def get(self):
|
|
match = re.search('data-hls="([^"]+)"', self.get_urldata())
|
|
if not match:
|
|
yield ServiceError("Cant find video info")
|
|
return
|
|
|
|
yield from hlsparse(self.config, self.http.request("get", match.group(1)), match.group(1), output=self.output)
|