2
## 01_eyed3_delete_frame by Alexander Wirt <formorer@debian.org>
4
## All lines beginning with `## DP:' are a description of the patch.
5
## DP: Fixes a bug when deleting a frame. Original patch was from
6
## DP: Aaron Crane <debbugs@aaroncrane.co.uk>
9
echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
13
[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts
14
patch_opts="${patch_opts:--f --no-backup-if-mismatch}"
17
-patch) patch $patch_opts -p0 < $0;;
18
-unpatch) patch $patch_opts -p0 -R < $0;;
20
echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
27
--- src/eyeD3/tag.py.orig 2005-03-20 11:38:24.000000000 +0000
28
+++ src/eyeD3/tag.py 2005-03-20 11:41:43.000000000 +0000
30
def setDate(self, year, month = None, dayOfMonth = None,
31
hour = None, minute = None, second = None, fid = None):
32
if not year and not fid:
33
- dateFrame = self.getDate;
34
- self.frames.removeFramesByID(dateFrame.id);
35
+ dateFrame = self.getDate();
37
+ self.frames.removeFramesByID(dateFrame[0].header.id);
40
self.frames.removeFramesByID(fid);