MCPcopy
hub / github.com/iBaa/PlexConnect / getConversion

Method getConversion

XMLConverter.py:726–738  ·  view source on GitHub ↗
(self, src, param)

Source from the content-addressed store, hash-verified

724 return [src, srcXML, leftover]
725
726 def getConversion(self, src, param):
727 conv, leftover = self.getParam(src, param)
728
729 # build conversion "dictionary"
730 convlist = []
731 if conv!='':
732 parts = conv.split('|')
733 for part in parts:
734 convstr = part.split('=')
735 convlist.append((unquote_plus(convstr[0]), unquote_plus(convstr[1])))
736
737 dprint(__name__, 2, "CCmds_getConversion: {0},{1}", convlist, leftover)
738 return [convlist, leftover]
739
740 def applyConversion(self, val, convlist):
741 # apply string conversion

Callers 5

TREE_COPYMethod · 0.80
TREE_CUTMethod · 0.80
TREE_VARMethod · 0.80
ATTRIB_VALMethod · 0.80
ATTRIB_VAL_QUOTEDMethod · 0.80

Calls 2

getParamMethod · 0.95
dprintFunction · 0.85

Tested by

no test coverage detected