Quantcast
Channel: Kodinerds.net - Deutschsprachiges Forum zum Kodi Entertainment Center
Viewing all articles
Browse latest Browse all 87137

Python Problem mit strptime

$
0
0
Hallo zusammen ich habe ein Problem mit strptime in Kodi...

ich habe folgende Ausgangssituation:

starttime = 095000

daraus möchte ich 9:25 machen. folgendes habe ich probiert:

Python-Quellcode

  1. starttime = datetime.datetime.strptime(starttime, '%I%M%S')
  2. starttime = tvshowstarttime.strftime('%H:%M')

wenn ich das ganze in Sublime teste funktioniert das auch ohne Probleme...

wenn ich das aber in das Kodi Addon einbaue kommt folgende Fehlermeldung:

Quellcode

  1. TypeError: attribute of type 'NoneType' is not callable

gibt's dafür einen Workaround?

Viewing all articles
Browse latest Browse all 87137


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>