Download XML dump when -D is not specified

master
Sven Slootweg 13 years ago
parent 3a6a315c03
commit 8515414dcc

@ -36,9 +36,10 @@ parser.add_argument('-x', dest='xml_path', action='store', default='jamendo.xml.
args = parser.parse_args() args = parser.parse_args()
options = vars(args) options = vars(args)
#print "Retrieving Jamendo database..." if options['no_download'] == False:
#urllib.urlretrieve(xml_url, xml_file, reporthook=update_progress) print "Retrieving Jamendo database..."
#print "" urllib.urlretrieve(xml_url, xml_file, reporthook=update_progress)
print ""
xml = gzip.open(xml_file) xml = gzip.open(xml_file)

Loading…
Cancel
Save