mirror of
https://github.com/arsenetar/dupeguru.git
synced 2026-01-25 16:11:39 +00:00
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8a8ac027f5 | ||
|
|
1d9d09fdf7 | ||
|
|
5dc956870d |
2
build.py
2
build.py
@@ -104,7 +104,7 @@ def build_cocoa(edition, dev):
|
||||
if not op.exists(pydep_folder):
|
||||
os.mkdir(pydep_folder)
|
||||
shutil.copy(op.join(cocoa_project_path, 'dg_cocoa.py'), 'build')
|
||||
appscript_pkgs = ['appscript', 'aem', 'mactypes']
|
||||
appscript_pkgs = ['appscript', 'aem', 'mactypes', 'osax']
|
||||
specific_packages = {
|
||||
'se': ['core_se'],
|
||||
'me': ['core_me'] + appscript_pkgs + ['hsaudiotag'],
|
||||
|
||||
@@ -19,11 +19,11 @@ from hscommon.path import Path
|
||||
from hscommon.util import remove_invalid_xml
|
||||
|
||||
from core import directories
|
||||
from core.app import JobType
|
||||
from core.app import JobType, JOBID2TITLE
|
||||
from core.scanner import ScanType
|
||||
from core_me.app import DupeGuru as DupeGuruBase
|
||||
from core_me import fs
|
||||
from .app import JOBID2TITLE, PyDupeGuruBase
|
||||
from .app import PyDupeGuruBase
|
||||
|
||||
tr = trget('ui')
|
||||
|
||||
@@ -184,11 +184,14 @@ class DupeGuruME(DupeGuruBase):
|
||||
pass # We'll return the default file type, as per the last line of this method
|
||||
return DupeGuruBase._create_file(self, path)
|
||||
|
||||
def _job_completed(self, jobid, exc):
|
||||
if (jobid in {JobType.RemoveDeadTracks, JobType.ScanDeadTracks}) and (exc is not None):
|
||||
msg = tr("There were communication problems with iTunes. The operation couldn't be completed.")
|
||||
self.view.show_message(msg)
|
||||
return True
|
||||
def _job_completed(self, jobid):
|
||||
# XXX Just before release, I'm realizing that this piece of code below is why I was passing
|
||||
# job exception as an argument to _job_completed(). I have to comment it for now. It's not
|
||||
# the end of the world, but I should find an elegant solution to this at some point.
|
||||
# if (jobid in {JobType.RemoveDeadTracks, JobType.ScanDeadTracks}) and (exc is not None):
|
||||
# msg = tr("There were communication problems with iTunes. The operation couldn't be completed.")
|
||||
# self.view.show_message(msg)
|
||||
# return True
|
||||
if jobid == JobType.ScanDeadTracks:
|
||||
dead_tracks_count = len(self.dead_tracks)
|
||||
if dead_tracks_count > 0:
|
||||
@@ -202,7 +205,7 @@ class DupeGuruME(DupeGuruBase):
|
||||
if hasattr(self, 'itunes_songs'):
|
||||
# If we load another file, we want a refresh song list
|
||||
del self.itunes_songs
|
||||
DupeGuruBase._job_completed(self, jobid, exc)
|
||||
DupeGuruBase._job_completed(self, jobid)
|
||||
|
||||
def copy_or_move(self, dupe, copy, destination, dest_type):
|
||||
if isinstance(dupe, ITunesSong):
|
||||
@@ -230,7 +233,7 @@ class DupeGuruME(DupeGuruBase):
|
||||
except CommandError as e:
|
||||
logging.warning('Error while trying to remove a track from iTunes: %s' % str(e))
|
||||
|
||||
self.view.start_job(JobType.RemoveDeadTracks, do)
|
||||
self._start_job(JobType.RemoveDeadTracks, do)
|
||||
|
||||
def scan_dead_tracks(self):
|
||||
def do(j):
|
||||
@@ -248,7 +251,7 @@ class DupeGuruME(DupeGuruBase):
|
||||
self.dead_tracks.append(track)
|
||||
logging.info('Found %d dead tracks' % len(self.dead_tracks))
|
||||
|
||||
self.view.start_job(JobType.ScanDeadTracks, do)
|
||||
self._start_job(JobType.ScanDeadTracks, do)
|
||||
|
||||
class PyDupeGuru(PyDupeGuruBase):
|
||||
def __init__(self):
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
__version__ = '6.5.1'
|
||||
__version__ = '6.6.0'
|
||||
__appname__ = 'dupeGuru Music Edition'
|
||||
@@ -1,3 +1,11 @@
|
||||
=== 6.6.0 (2013-08-18)
|
||||
|
||||
* Improved delta values to support non-numerical values. (#213)
|
||||
* Improved the Re-Prioritize dialog's UI. (#224)
|
||||
* Added hardlink/symlink support on Windows Vista+. (#220)
|
||||
* Dropped 32bit support on Mac OS X.
|
||||
* Added Vietnamese localization by Phan Anh.
|
||||
|
||||
=== 6.5.1 (2013-05-18)
|
||||
|
||||
* Improved "Make Selection Reference" to make it clearer. (#222)
|
||||
|
||||
Reference in New Issue
Block a user