known-as-bmf / plugin.video.arteplussept

Plugin Kodi (ex XBMC) permettant de voir les vidéos disponibles sur Arte +7
GNU General Public License v2.0
44 stars 23 forks source link

fix localization of source airdate #57

Closed janbar closed 3 years ago

janbar commented 5 years ago

The datetime string conversion depends on the system environment. Here I set the locale to succeed the parsing when system use locale other than "en_US/GB/AU". After the parsing the locale is restored. Without this fix, the addon fails to browse content on system set with fr_FR and I guess for other locales.

hypnotoad commented 4 years ago

Does it solve this error?

Error Type: <type 'exceptions.ValueError'>
Error Contents: time data u'Tue, 07 Apr 2020 20:15:02' does not match format '%a, %d %b %Y %H:%M:%S'
hypnotoad commented 3 years ago

as far as I see this gets fixed by #74

known-as-bmf commented 3 years ago

Sorry for the delay... I think this is now resolved, so I'm closing the PR.