plugin.video.sendtokodi icon indicating copy to clipboard operation
plugin.video.sendtokodi copied to clipboard

MXPlayer not working

Open GautamMKGarg opened this issue 2 years ago • 4 comments

Describe the bug mxplayer.in URLs are not getting played. Same URL is working fine with Yatse Android App but not working on Kore

To Reproduce Trying to play below url using Kore. Same URL is working fine on Yatse but not working on Kore. https://www.mxplayer.in/show/watch-aashram/season-1/duh-swapna-online-d445579792b0135598ba1bc9088a84cb

Expected behavior Video from above URL should be played

Kodi and sendtokodi version (please complete the following information):

  • Kodi: [Matrix 19.4]
  • sendtokodi: [github master]

Provide a Kodi log

  • If you do not know how the get the log check the official Kodi wiki

2022-08-27 15:59:44.172 T:13112    INFO <general>: JSONRPC Server: New connection added
2022-08-27 15:59:51.220 T:20756    INFO <general>: initializing python engine.
2022-08-27 15:59:51.305 T:9708     INFO <general>: Python interpreter stopped
2022-08-27 15:59:53.589 T:1308     INFO <general>: CActiveAESink::OpenSink - initialize sink
2022-08-27 15:59:55.190 T:20756   ERROR <general>: ERROR: [Mxplayer] d445579792b0135598ba1bc9088a84cb: Requested format is not available. Use --list-formats for a list of available formats
                                                   
2022-08-27 15:59:55.195 T:20756   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: [Mxplayer] d445579792b0135598ba1bc9088a84cb: Requested format is not available. Use --list-formats for a list of available formats
                                                   Traceback (most recent call last):
                                                     File "C:\Users\GG\AppData\Roaming\Kodi\addons\plugin.video.sendtokodi\lib\yt_dlp\YoutubeDL.py", line 1452, in wrapper
                                                       return func(self, *args, **kwargs)
                                                     File "C:\Users\GG\AppData\Roaming\Kodi\addons\plugin.video.sendtokodi\lib\yt_dlp\YoutubeDL.py", line 1549, in __extract_info
                                                       return self.process_ie_result(ie_result, download, extra_info)
                                                     File "C:\Users\GG\AppData\Roaming\Kodi\addons\plugin.video.sendtokodi\lib\yt_dlp\YoutubeDL.py", line 1607, in process_ie_result
                                                       ie_result = self.process_video_result(ie_result, download=download)
                                                     File "C:\Users\GG\AppData\Roaming\Kodi\addons\plugin.video.sendtokodi\lib\yt_dlp\YoutubeDL.py", line 2668, in process_video_result
                                                       raise ExtractorError(
                                                   lib.yt_dlp.utils.ExtractorError: [Mxplayer] d445579792b0135598ba1bc9088a84cb: Requested format is not available. Use --list-formats for a list of available formats
                                                   
                                                   During handling of the above exception, another exception occurred:
                                                   
                                                   Traceback (most recent call last):
                                                     File "C:\Users\GG\AppData\Roaming\Kodi\addons\plugin.video.sendtokodi\service.py", line 174, in <module>
                                                       result = ydl.extract_info(url, download=False)
                                                     File "C:\Users\GG\AppData\Roaming\Kodi\addons\plugin.video.sendtokodi\lib\yt_dlp\YoutubeDL.py", line 1441, in extract_info
                                                       return self.__extract_info(url, self.get_info_extractor(key), download, extra_info, process)
                                                     File "C:\Users\GG\AppData\Roaming\Kodi\addons\plugin.video.sendtokodi\lib\yt_dlp\YoutubeDL.py", line 1470, in wrapper
                                                       self.report_error(str(e), e.format_traceback())
                                                     File "C:\Users\GG\AppData\Roaming\Kodi\addons\plugin.video.sendtokodi\lib\yt_dlp\YoutubeDL.py", line 987, in report_error
                                                       self.trouble(f'{self._format_err("ERROR:", self.Styles.ERROR)} {message}', *args, **kwargs)
                                                     File "C:\Users\GG\AppData\Roaming\Kodi\addons\plugin.video.sendtokodi\lib\yt_dlp\YoutubeDL.py", line 930, in trouble
                                                       raise DownloadError(message, exc_info)
                                                   lib.yt_dlp.utils.DownloadError: ERROR: [Mxplayer] d445579792b0135598ba1bc9088a84cb: Requested format is not available. Use --list-formats for a list of available formats
                                                   -->End of Python script error report<--
                                                   
2022-08-27 15:59:55.318 T:20756    INFO <general>: Python interpreter stopped

In case a certain website does not work for you

  • sendtokodi uses a third-party resolver to extract playable media URLs from your input
  • You can choose between youtube-dl and yt-dlp
    • If you have not changed anything in the addon settings the default is yt-dlp for kodi 19 and above while it is youtube-dl for earlier versions
  • Please search their corresponding issue tracker and make sure that the issue is not already known there but an actual problem with sendtokodi
  • In case they have an issue on the topic already, there is nothing we can do but wait.
    • sendtokodi will automatically be updated as soon as they release a fix.

Screenshots If applicable, add screenshots to help explain your problem.

Additional context Add any other context about the problem here.

GautamMKGarg avatar Aug 27 '22 10:08 GautamMKGarg

i saw once at the yatse source code, that they are using other resolvers as youtube-dl. (also resolvers in the grey area)

firsttris avatar Aug 27 '22 10:08 firsttris

Hello

Thanks for reply. Yatse also started using yt-dlp. After debugging sendtokodi code, I found the issue. Few extractors of yt-dlp does not work with format "best" https://github.com/firsttris/plugin.video.sendtokodi/blob/baa5a2200ba13d4b87114df92c3982e02ae3fbcd/service.py#L162

instead of format "best" yt-dlp now suggest new method. Kindly refer below link https://github.com/yt-dlp/yt-dlp/blob/master/README.md#format-selection-examples

In yatse, they attempt to get video data twice, with two different format. Kindly refer url below. https://github.com/Tolriq/repository.yatse.kodi/blob/0e994240717d652c6fe84e0b40c2e418a1051492/script.yatse.kodi/lib/share.py#L108-L114

I think sendtokodi addon lacks code similar to the code of yatse given below https://github.com/Tolriq/repository.yatse.kodi/blob/0e994240717d652c6fe84e0b40c2e418a1051492/script.yatse.kodi/lib/share.py#L76-L90

what do you suggest?

GautamMKGarg avatar Aug 27 '22 19:08 GautamMKGarg

Hi @firsttris

Have you checked my last reply?

GautamMKGarg avatar Sep 01 '22 11:09 GautamMKGarg

hey @GautamMKGarg thx for your research! i really appreciate it.

i think we should improve this as well

do you have the motivation & skills to provide a Pull-Request?

best regards

firsttris avatar Sep 01 '22 11:09 firsttris