mirror of
https://github.com/rembo10/headphones.git
synced 2026-05-08 20:59:25 +01:00
Fixed db referenced before assignment in library scan
This commit is contained in:
@@ -8,6 +8,8 @@ from headphones import db, logger, helpers, importer
|
||||
|
||||
def libraryScan(dir=None):
|
||||
|
||||
myDB = db.DBConnection()
|
||||
|
||||
# Clean up bad filepaths
|
||||
tracks = myDB.select('SELECT Location, TrackID from tracks WHERE Location IS NOT NULL')
|
||||
|
||||
@@ -27,8 +29,7 @@ def libraryScan(dir=None):
|
||||
|
||||
new_artists = []
|
||||
bitrates = []
|
||||
|
||||
myDB = db.DBConnection()
|
||||
|
||||
myDB.action('DELETE from have')
|
||||
|
||||
for r,d,f in os.walk(dir):
|
||||
|
||||
Reference in New Issue
Block a user