|
@@ -23,10 +23,12 @@ import json
|
|
import socket
|
|
import socket
|
|
|
|
|
|
import youtube_dl.YoutubeDL
|
|
import youtube_dl.YoutubeDL
|
|
-from youtube_dl.utils import (
|
|
|
|
|
|
+from youtube_dl.compat import (
|
|
compat_http_client,
|
|
compat_http_client,
|
|
compat_urllib_error,
|
|
compat_urllib_error,
|
|
compat_HTTPError,
|
|
compat_HTTPError,
|
|
|
|
+)
|
|
|
|
+from youtube_dl.utils import (
|
|
DownloadError,
|
|
DownloadError,
|
|
ExtractorError,
|
|
ExtractorError,
|
|
format_bytes,
|
|
format_bytes,
|