Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proper error msg when transcode failed #352

Open
1 of 2 tasks
Fneufneu opened this issue May 14, 2021 · 0 comments
Open
1 of 2 tasks

Proper error msg when transcode failed #352

Fneufneu opened this issue May 14, 2021 · 0 comments

Comments

@Fneufneu
Copy link

Fneufneu commented May 14, 2021

Description:

Kodi just show the fanart background when transcoding failed and i think it would be better if it's display a correct msg.

important error: Not enough CPU for conversion of this item. Neither direct play nor conversion is available

log:

2021-05-14 14:43:26.336 T:16104   ERROR <general>: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                                    - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                                   Error Type: <class 'AttributeError'>
                                                   Error Contents: 'str' object has no attribute 'decode'
                                                   Traceback (most recent call last):
                                                     File "C:\Users\Fneufneu\AppData\Roaming\Kodi\addons\script.plex\lib\player.py", line 745, in _playVideo
                                                       self.playerObject = self.playerObject.getServerDecision()
                                                     File "C:\Users\Fneufneu\AppData\Local\Packages\XBMCFoundation.Kodi_4n2hpmxwrvr6p\LocalCache\Roaming\Kodi\addons\script.plex\lib\_included_packages\plexnet\plexplayer.py", line 216, in getServerDecision
                                                       return decision.getDecision()
                                                     File "C:\Users\Fneufneu\AppData\Local\Packages\XBMCFoundation.Kodi_4n2hpmxwrvr6p\LocalCache\Roaming\Kodi\addons\script.plex\lib\_included_packages\plexnet\serverdecision.py", line 65, in getDecision
                                                       raise DecisionFailure(code, reason)
                                                   plexnet.serverdecision.DecisionFailure: (2000, 'Not enough CPU for conversion of this item. Neither direct play nor conversion is available.')
                                                   
                                                   During handling of the above exception, another exception occurred:
                                                   
                                                   Traceback (most recent call last):
                                                     File "C:\Users\Fneufneu\AppData\Roaming\Kodi\addons\script.plex\lib\windows\kodigui.py", line 105, in onInit
                                                       self.onFirstInit()
                                                     File "C:\Users\Fneufneu\AppData\Roaming\Kodi\addons\script.plex\lib\windows\videoplayer.py", line 91, in onFirstInit
                                                       self.play(resume=self.resume)
                                                     File "C:\Users\Fneufneu\AppData\Roaming\Kodi\addons\script.plex\lib\windows\videoplayer.py", line 234, in play
                                                       player.PLAYER.playVideoPlaylist(self.playQueue, resume=self.resume, session_id=id(self), handler=handler)
                                                     File "C:\Users\Fneufneu\AppData\Roaming\Kodi\addons\script.plex\lib\player.py", line 806, in playVideoPlaylist
                                                       self._playVideo(resume and self.video.viewOffset.asInt() or 0, seeking=handler and handler.SEEK_PLAYLIST or 0, force_update=True)
                                                     File "C:\Users\Fneufneu\AppData\Roaming\Kodi\addons\script.plex\lib\player.py", line 747, in _playVideo
                                                       util.showNotification(e.reason, header=util.T(32448, 'Playback Failed!'))
                                                     File "C:\Users\Fneufneu\AppData\Roaming\Kodi\addons\script.plex\lib\util.py", line 179, in showNotification
                                                       icon_path = icon_path or xbmc.translatePath(ADDON.getAddonInfo('icon')).decode('utf-8')
                                                   AttributeError: 'str' object has no attribute 'decode'
                                                   -->End of Python script error report<--

Details:

  • Add-on version: 0.2.3
  • Kodi version: 19.0
  • OS Platform: Windows 10
  • Hardware: x64

Checklist

  • I have included a link to a log (or at the very least a link to a forum post with a log) from a session that had the issue
  • I have added appropriate GitHub labels
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant