aboutsummaryrefslogtreecommitdiffstats
path: root/hypervideo_dl/extractor/tenplay.py
diff options
context:
space:
mode:
Diffstat (limited to 'hypervideo_dl/extractor/tenplay.py')
-rw-r--r--hypervideo_dl/extractor/tenplay.py9
1 files changed, 3 insertions, 6 deletions
diff --git a/hypervideo_dl/extractor/tenplay.py b/hypervideo_dl/extractor/tenplay.py
index 633032e..c7097cf 100644
--- a/hypervideo_dl/extractor/tenplay.py
+++ b/hypervideo_dl/extractor/tenplay.py
@@ -2,11 +2,8 @@ from datetime import datetime
import base64
from .common import InfoExtractor
-from ..utils import (
- HEADRequest,
- int_or_none,
- urlencode_postdata,
-)
+from ..networking import HEADRequest
+from ..utils import int_or_none, urlencode_postdata
class TenPlayIE(InfoExtractor):
@@ -94,7 +91,7 @@ class TenPlayIE(InfoExtractor):
data.get('playbackApiEndpoint'), content_id, 'Downloading video JSON',
headers=headers).get('source')
m3u8_url = self._request_webpage(HEADRequest(
- _video_url), content_id).geturl()
+ _video_url), content_id).url
if '10play-not-in-oz' in m3u8_url:
self.raise_geo_restricted(countries=['AU'])
formats = self._extract_m3u8_formats(m3u8_url, content_id, 'mp4')