Skip to content

Commit

Permalink
[Fixed] Missing key on Format string for movie info
Browse files Browse the repository at this point in the history
(cherry picked from commit a789f08730a9a118b919cd7db9fe6b759cdf008c)
  • Loading branch information
DimitarCC authored and teamblue-e2 committed May 15, 2024
1 parent 722e6de commit 1a2b527
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/python/Components/Converter/MovieInfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@ def getText(self):
timeCreate = localtime(info.getInfo(service, iServiceInformation.sTimeCreate))
duration = info.getLength(service)
filesize = info.getInfoObject(service, iServiceInformation.sFileSize)
rec_ref_str = info.getInfoString(service, iServiceInformation.sServiceref)
rec_service_name = eServiceReference(rec_ref_str).getServiceName()
res_str = ""
for x in self.parts[1:]:
x = x.upper()
Expand All @@ -103,6 +105,8 @@ def getText(self):
res_str = self.appendToStringWithSeparator(res_str, "%d min" % (duration / 60))
if x == "FILESIZE" and filesize:
res_str = self.appendToStringWithSeparator(res_str, "%d MB" % (filesize / (1024*1024)))
if x == "RECSERVICE" and rec_service_name:
res_str = self.appendToStringWithSeparator(res_str, rec_service_name)
return res_str
return ""

Expand Down

0 comments on commit 1a2b527

Please sign in to comment.