parameters: (self, context, arg)
docstring: Generate a download link for the Blip.tv site.
          Call example: 'mnvXpath:bliptvDownloadLinkGeneration(.)'
          return an array of one download link element
docstring_summary: Generate a download link for the Blip.tv site.
          Call example: 'mnvXpath:bliptvDownloadLinkGeneration(.)'
          return an array of one download link element
docstring_tokens: Generate a download link for the Blip . tv site . Call example : mnvXpath : bliptvDownloadLinkGeneration ( . ) return an array of one download link element
function: def bliptvDownloadLinkGeneration(self, context, arg):
          '''Generate a download link for the Blip.tv site.
          Call example: 'mnvXpath:bliptvDownloadLinkGeneration(.)'
          return an array of one download link element
          '''
          downloadLink = etree.XML('<link></link>')
          flvFile = self.flvFilter(arg[0])
          m4vFile = self.m4vFilter(arg[0])
          if len(m4vFile):
              downloadLink.attrib['url'] = m4vFile[0].attrib['url']
              if m4vFile[0].attrib.get('width'):
                  downloadLink.attrib['width'] = m4vFile[0].attrib['width']
              if m4vFile[0].attrib.get('height'):
                  downloadLink.attrib['height'] = m4vFile[0].attrib['height']
              if m4vFile[0].attrib.get('fileSize'):
                  downloadLink.attrib['length'] = m4vFile[0].attrib['fileSize']
              if len(self.durationFilter(arg[0])):
                  downloadLink.attrib['duration'] = self.durationFilter(arg[0])[0]
              downloadLink.attrib['lang'] = self.languageFilter(arg[0])[0]
              return [downloadLink]
          elif len(flvFile):
              downloadLink.attrib['url'] = flvFile[0].attrib['url']
              if flvFile[0].attrib.get('width'):
                  downloadLink.attrib['width'] = flvFile[0].attrib['width']
              if flvFile[0].attrib.get('height'):
                  downloadLink.attrib['height'] = flvFile[0].attrib['height']
              if flvFile[0].attrib.get('fileSize'):
                  downloadLink.attrib['length'] = flvFile[0].attrib['fileSize']
              if len(self.durationFilter(arg[0])):
                  downloadLink.attrib['duration'] = self.durationFilter(arg[0])[0]
              downloadLink.attrib['lang'] = self.languageFilter(arg[0])[0]
              return [downloadLink]
          else:
              downloadLink.attrib['url'] = self.linkFilter(arg[0])[0]
              if len(self.durationFilter(arg[0])):
                  downloadLink.attrib['duration'] = self.durationFilter(arg[0])[0]
              downloadLink.attrib['lang'] = self.languageFilter(arg[0])[0]
              return [downloadLink]
function_tokens: def bliptvDownloadLinkGeneration ( self , context , arg ) : downloadLink = etree . XML ( '<link></link>' ) flvFile = self . flvFilter ( arg [ 0 ] ) m4vFile = self . m4vFilter ( arg [ 0 ] ) if len ( m4vFile ) : downloadLink . attrib [ 'url' ] = m4vFile [ 0 ] . attrib [ 'url' ] if m4vFile [ 0 ] . attrib . get ( 'width' ) : downloadLink . attrib [ 'width' ] = m4vFile [ 0 ] . attrib [ 'width' ] if m4vFile [ 0 ] . attrib . get ( 'height' ) : downloadLink . attrib [ 'height' ] = m4vFile [ 0 ] . attrib [ 'height' ] if m4vFile [ 0 ] . attrib . get ( 'fileSize' ) : downloadLink . attrib [ 'length' ] = m4vFile [ 0 ] . attrib [ 'fileSize' ] if len ( self . durationFilter ( arg [ 0 ] ) ) : downloadLink . attrib [ 'duration' ] = self . durationFilter ( arg [ 0 ] ) [ 0 ] downloadLink . attrib [ 'lang' ] = self . languageFilter ( arg [ 0 ] ) [ 0 ] return [ downloadLink ] elif len ( flvFile ) : downloadLink . attrib [ 'url' ] = flvFile [ 0 ] . attrib [ 'url' ] if flvFile [ 0 ] . attrib . get ( 'width' ) : downloadLink . attrib [ 'width' ] = flvFile [ 0 ] . attrib [ 'width' ] if flvFile [ 0 ] . attrib . get ( 'height' ) : downloadLink . attrib [ 'height' ] = flvFile [ 0 ] . attrib [ 'height' ] if flvFile [ 0 ] . attrib . get ( 'fileSize' ) : downloadLink . attrib [ 'length' ] = flvFile [ 0 ] . attrib [ 'fileSize' ] if len ( self . durationFilter ( arg [ 0 ] ) ) : downloadLink . attrib [ 'duration' ] = self . durationFilter ( arg [ 0 ] ) [ 0 ] downloadLink . attrib [ 'lang' ] = self . languageFilter ( arg [ 0 ] ) [ 0 ] return [ downloadLink ] else : downloadLink . attrib [ 'url' ] = self . linkFilter ( arg [ 0 ] ) [ 0 ] if len ( self . durationFilter ( arg [ 0 ] ) ) : downloadLink . attrib [ 'duration' ] = self . durationFilter ( arg [ 0 ] ) [ 0 ] downloadLink . attrib [ 'lang' ] = self . languageFilter ( arg [ 0 ] ) [ 0 ] return [ downloadLink ]