Commit aca89b5e authored by Nico Schallehn's avatar Nico Schallehn

md5 in

parent bab2faec
......@@ -20,7 +20,7 @@ class Database(object):
try:
self.connection = MySQLdb.connect(host="192.168.0.32", port=3306, db="MediaDB_Nico", user="MediaDB", passwd="MediaDB")
except:
self.connection = MySQLdb.connect(host="pimaster.ddns.net", port=3306, db="MediaDB", user="markus", passwd="")
self.connection = MySQLdb.connect(host="192.168.0.32", port=3306, db="MediaDB_Nico", user="MediaDB", passwd="MediaDB")
self.instance = self.connection.cursor()
def deleteDuplicates(self):
......@@ -1024,8 +1024,8 @@ class FilmParser(object):
number = 1
for movie in self.movies:
print('Berechne md5 %s von %s' % (number, len(self.movies)))
#movie['md5'] = subprocess.Popen(['md5sum', movie['path']], shell=False, stdout=subprocess.PIPE, stderr=subprocess.PIPE).communicate()[0].split()[0]
movie['md5'] = 'c763d1aa80620530e494b1331151FAKE'
movie['md5'] = subprocess.Popen(['md5sum', movie['path']], shell=False, stdout=subprocess.PIPE, stderr=subprocess.PIPE).communicate()[0].split()[0]
#movie['md5'] = 'c763d1aa80620530e494b1331151FAKE'
number += 1
def printOverview(self):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment