Skip to content

Commit

Permalink
Merge pull request #3979 from DimitarCC/movie-info-fix
Browse files Browse the repository at this point in the history
[Fixed] Missing key on Format string for movie info
  • Loading branch information
littlesat committed May 14, 2024
2 parents dcdc701 + a789f08 commit f41300e
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 f41300e

Please sign in to comment.