firsttris / plugin.video.sendtokodi

:tv: plays various stream sites on kodi using youtube-dl
MIT License
121 stars 27 forks source link

Arte.tv not playing any longer #64

Closed laurentbacall closed 2 years ago

laurentbacall commented 2 years ago

Hi, below is the kodi.log excerpt. Many thanks is advance for looking into it.

2022-05-30 20:54:48.777 T:27922   ERROR <general>: ERROR: [ArteTV] 100293-010-A: Unable to download JSON metadata: HTTP Error 404: Not Found (caused by <HTTPError 404: 'Not Found'>); please report this issue on  https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using  yt-dlp -U

2022-05-30 20:54:48.780 T:27922   ERROR <general>: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                                    - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                                   Error Type: <class 'lib.yt_dlp.utils.DownloadError'>
                                                   Error Contents: ERROR: [ArteTV] 100293-010-A: Unable to download JSON metadata: HTTP Error 404: Not Found (caused by <HTTPError 404: 'Not Found'>); please report this issue on  https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using  yt-dlp -U
                                                   Traceback (most recent call last):
                                                     File "/home/osmc/.kodi/addons/plugin.video.sendtokodi/lib/yt_dlp/extractor/common.py", line 767, in _request_webpage
                                                       return self._downloader.urlopen(url_or_request)
                                                     File "/home/osmc/.kodi/addons/plugin.video.sendtokodi/lib/yt_dlp/YoutubeDL.py", line 3614, in urlopen
                                                       return self._opener.open(req, timeout=self._socket_timeout)
                                                     File "/usr/lib/python3.7/urllib/request.py", line 531, in open
                                                       response = meth(req, response)
                                                     File "/usr/lib/python3.7/urllib/request.py", line 641, in http_response
                                                       'http', request, response, code, msg, hdrs)
                                                     File "/usr/lib/python3.7/urllib/request.py", line 569, in error
                                                       return self._call_chain(*args)
                                                     File "/usr/lib/python3.7/urllib/request.py", line 503, in _call_chain
                                                       result = func(*args)
                                                     File "/usr/lib/python3.7/urllib/request.py", line 649, in http_error_default
                                                       raise HTTPError(req.full_url, code, msg, hdrs, fp)
                                                   urllib.error.HTTPError: HTTP Error 404: Not Found

                                                   During handling of the above exception, another exception occurred:

                                                   Traceback (most recent call last):
                                                     File "/home/osmc/.kodi/addons/plugin.video.sendtokodi/lib/yt_dlp/extractor/common.py", line 641, in extract
                                                       ie_result = self._real_extract(url)
                                                     File "/home/osmc/.kodi/addons/plugin.video.sendtokodi/lib/yt_dlp/extractor/arte.py", line 55, in _real_extract
                                                       '%s/config/%s/%s' % (self._API_BASE, lang, video_id), video_id)
                                                     File "/home/osmc/.kodi/addons/plugin.video.sendtokodi/lib/yt_dlp/extractor/common.py", line 1033, in _download_json
                                                       expected_status=expected_status)
                                                     File "/home/osmc/.kodi/addons/plugin.video.sendtokodi/lib/yt_dlp/extractor/common.py", line 1011, in _download_json_handle
                                                       expected_status=expected_status)
                                                     File "/home/osmc/.kodi/addons/plugin.video.sendtokodi/lib/yt_dlp/extractor/common.py", line 800, in _download_webpage_handle
                                                       urlh = self._request_webpage(url_or_request, video_id, note, errnote, fatal, data=data, headers=headers, query=query, expected_status=expected_status)
                                                     File "/home/osmc/.kodi/addons/plugin.video.sendtokodi/lib/yt_dlp/extractor/common.py", line 785, in _request_webpage
                                                       raise ExtractorError(errmsg, cause=err)
                                                   lib.yt_dlp.utils.ExtractorError: Unable to download JSON metadata: HTTP Error 404: Not Found (caused by <HTTPError 404: 'Not Found'>); please report this issue on  https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using  yt-dlp -U

                                                   During handling of the above exception, another exception occurred:

                                                   Traceback (most recent call last):
                                                     File "/home/osmc/.kodi/addons/plugin.video.sendtokodi/lib/yt_dlp/YoutubeDL.py", line 1403, in wrapper
                                                       return func(self, *args, **kwargs)
                                                     File "/home/osmc/.kodi/addons/plugin.video.sendtokodi/lib/yt_dlp/YoutubeDL.py", line 1473, in __extract_info
                                                       ie_result = ie.extract(url)
                                                     File "/home/osmc/.kodi/addons/plugin.video.sendtokodi/lib/yt_dlp/extractor/common.py", line 667, in extract
                                                       raise type(e)(e.orig_msg, **kwargs)
                                                   lib.yt_dlp.utils.ExtractorError: [ArteTV] 100293-010-A: Unable to download JSON metadata: HTTP Error 404: Not Found (caused by <HTTPError 404: 'Not Found'>); please report this issue on  https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using  yt-dlp -U

                                                   During handling of the above exception, another exception occurred:

                                                   Traceback (most recent call last):
                                                     File "/home/osmc/.kodi/addons/plugin.video.sendtokodi/service.py", line 144, in <module>
                                                       result = ydl.extract_info(url, download=False)
                                                     File "/home/osmc/.kodi/addons/plugin.video.sendtokodi/lib/yt_dlp/YoutubeDL.py", line 1394, in extract_info
                                                       return self.__extract_info(url, self.get_info_extractor(ie_key), download, extra_info, process)
                                                     File "/home/osmc/.kodi/addons/plugin.video.sendtokodi/lib/yt_dlp/YoutubeDL.py", line 1421, in wrapper
                                                       self.report_error(str(e), e.format_traceback())
                                                     File "/home/osmc/.kodi/addons/plugin.video.sendtokodi/lib/yt_dlp/YoutubeDL.py", line 943, in report_error
                                                       self.trouble(f'{self._format_err("ERROR:", self.Styles.ERROR)} {message}', *args, **kwargs)
                                                     File "/home/osmc/.kodi/addons/plugin.video.sendtokodi/lib/yt_dlp/YoutubeDL.py", line 886, in trouble
                                                       raise DownloadError(message, exc_info)
                                                   lib.yt_dlp.utils.DownloadError: ERROR: [ArteTV] 100293-010-A: Unable to download JSON metadata: HTTP Error 404: Not Found (caused by <HTTPError 404: 'Not Found'>); please report this issue on  https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using  yt-dlp -U
                                                   -->End of Python script error report<--
nullket commented 2 years ago

We depend on yt_dlp as an external lib to resolve URLs in to playable streams. Arte seems to be currently broken (an old legacy api was used which got shutdown) but the devs over there are working on it:

Unfortunately, until they fix the issue there is nothing we can do. Therefore, I am closing the issue as the issue it not within our addon. I suggest you follow the above posted links for updates. Around one day after they merge the fix in their repo, you should get the fixed version via an automatic update in kodi.