mirror of
https://github.com/arsenetar/dupeguru.git
synced 2026-01-22 14:41:39 +00:00
Wrapped data modules around edition-specific core.app subclasses to prepare for data modules removal.
This commit is contained in:
14
core_me/app.py
Normal file
14
core_me/app.py
Normal file
@@ -0,0 +1,14 @@
|
||||
# Created On: 2011/09/20
|
||||
# Copyright 2011 Hardcoded Software (http://www.hardcoded.net)
|
||||
#
|
||||
# This software is licensed under the "BSD" License as described in the "LICENSE" file,
|
||||
# which should be included with this package. The terms are also available at
|
||||
# http://www.hardcoded.net/licenses/bsd_license
|
||||
|
||||
from core.app import DupeGuru as DupeGuruBase
|
||||
from . import data
|
||||
|
||||
class DupeGuru(DupeGuruBase):
|
||||
def __init__(self, view, appdata):
|
||||
DupeGuruBase.__init__(self, view, data, appdata)
|
||||
|
||||
@@ -9,13 +9,15 @@
|
||||
import logging
|
||||
from appscript import app, k, CommandError
|
||||
import time
|
||||
import os.path as op
|
||||
|
||||
from hscommon.cocoa import as_fetch
|
||||
from hscommon.trans import tr
|
||||
|
||||
from core.app_cocoa import JOBID2TITLE, DupeGuru as DupeGuruBase
|
||||
from core.app_cocoa import JOBID2TITLE
|
||||
|
||||
from . import data, scanner, fs
|
||||
from . import scanner, fs
|
||||
from .app import DupeGuru as DupeGuruBase
|
||||
|
||||
JOB_REMOVE_DEAD_TRACKS = 'jobRemoveDeadTracks'
|
||||
JOB_SCAN_DEAD_TRACKS = 'jobScanDeadTracks'
|
||||
@@ -26,8 +28,9 @@ JOBID2TITLE.update({
|
||||
})
|
||||
|
||||
class DupeGuruME(DupeGuruBase):
|
||||
def __init__(self):
|
||||
DupeGuruBase.__init__(self, data, 'dupeGuru Music Edition')
|
||||
def __init__(self, view, appdata):
|
||||
appdata = op.join(appdata, 'dupeGuru Music Edition')
|
||||
DupeGuruBase.__init__(self, view, appdata)
|
||||
self.scanner = scanner.ScannerME()
|
||||
self.directories.fileclasses = [fs.MusicFile]
|
||||
self.dead_tracks = []
|
||||
|
||||
Reference in New Issue
Block a user