mirror of
https://github.com/arsenetar/dupeguru.git
synced 2026-01-25 16:11:39 +00:00
Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
69b2e37368 | ||
|
|
05478591a4 | ||
|
|
ead3b1e651 | ||
|
|
27f4c290c4 | ||
|
|
4f248ee981 | ||
|
|
d7397c0125 |
2
.hgtags
2
.hgtags
@@ -73,3 +73,5 @@ fad463ae749b7189dce92f1e42a57ac4ee03987d se3.3.3
|
|||||||
93ed33410df2d2f21229a77ae49c83ece2c50a55 pe2.5.0
|
93ed33410df2d2f21229a77ae49c83ece2c50a55 pe2.5.0
|
||||||
c153aef25e5c9911f2197d13899591c50cf38ffc se3.4.1
|
c153aef25e5c9911f2197d13899591c50cf38ffc se3.4.1
|
||||||
71b7e18613f3790cea18cb0dd8c9c986ce237267 me6.3.1
|
71b7e18613f3790cea18cb0dd8c9c986ce237267 me6.3.1
|
||||||
|
c3d9f91dc9c9d60f370c72bc211f09be3e4fc18d se3.5.0
|
||||||
|
254bce83ad6e56c102d69fd603f6845e2324b470 me6.4.0
|
||||||
|
|||||||
@@ -146,12 +146,12 @@ class DupeGuruME(DupeGuruBase):
|
|||||||
self.directories = Directories(fileclasses=self.directories.fileclasses)
|
self.directories = Directories(fileclasses=self.directories.fileclasses)
|
||||||
self.dead_tracks = []
|
self.dead_tracks = []
|
||||||
|
|
||||||
def _do_delete(self, j, replace_with_hardlinks):
|
def _do_delete(self, j, replace_with_hardlinks, direct_deletion):
|
||||||
# XXX If I read correctly, Python 3.3 will allow us to go fetch inner function easily, so
|
# XXX If I read correctly, Python 3.3 will allow us to go fetch inner function easily, so
|
||||||
# we'll be able to replace "op" below with DupeGuruBase._do_delete.op.
|
# we'll be able to replace "op" below with DupeGuruBase._do_delete.op.
|
||||||
def op(dupe):
|
def op(dupe):
|
||||||
j.add_progress()
|
j.add_progress()
|
||||||
return self._do_delete_dupe(dupe, replace_with_hardlinks)
|
return self._do_delete_dupe(dupe, replace_with_hardlinks, direct_deletion)
|
||||||
|
|
||||||
marked = [dupe for dupe in self.results.dupes if self.results.is_marked(dupe)]
|
marked = [dupe for dupe in self.results.dupes if self.results.is_marked(dupe)]
|
||||||
j.start_job(self.results.mark_count, tr("Sending dupes to the Trash"))
|
j.start_job(self.results.mark_count, tr("Sending dupes to the Trash"))
|
||||||
@@ -164,10 +164,10 @@ class DupeGuruME(DupeGuruBase):
|
|||||||
pass
|
pass
|
||||||
self.results.perform_on_marked(op, True)
|
self.results.perform_on_marked(op, True)
|
||||||
|
|
||||||
def _do_delete_dupe(self, dupe, replace_with_hardlinks):
|
def _do_delete_dupe(self, dupe, replace_with_hardlinks, direct_deletion):
|
||||||
if isinstance(dupe, ITunesSong):
|
if isinstance(dupe, ITunesSong):
|
||||||
dupe.remove_from_library()
|
dupe.remove_from_library()
|
||||||
DupeGuruBase._do_delete_dupe(self, dupe, replace_with_hardlinks)
|
DupeGuruBase._do_delete_dupe(self, dupe, replace_with_hardlinks, direct_deletion)
|
||||||
|
|
||||||
def _create_file(self, path):
|
def _create_file(self, path):
|
||||||
if (self.directories.itunes_libpath is not None) and (path in self.directories.itunes_libpath[:-1]):
|
if (self.directories.itunes_libpath is not None) and (path in self.directories.itunes_libpath[:-1]):
|
||||||
|
|||||||
@@ -135,10 +135,10 @@ class DupeGuruPE(DupeGuruBase):
|
|||||||
DupeGuruBase.__init__(self, view, appdata)
|
DupeGuruBase.__init__(self, view, appdata)
|
||||||
self.directories = Directories()
|
self.directories = Directories()
|
||||||
|
|
||||||
def _do_delete(self, j, replace_with_hardlinks):
|
def _do_delete(self, j, replace_with_hardlinks, direct_deletion):
|
||||||
def op(dupe):
|
def op(dupe):
|
||||||
j.add_progress()
|
j.add_progress()
|
||||||
return self._do_delete_dupe(dupe, replace_with_hardlinks)
|
return self._do_delete_dupe(dupe, replace_with_hardlinks, direct_deletion)
|
||||||
|
|
||||||
marked = [dupe for dupe in self.results.dupes if self.results.is_marked(dupe)]
|
marked = [dupe for dupe in self.results.dupes if self.results.is_marked(dupe)]
|
||||||
j.start_job(self.results.mark_count, tr("Sending dupes to the Trash"))
|
j.start_job(self.results.mark_count, tr("Sending dupes to the Trash"))
|
||||||
@@ -152,7 +152,7 @@ class DupeGuruPE(DupeGuruBase):
|
|||||||
pass
|
pass
|
||||||
self.results.perform_on_marked(op, True)
|
self.results.perform_on_marked(op, True)
|
||||||
|
|
||||||
def _do_delete_dupe(self, dupe, replace_with_hardlinks):
|
def _do_delete_dupe(self, dupe, replace_with_hardlinks, direct_deletion):
|
||||||
if isinstance(dupe, IPhoto):
|
if isinstance(dupe, IPhoto):
|
||||||
try:
|
try:
|
||||||
a = app('iPhoto')
|
a = app('iPhoto')
|
||||||
@@ -168,7 +168,7 @@ class DupeGuruPE(DupeGuruBase):
|
|||||||
except (CommandError, RuntimeError) as e:
|
except (CommandError, RuntimeError) as e:
|
||||||
raise EnvironmentError(str(e))
|
raise EnvironmentError(str(e))
|
||||||
else:
|
else:
|
||||||
DupeGuruBase._do_delete_dupe(self, dupe, replace_with_hardlinks)
|
DupeGuruBase._do_delete_dupe(self, dupe, replace_with_hardlinks, direct_deletion)
|
||||||
|
|
||||||
def _create_file(self, path):
|
def _create_file(self, path):
|
||||||
if (self.directories.iphoto_libpath is not None) and (path in self.directories.iphoto_libpath[:-1]):
|
if (self.directories.iphoto_libpath is not None) and (path in self.directories.iphoto_libpath[:-1]):
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
__version__ = '6.3.1'
|
__version__ = '6.4.1'
|
||||||
__appname__ = 'dupeGuru Music Edition'
|
__appname__ = 'dupeGuru Music Edition'
|
||||||
@@ -1,3 +1,14 @@
|
|||||||
|
=== 6.4.1 (2012-06-04)
|
||||||
|
|
||||||
|
* Fixed bug introduced in 6.4.0 preventing deletions from working. [Mac]
|
||||||
|
|
||||||
|
=== 6.4.0 (2012-06-02)
|
||||||
|
|
||||||
|
* Added a Deletion Options panel.
|
||||||
|
* Greatly improved memory usage for big scans.
|
||||||
|
* Added a keybinding for the filter field. (#182) [Mac]
|
||||||
|
* Upgraded minimum requirements for Ubuntu to 12.04.
|
||||||
|
|
||||||
=== 6.3.1 (2012-04-15)
|
=== 6.3.1 (2012-04-15)
|
||||||
|
|
||||||
* Fixed crash on iTunes library parsing. [Mac]
|
* Fixed crash on iTunes library parsing. [Mac]
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
* Added a Deletion Options panel.
|
* Added a Deletion Options panel.
|
||||||
* Greatly improved memory usage for big scans.
|
* Greatly improved memory usage for big scans.
|
||||||
* Added a keybinding for the filter field. (#182) [Mac]
|
* Added a keybinding for the filter field. (#182) [Mac]
|
||||||
|
* Upgraded minimum requirements for Ubuntu to 12.04.
|
||||||
|
|
||||||
=== 3.4.1 (2012-04-14)
|
=== 3.4.1 (2012-04-14)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user