aboutsummaryrefslogtreecommitdiff
path: root/yt_dlp/extractor/dtube.py
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2024-04-01 05:31:09 +0530
committerGitHub <noreply@github.com>2024-04-01 05:31:09 +0530
commite3a3ed8a981d9395c4859b6ef56cd02bc3148db2 (patch)
tree2f61a343fd48af1ea30ea1edea365d8c85e7bddb /yt_dlp/extractor/dtube.py
parenta25a424323267e3f6f9f63c0b62df499bd7b8d46 (diff)
[ie, cleanup] No `from` stdlib imports in extractors (#8978)
Diffstat (limited to 'yt_dlp/extractor/dtube.py')
-rw-r--r--yt_dlp/extractor/dtube.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/yt_dlp/extractor/dtube.py b/yt_dlp/extractor/dtube.py
index bb06c42be..5ea014cf0 100644
--- a/yt_dlp/extractor/dtube.py
+++ b/yt_dlp/extractor/dtube.py
@@ -1,5 +1,5 @@
import json
-from socket import timeout
+import socket
from .common import InfoExtractor
from ..utils import (
@@ -56,7 +56,7 @@ class DTubeIE(InfoExtractor):
try:
self.to_screen('%s: Checking %s video format URL' % (video_id, format_id))
self._downloader._opener.open(video_url, timeout=5).close()
- except timeout:
+ except socket.timeout:
self.to_screen(
'%s: %s URL is invalid, skipping' % (video_id, format_id))
continue