File "/storage/.kodi/addons/plugin.video.testaddon/addon.py", line 9, in
from YDStreamExtractor import getVideoInfo
File "/storage/.kodi/addons/script.module.youtube.dl/lib/YDStreamExtractor.py", line 8, in
import YoutubeDLWrapper
File "/storage/.kodi/addons/script.module.youtube.dl/lib/YoutubeDLWrapper.py", line 13, in
from youtube_dl.utils import std_headers, DownloadError # noqa E402
File "/storage/.kodi/addons/script.module.youtube.dl/lib/youtube_dl/init.py", line 15, in
from .options import (
File "/storage/.kodi/addons/script.module.youtube.dl/lib/youtube_dl/options.py", line 7, in
from .downloader.external import list_external_downloaders
File "/storage/.kodi/addons/script.module.youtube.dl/lib/youtube_dl/downloader/init.py", line 3, in
from .common import FileDownloader
File "/storage/.kodi/addons/script.module.youtube.dl/lib/youtube_dl/downloader/common.py", line 9, in
from ..utils import (
File "/storage/.kodi/addons/script.module.youtube.dl/lib/youtube_dl/utils.py", line 60, in
from .socks import (
File "/storage/.kodi/addons/script.module.youtube.dl/lib/youtube_dl/socks.py", line 29, in
SOCKS4_DEFAULT_DSTIP = compat_struct_pack('!BBBB', 0, 0, 0, 0xFF)
TypeError: Struct() argument 1 must be string, not unicode
just for testing purposes when i comment out the line 29
Unfortunately, this is an issue in the youtube-dl code. This addon module is just a wrapper around this, so you would need to duplicate this via youtube-dl on the command line and report it to youtube-dl.
File "/storage/.kodi/addons/plugin.video.testaddon/addon.py", line 9, in
from YDStreamExtractor import getVideoInfo
File "/storage/.kodi/addons/script.module.youtube.dl/lib/YDStreamExtractor.py", line 8, in
import YoutubeDLWrapper
File "/storage/.kodi/addons/script.module.youtube.dl/lib/YoutubeDLWrapper.py", line 13, in
from youtube_dl.utils import std_headers, DownloadError # noqa E402
File "/storage/.kodi/addons/script.module.youtube.dl/lib/youtube_dl/init.py", line 15, in
from .options import (
File "/storage/.kodi/addons/script.module.youtube.dl/lib/youtube_dl/options.py", line 7, in
from .downloader.external import list_external_downloaders
File "/storage/.kodi/addons/script.module.youtube.dl/lib/youtube_dl/downloader/init.py", line 3, in
from .common import FileDownloader
File "/storage/.kodi/addons/script.module.youtube.dl/lib/youtube_dl/downloader/common.py", line 9, in
from ..utils import (
File "/storage/.kodi/addons/script.module.youtube.dl/lib/youtube_dl/utils.py", line 60, in
from .socks import (
File "/storage/.kodi/addons/script.module.youtube.dl/lib/youtube_dl/socks.py", line 29, in
SOCKS4_DEFAULT_DSTIP = compat_struct_pack('!BBBB', 0, 0, 0, 0xFF)
TypeError: Struct() argument 1 must be string, not unicode
just for testing purposes when i comment out the line 29
SOCKS4_DEFAULT_DSTIP = compat_struct_pack('!BBBB', 0, 0, 0, 0xFF)
it works again.