aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/extractor/telemundo.py
diff options
context:
space:
mode:
authorcoletdjnz <coletdjnz@protonmail.com>2023-07-09 13:23:02 +0530
committerpukkandan <pukkandan.ytdlp@gmail.com>2023-07-15 16:18:35 +0530
commit3d2623a898196640f7cc0fc8b70118ff19e6925d (patch)
treea0dc9fe53959ca673294902f7a553f55706cc5f3 /yt_dlp/extractor/telemundo.py
parent227bf1a33be7b89cd7d44ad046844c4ccba104f4 (diff)
downloadhypervideo-pre-3d2623a898196640f7cc0fc8b70118ff19e6925d.tar.lz
hypervideo-pre-3d2623a898196640f7cc0fc8b70118ff19e6925d.tar.xz
hypervideo-pre-3d2623a898196640f7cc0fc8b70118ff19e6925d.zip
[compat, networking] Deprecate old functions (#2861)
Authored by: coletdjnz, pukkandan
Diffstat (limited to 'yt_dlp/extractor/telemundo.py')
-rw-r--r--yt_dlp/extractor/telemundo.py9
1 files changed, 3 insertions, 6 deletions
diff --git a/yt_dlp/extractor/telemundo.py b/yt_dlp/extractor/telemundo.py
index 88f29cb83..54e74a6c0 100644
--- a/yt_dlp/extractor/telemundo.py
+++ b/yt_dlp/extractor/telemundo.py
@@ -1,9 +1,6 @@
from .common import InfoExtractor
-from ..utils import (
- try_get,
- unified_timestamp,
- HEADRequest,
-)
+from ..networking import HEADRequest
+from ..utils import try_get, unified_timestamp
class TelemundoIE(InfoExtractor):
@@ -38,7 +35,7 @@ class TelemundoIE(InfoExtractor):
m3u8_url = self._request_webpage(HEADRequest(
redirect_url + '?format=redirect&manifest=m3u&format=redirect&Tracking=true&Embedded=true&formats=MPEG4'),
- video_id, 'Processing m3u8').geturl()
+ video_id, 'Processing m3u8').url
formats = self._extract_m3u8_formats(m3u8_url, video_id, 'mp4')
date = unified_timestamp(try_get(
metadata, lambda x: x['props']['initialState']['video']['associatedPlaylists'][0]['videos'][0]['datePublished'].split(' ', 1)[1]))