def set_enclosure(self):
try:<EOL><INDENT>self.enclosure_url = self.soup.find('<STR_LIT>')['<STR_LIT:url>']<EOL><DEDENT>except:<EOL><INDENT>self.enclosure_url = None<EOL><DEDENT>try:<EOL><INDENT>self.enclosure_type = self.soup.find('<STR_LIT>')['<STR_LIT:type>']<EOL><DEDENT>except:<EOL><INDENT>self.enclosure_type = None<EOL><DEDENT>try:<EOL><INDENT>self.enclosure_length = self.soup.find('<STR_LIT>')['<STR_LIT>']<EOL>self.enclosure_length = int(self.enclosure_length)<EOL><DEDENT>except:<EOL><INDENT>self.enclosure_length = None<EOL><DEDENT>
Parses enclosure_url, enclosure_type then set values.