Jump to content

external server + strm files: files with umlauts don't work


Go to solution Solved by Angelblue05,

Recommended Posts

horstepipe
Posted (edited)

hey

Emby server is being accessed from the internet, movies are stored as .strm-files which point to google drive. Everything works fine, but movies with umlauts (Ä, Ö, Ü) in their name don't work:

20:34:00 T:2372   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.UnicodeEncodeError'>
                                            Error Contents: 'ascii' codec can't encode character u'\xfc' in position 127: ordinal not in range(128)
                                            Traceback (most recent call last):
                                              File "C:\Users\horstepipe\AppData\Roaming\Kodi\addons\plugin.video.emby.movies\default.py", line 50, in <module>
                                                entrypoint.doPlayback(itemid, dbid)
                                              File "C:\Users\horstepipe\AppData\Roaming\Kodi\addons\plugin.video.emby\resources\lib\entrypoint.py", line 43, in doPlayback
                                                pbutils.PlaybackUtils(item).play(itemId, dbId)
                                              File "C:\Users\horstepipe\AppData\Roaming\Kodi\addons\plugin.video.emby\resources\lib\playbackutils.py", line 57, in play
                                                playurl = playutils.getPlayUrl()
                                              File "C:\Users\horstepipe\AppData\Roaming\Kodi\addons\plugin.video.emby\resources\lib\playutils.py", line 96, in getPlayUrl
                                                window('emby_%s.playmethod' % playurl, value="DirectStream")
                                              File "C:\Users\horstepipe\AppData\Roaming\Kodi\addons\plugin.video.emby\resources\lib\utils.py", line 38, in window
                                                WINDOW.setProperty(property_, value)
                                            UnicodeEncodeError: 'ascii' codec can't encode character u'\xfc' in position 127: ordinal not in range(128)
                                            -->End of Python script error report<--

Kodi v16.1

Emby for Kodi v2.2.41

Emby Server 3.0.7300

 

 

Best regards

Edited by horstepipe
Angelblue05
Posted

I am confused by this. Where is the special character? In the strm filename or the url inside?

horstepipe
Posted

I am confused by this. Where is the special character? In the strm filename or the url inside?

Both :-)

Filename:

Armageddon - Das jüngste Gericht.1080p.bluray.dca.mkv

url:

plugin://plugin.video.gdrive/?mode=video&username=usernamexxxxxxxxxxxxxxxxxxxx&title=Armageddon+-+Das+jüngste+Gericht.1080p.bluray.dca.mkv

  • Like 1
  • Solution
Angelblue05
Posted

I've just posted the latest beta 2.2.42. Give it a try and let me know if it resolves the issue.

  • Like 1
horstepipe
Posted

I've just posted the latest beta 2.2.42. Give it a try and let me know if it resolves the issue.

thanks, I will as soon it's available here.

horstepipe
Posted

It should be available in the Emby for Kodi beta repo within the next minutes, shouldn't it?

  • 1 month later...
horstepipe
Posted

just to make sure this is not Emby related.

Playing .strm-files containing an apostrophe results in this error:

21:31:54 T:3808 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.TypeError'>
Error Contents: 'NoneType' object is not iterable
Traceback (most recent call last):
File "C:\Users\horstepipe\AppData\Roaming\Kodi\addons\plugin.video.gdrive\default.py", line 1458, in <module>
(mediaURLs,package) = service.getPlaybackCall(None,title=title)
TypeError: 'NoneType' object is not iterable
-->End of Python script error report<-- 

But this is only a gdrive plugin issue, isn't it?

horstepipe
Posted

@@Angelblue05

not sure if you see it because the thread is already marked as solved, so I better link you :-)

Angelblue05
Posted

Yes it's not an emby issue. Seems the gdrive addon is at fault here.

 

 

Sent from my iPhone using Tapatalk

  • Like 1
horstepipe
Posted (edited)

Sorry @@Angelblue05 but I need to warm it up, again.

The error only occurs when using Emby for Kodi.

Adding those strm-files to "normal" Kodi database playback works fine.

 

Do you have any idea what the problem could be?

I also asked @@ddurdle , the author of the gdrive plugin.

 

Best regards

Edited by horstepipe
Angelblue05
Posted

Then post the full kodi log, thanks.

 

 

Sent from my iPhone using Tapatalk

horstepipe
Posted

Then post the full kodi log, thanks.

 

 

Sent from my iPhone using Tapatalk

I'll pm it to you

Guest
This topic is now closed to further replies.
×
×
  • Create New...