I was able to download a show that was hosted on soundcloud. It worked flawlessly :)
now i tried to to download a show that was hosted on mixcloud and i get following error message (attached)
somehow there’s a conflict with youtube-dl it seems (which I also have installed)
user@MBP-von-Martin ~ % nts https://www.nts.live/shows/malibu/episodes/malibu-14th-july-2021
downloading into: /Users/user/Downloads
[mixcloud] NTSRadio_united-in-flames-w-malibu-mssingno-14th-july-2021: Downloading JSON metadata
ERROR: NTSRadio_united-in-flames-w-malibu-mssingno-14th-july-2021: Failed to parse JSON (caused by JSONDecodeError('Expecting value: line 1 column 1 (char 0)')); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see https://yt-dl.org/update on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
File "/opt/homebrew/lib/python3.11/site-packages/youtube_dl/extractor/common.py", line 906, in _parse_json
return json.loads(json_string)
^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/[email protected]/3.11.4_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/json/__init__.py", line 346, in loads
return _default_decoder.decode(s)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/[email protected]/3.11.4_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/[email protected]/3.11.4_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/homebrew/lib/python3.11/site-packages/youtube_dl/YoutubeDL.py", line 815, in wrapper
return func(self, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/youtube_dl/YoutubeDL.py", line 836, in __extract_info
ie_result = ie.extract(url)
^^^^^^^^^^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/youtube_dl/extractor/common.py", line 534, in extract
ie_result = self._real_extract(url)
^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/youtube_dl/extractor/mixcloud.py", line 86, in _real_extract
cloudcast = self._call_api('cloudcast', '''audioLength
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/youtube_dl/extractor/mixcloud.py", line 26, in _call_api
return self._download_json(
^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/youtube_dl/extractor/common.py", line 895, in _download_json
res = self._download_json_handle(
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/youtube_dl/extractor/common.py", line 881, in _download_json_handle
return self._parse_json(
^^^^^^^^^^^^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/youtube_dl/extractor/common.py", line 910, in _parse_json
raise ExtractorError(errmsg, cause=ve)
youtube_dl.utils.ExtractorError: NTSRadio_united-in-flames-w-malibu-mssingno-14th-july-2021: Failed to parse JSON (caused by JSONDecodeError('Expecting value: line 1 column 1 (char 0)')); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see https://yt-dl.org/update on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/homebrew/bin/nts", line 8, in <module>
sys.exit(main())
^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/nts/cli.py", line 73, in main
url_matcher(arg)
File "/opt/homebrew/lib/python3.11/site-packages/nts/cli.py", line 52, in url_matcher
nts.download(url=url, quiet=options.quiet,
File "/opt/homebrew/lib/python3.11/site-packages/nts/downloader.py", line 89, in download
ydl.download([link])
File "/opt/homebrew/lib/python3.11/site-packages/youtube_dl/YoutubeDL.py", line 2068, in download
res = self.extract_info(
^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/youtube_dl/YoutubeDL.py", line 808, in extract_info
return self.__extract_info(url, ie, download, extra_info, process)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/youtube_dl/YoutubeDL.py", line 824, in wrapper
self.report_error(compat_str(e), e.format_traceback())
File "/opt/homebrew/lib/python3.11/site-packages/youtube_dl/YoutubeDL.py", line 628, in report_error
self.trouble(error_message, tb)
File "/opt/homebrew/lib/python3.11/site-packages/youtube_dl/YoutubeDL.py", line 598, in trouble
raise DownloadError(message, exc_info)
youtube_dl.utils.DownloadError: ERROR: NTSRadio_united-in-flames-w-malibu-mssingno-14th-july-2021: Failed to parse JSON (caused by JSONDecodeError('Expecting value: line 1 column 1 (char 0)')); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see https://yt-dl.org/update on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
user@MBP-von-Martin ~ % nts https://www.nts.live/shows/malibu/episodes/malibu-14th-july-2021
downloading into: /Users/user/Downloads
[mixcloud] NTSRadio_united-in-flames-w-malibu-mssingno-14th-july-2021: Downloading JSON metadata
ERROR: NTSRadio_united-in-flames-w-malibu-mssingno-14th-july-2021: Failed to parse JSON (caused by JSONDecodeError('Expecting value: line 1 column 1 (char 0)')); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see https://yt-dl.org/update on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
File "/opt/homebrew/lib/python3.11/site-packages/youtube_dl/extractor/common.py", line 906, in _parse_json
return json.loads(json_string)
^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/[email protected]/3.11.4_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/json/__init__.py", line 346, in loads
return _default_decoder.decode(s)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/[email protected]/3.11.4_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/[email protected]/3.11.4_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/homebrew/lib/python3.11/site-packages/youtube_dl/YoutubeDL.py", line 815, in wrapper
return func(self, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/youtube_dl/YoutubeDL.py", line 836, in __extract_info
ie_result = ie.extract(url)
^^^^^^^^^^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/youtube_dl/extractor/common.py", line 534, in extract
ie_result = self._real_extract(url)
^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/youtube_dl/extractor/mixcloud.py", line 86, in _real_extract
cloudcast = self._call_api('cloudcast', '''audioLength
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/youtube_dl/extractor/mixcloud.py", line 26, in _call_api
return self._download_json(
^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/youtube_dl/extractor/common.py", line 895, in _download_json
res = self._download_json_handle(
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/youtube_dl/extractor/common.py", line 881, in _download_json_handle
return self._parse_json(
^^^^^^^^^^^^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/youtube_dl/extractor/common.py", line 910, in _parse_json
raise ExtractorError(errmsg, cause=ve)
youtube_dl.utils.ExtractorError: NTSRadio_united-in-flames-w-malibu-mssingno-14th-july-2021: Failed to parse JSON (caused by JSONDecodeError('Expecting value: line 1 column 1 (char 0)')); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see https://yt-dl.org/update on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/homebrew/bin/nts", line 8, in <module>
sys.exit(main())
^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/nts/cli.py", line 73, in main
url_matcher(arg)
File "/opt/homebrew/lib/python3.11/site-packages/nts/cli.py", line 52, in url_matcher
nts.download(url=url, quiet=options.quiet,
File "/opt/homebrew/lib/python3.11/site-packages/nts/downloader.py", line 89, in download
ydl.download([link])
File "/opt/homebrew/lib/python3.11/site-packages/youtube_dl/YoutubeDL.py", line 2068, in download
res = self.extract_info(
^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/youtube_dl/YoutubeDL.py", line 808, in extract_info
return self.__extract_info(url, ie, download, extra_info, process)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/youtube_dl/YoutubeDL.py", line 824, in wrapper
self.report_error(compat_str(e), e.format_traceback())
File "/opt/homebrew/lib/python3.11/site-packages/youtube_dl/YoutubeDL.py", line 628, in report_error
self.trouble(error_message, tb)
File "/opt/homebrew/lib/python3.11/site-packages/youtube_dl/YoutubeDL.py", line 598, in trouble
raise DownloadError(message, exc_info)
youtube_dl.utils.DownloadError: ERROR: NTSRadio_united-in-flames-w-malibu-mssingno-14th-july-2021: Failed to parse JSON (caused by JSONDecodeError('Expecting value: line 1 column 1 (char 0)')); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see https://yt-dl.org/update on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
user@MBP-von-Martin ~ %