-
Notifications
You must be signed in to change notification settings - Fork 6
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
Problem with German region format #7
Comments
My locale settings seem not to recognized. |
Did it work with previous versions on your machine? |
The current version runs on Libreelec with Kodi 18 Master without problems. |
Must be a Kodi or Debian bug. The locale setting should be propagated properly to the plugin interpreter. |
I don't know why, but it runs again. |
Great! |
I reopened this issue, because I can reproduce it now. |
I suppose I have to set the locale explicitly before parsing. I'll have to test this (but wouldn't mind if someone else made a patch). |
Can you also reproduce this error?
|
Not right now. Need to test it when I'm back home beginning of next year. |
I changed the title of this issue to a better one. |
Hi!
I am getting this error when trying to browse with the Massengeschmack addon on my Debian
Stretch machine with Kodi 18 Master:
01:59:01.348 T:139685992642304 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<-- - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS! Error Type: <type 'exceptions.ValueError'> Error Contents: time data 'Thu, 13 Jul 2017 20:00:00' does not match format '%a, %d %b %Y %H:%M:%S' Traceback (most recent call last): File "/home/mase/.kodi/addons/plugin.video.massengeschmack/default.py", line 45, in <module> if listing.generate(datasource): File "/home/mase/.kodi/addons/plugin.video.massengeschmack/resources/lib/listing.py", line 46, in generate for i in items: File "/home/mase/.kodi/addons/plugin.video.massengeschmack/resources/lib/datasource.py", line 302, in getListItems 'premiered' : resources.lib.parseUTCDateString(i['pubdate']).strftime('%Y-%m-%d'), File "/home/mase/.kodi/addons/plugin.video.massengeschmack/resources/lib/__init__.py", line 324, in parseUTCDateString date = datetime.strptime(datestr[:-6], format) File "/usr/lib/python2.7/_strptime.py", line 332, in _strptime (data_string, format)) ValueError: time data 'Thu, 13 Jul 2017 20:00:00' does not match format '%a, %d %b %Y %H:%M:%S' -->End of Python script error report<-- 01:59:01.443 T:139688306874752 ERROR: GetDirectory - Error getting plugin://plugin.video.massengeschmack/?cmd=list&module=main 01:59:01.445 T:139688306874752 ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.massengeschmack/?cmd=list&module=main) failed 02:00:59.435 T:139685875668736 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<-- - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS! Error Type: <type 'exceptions.ValueError'> Error Contents: time data 'Tue, 08 Nov 2016 20:00:00' does not match format '%a, %d %b %Y %H:%M:%S' Traceback (most recent call last): File "/home/mase/.kodi/addons/plugin.video.massengeschmack/default.py", line 45, in <module> if listing.generate(datasource): File "/home/mase/.kodi/addons/plugin.video.massengeschmack/resources/lib/listing.py", line 46, in generate for i in items: File "/home/mase/.kodi/addons/plugin.video.massengeschmack/resources/lib/datasource.py", line 302, in getListItems 'premiered' : resources.lib.parseUTCDateString(i['pubdate']).strftime('%Y-%m-%d'), File "/home/mase/.kodi/addons/plugin.video.massengeschmack/resources/lib/__init__.py", line 326, in parseUTCDateString date = datetime(*(time.strptime(datestr[:-6], format)[0:6])) File "/usr/lib/python2.7/_strptime.py", line 478, in _strptime_time return _strptime(data_string, format)[0] File "/usr/lib/python2.7/_strptime.py", line 332, in _strptime (data_string, format)) ValueError: time data 'Tue, 08 Nov 2016 20:00:00' does not match format '%a, %d %b %Y %H:%M:%S' -->End of Python script error report<-- 02:00:59.857 T:139688306874752 ERROR: GetDirectory - Error getting plugin://plugin.video.massengeschmack/?cmd=list&module=jung 02:00:59.859 T:139688306874752 ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.massengeschmack/?cmd=list&module=jung) failed
I wonder, the date format seems correct.
The text was updated successfully, but these errors were encountered: