mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-10 04:06:11 +00:00
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:
parent
95a3e76671
commit
2d531474d7
1 changed files with 4 additions and 3 deletions
|
@ -167,6 +167,7 @@ class CreateFiles():
|
||||||
if timeInfo.get("ResumeTime") != None:
|
if timeInfo.get("ResumeTime") != None:
|
||||||
resume_sec = int(round(float(timeInfo.get("ResumeTime"))))*60
|
resume_sec = int(round(float(timeInfo.get("ResumeTime"))))*60
|
||||||
total_sec = int(round(float(timeInfo.get("TotalTime"))))*60
|
total_sec = int(round(float(timeInfo.get("TotalTime"))))*60
|
||||||
|
if resume_sec != 0:
|
||||||
resume = SubElement(root, "resume")
|
resume = SubElement(root, "resume")
|
||||||
SubElement(resume, "position").text = str(resume_sec)
|
SubElement(resume, "position").text = str(resume_sec)
|
||||||
SubElement(resume, "total").text = str(total_sec)
|
SubElement(resume, "total").text = str(total_sec)
|
||||||
|
|
Loading…
Reference in a new issue