fixed: do not write resumepoint to NFO if its value is 0 because this will set the lastplayed field to the import date

This commit is contained in:
Marcel van der Veldt 2015-03-24 21:19:50 +01:00
parent 95a3e76671
commit 2d531474d7
1 changed files with 4 additions and 3 deletions

View File

@ -167,6 +167,7 @@ class CreateFiles():
if timeInfo.get("ResumeTime") != None:
resume_sec = int(round(float(timeInfo.get("ResumeTime"))))*60
total_sec = int(round(float(timeInfo.get("TotalTime"))))*60
if resume_sec != 0:
resume = SubElement(root, "resume")
SubElement(resume, "position").text = str(resume_sec)
SubElement(resume, "total").text = str(total_sec)