downloadkit/downloadkit.py
changeset 326 c0fb460d1a21
parent 307 150026b6d3e6
equal deleted inserted replaced
325:28c70cc5e86f 326:c0fb460d1a21
   468 	viewid = 5   # default to Symbian^3
   468 	viewid = 5   # default to Symbian^3
   469 	if version[0] == '2':
   469 	if version[0] == '2':
   470 		viewid = 1  # Symbian^2
   470 		viewid = 1  # Symbian^2
   471 	if version[0] == '3':
   471 	if version[0] == '3':
   472 		viewid = 5  # Symbian^3
   472 		viewid = 5  # Symbian^3
       
   473 	if version[0] == '4':
       
   474 		viewid = 14  # Symbian^4
   473 	if version.startswith('lucky'):
   475 	if version.startswith('lucky'):
   474 		viewid = 12 # Do you feel lucky?
   476 		viewid = 12 # Do you feel lucky?
   475 		version = version[5:]
   477 		version = version[5:]
   476 	url = urlbase + ('view.php?id=%d'% viewid)
   478 	url = urlbase + ('view.php?id=%d'% viewid)
   477 	if len(version) > 1:
   479 	if len(version) > 1: