mirror of
https://github.com/arsenetar/dupeguru.git
synced 2025-03-10 05:34:36 +00:00
core_me: properly set scanner class
It was wrongly instatiating the scanner on startup (we now do it on-the-fly).
This commit is contained in:
parent
0056f696df
commit
8b878b7b13
@ -1,5 +1,4 @@
|
|||||||
# Created On: 2011/09/20
|
# Copyright 2016 Hardcoded Software (http://www.hardcoded.net)
|
||||||
# Copyright 2015 Hardcoded Software (http://www.hardcoded.net)
|
|
||||||
#
|
#
|
||||||
# This software is licensed under the "GPLv3" License as described in the "LICENSE" file,
|
# This software is licensed under the "GPLv3" License as described in the "LICENSE" file,
|
||||||
# which should be included with this package. The terms are also available at
|
# which should be included with this package. The terms are also available at
|
||||||
@ -17,10 +16,10 @@ class DupeGuru(DupeGuruBase):
|
|||||||
'size', 'mtime', 'duration', 'bitrate', 'samplerate', 'title', 'artist',
|
'size', 'mtime', 'duration', 'bitrate', 'samplerate', 'title', 'artist',
|
||||||
'album', 'genre', 'year', 'track', 'comment'
|
'album', 'genre', 'year', 'track', 'comment'
|
||||||
]
|
]
|
||||||
|
SCANNER_CLASS = scanner.ScannerME
|
||||||
|
|
||||||
def __init__(self, view):
|
def __init__(self, view):
|
||||||
DupeGuruBase.__init__(self, view)
|
DupeGuruBase.__init__(self, view)
|
||||||
self.scanner = scanner.ScannerME()
|
|
||||||
self.fileclasses = [fs.MusicFile]
|
self.fileclasses = [fs.MusicFile]
|
||||||
|
|
||||||
def _get_dupe_sort_key(self, dupe, get_group, key, delta):
|
def _get_dupe_sort_key(self, dupe, get_group, key, delta):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user