firsttris / plugin.video.sendtokodi

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

Getting exception "Error Contents: 'formats'" #96

Closed GautamMKGarg closed 7 months ago

GautamMKGarg commented 9 months ago

Description of the bug

Few links are giving exception while other are working fine.

Steps to reproduce

I tried sending below 2 links, 1 is working fine while another is giving error.

Working: amazonminitv:season:dabbebf5-20b9-023e-cc37-1a91a57f9210 Not Working: amazonminitv:series:dabbebf5-20b9-023e-cc37-1a91a57f9210

Expected behavior

Both links should work fine. because both links are working fine in yt-dlp

Version and plattform:

Kodi log

``` 2023-09-18 15:37:54.560 T:27780 info : JSONRPC Server: New connection added 2023-09-18 15:38:03.139 T:17040 info : plugin.video.sendtokodi: could not find an original manifest or manifest is not supported falling back to best all-in-one stream 2023-09-18 15:38:03.141 T:17040 error : EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<-- - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS! Error Type: Error Contents: 'formats' Traceback (most recent call last): File "C:\Users\abc\AppData\Roaming\Kodi\addons\plugin.video.sendtokodi\service.py", line 300, in startingItem = createListItemFromVideo(ydl.extract_info(startingVideoUrl, download=False)) File "C:\Users\abc\AppData\Roaming\Kodi\addons\plugin.video.sendtokodi\service.py", line 156, in createListItemFromVideo url = extract_best_all_in_one_stream(result) File "C:\Users\abc\AppData\Roaming\Kodi\addons\plugin.video.sendtokodi\service.py", line 94, in extract_best_all_in_one_stream if len(result['formats']) == 1: KeyError: 'formats' -->End of Python script error report<-- 2023-09-18 15:38:03.148 T:30340 info : CActiveAESink::OpenSink - initialize sink ``` **In case a certain website does not work for you** Both links are working fine on yt-dlp but not on sendtokodi **Screenshots** **Additional context**