docs: def _get_torrent_category(self, tag, result=None):
  		"""Given a tag containing torrent details try to find category
  		   of torrent. In search pages the category is found in links of
  		   the form <a href='/tv/'>TV</a> with TV replaced with movies, books
  		   etc. For the home page I will use the result number to
  		   decide the category"""
  
  		hrefs = ["/movies/", "/tv/", "/music/", "/games/", "/applications/", "/anime/",
  				 "/books/", "/xxx/"]
  		category = None
  		if not result is None: # if result: 0 returns false.
  			# Searching home page, get category from result number
  			category = hrefs[result / 10].strip("/")
  			return category
  
  		for item in hrefs:
  			if tag.select("a[href=" + item + "]"):
  				category = item.strip("/")
  				return category