Skip to content

Commit

Permalink
XMLConverter, Movie_List - removed temporary cmd "commaVal"
Browse files Browse the repository at this point in the history
  • Loading branch information
iBaa committed Jun 5, 2013
1 parent 84b156d commit f8d224b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
10 changes: 3 additions & 7 deletions XMLConverter.py
Original file line number Diff line number Diff line change
Expand Up @@ -814,13 +814,9 @@ def ATTRIB_getDurationString(self, src, srcXML, param):
else: return "%dhr %dmin" % (hour, min)

return ""

def ATTRIB_commaVal(self, src, srcXML, param):
val, leftover, dfltd = self.getKey(src, srcXML, param)
if val == "": return ""
return ", " + val





if __name__=="__main__":
setParams({'Addr_PMS':'*Addr_PMS*'})

Expand Down
4 changes: 2 additions & 2 deletions assets/templates/Movie_List.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@
<label>Length</label>
</metadataKeys>
<metadataValues>
<label>{{VAL(Role/tag)}}{{commaVal(Role[2]/tag)}}{{commaVal(Role[3]/tag)}}</label>
<label>{{VAL(Role/tag)}}{{VAL(Role[2]/tag::=, )}}{{VAL(Role[2]/tag)}}{{VAL(Role[3]/tag::=, )}}{{VAL(Role[3]/tag)}}</label>
<label>{{VAL(Director/tag)}}</label>
<label>{{VAL(Genre/tag)}}{{commaVal(Genre[2]/tag)}}</label>
<label>{{VAL(Genre/tag)}}{{VAL(Role[2]/tag::=, )}}{{VAL(Genre[2]/tag)}}</label>
<label>{{getDurationString(duration)}}</label>
</metadataValues>
</keyedPreview>
Expand Down

0 comments on commit f8d224b

Please sign in to comment.