[SCM] morituri/master: * configure.ac: * morituri/Makefile.am: * morituri/result (added): * morituri/result/result.py (added): * morituri/result/__init__.py (added): * morituri/result/Makefile.am (added): Add classes to store track and rip results in.
js at users.alioth.debian.org
js at users.alioth.debian.org
Sun Oct 19 20:09:05 UTC 2014
The following commit has been merged in the master branch:
commit 9a26d7f6a482893a990f3edba4622fb497a4755b
Author: Thomas Vander Stichele <thomas (at) apestaart (dot) org>
Date: Fri Jun 5 07:57:54 2009 +0000
* configure.ac:
* morituri/Makefile.am:
* morituri/result (added):
* morituri/result/result.py (added):
* morituri/result/__init__.py (added):
* morituri/result/Makefile.am (added):
Add classes to store track and rip results in.
diff --git a/ChangeLog b/ChangeLog
index a2b4a31..cea6dd5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2009-06-05 Thomas Vander Stichele <thomas at apestaart dot org>
+
+ * configure.ac:
+ * morituri/Makefile.am:
+ * morituri/result (added):
+ * morituri/result/result.py (added):
+ * morituri/result/__init__.py (added):
+ * morituri/result/Makefile.am (added):
+ Add classes to store track and rip results in.
+
2009-06-04 Thomas Vander Stichele <thomas at apestaart dot org>
* morituri/common/common.py:
diff --git a/configure.ac b/configure.ac
index e647b01..5af2998 100644
--- a/configure.ac
+++ b/configure.ac
@@ -57,6 +57,7 @@ morituri/configure/installed.py
morituri/extern/Makefile
morituri/image/Makefile
morituri/program/Makefile
+morituri/result/Makefile
morituri/test/Makefile
doc/Makefile
misc/Makefile
diff --git a/morituri/Makefile.am b/morituri/Makefile.am
index 5585b83..d5ddd64 100644
--- a/morituri/Makefile.am
+++ b/morituri/Makefile.am
@@ -5,4 +5,4 @@ morituridir = $(PYTHONLIBDIR)/morituri
morituri_PYTHON = \
__init__.py
-SUBDIRS = common configure extern image program rip test
+SUBDIRS = common configure extern image program result rip test
diff --git a/morituri/result/Makefile.am b/morituri/result/Makefile.am
new file mode 100644
index 0000000..d3390c5
--- /dev/null
+++ b/morituri/result/Makefile.am
@@ -0,0 +1,7 @@
+CLEANFILES = *.py{c,o}
+
+morituridir = $(PYTHONLIBDIR)/morituri/result
+
+morituri_PYTHON = \
+ __init__.py \
+ result.py
diff --git a/morituri/__init__.py b/morituri/result/__init__.py
similarity index 100%
copy from morituri/__init__.py
copy to morituri/result/__init__.py
diff --git a/morituri/result/result.py b/morituri/result/result.py
new file mode 100644
index 0000000..8ca8cea
--- /dev/null
+++ b/morituri/result/result.py
@@ -0,0 +1,60 @@
+# -*- Mode: Python; test-case-name: morituri.test.test_result_result -*-
+# vi:si:et:sw=4:sts=4:ts=4
+
+# Morituri - for those about to RIP
+
+# Copyright (C) 2009 Thomas Vander Stichele
+
+# This file is part of morituri.
+#
+# morituri is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# morituri is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with morituri. If not, see <http://www.gnu.org/licenses/>.
+
+class TrackResult:
+ """
+ @ivar testcrc: 4-byte CRC for the test read
+ @type testcrc: int
+ @ivar copycrc: 4-byte CRC for the copy read
+ @type copycrc: int
+ """
+ number = None
+ filename = None
+ pregap = 0 # in frames
+
+ peak = 0.0
+ quality = 0.0
+ testcrc = None
+ copycrc = None
+ accurip = False # whether it's in the database
+ accuripCRC = None
+ accuripDatabaseCRC = None
+ accuripDatabaseConfidence = None
+
+class RipResult:
+ """
+ I hold information about the result for rips.
+ I can be used to write log files.
+
+ @ivar offset: sample read offset
+ """
+
+ offset = 0
+ toctable = None
+ artist = None
+ title = None
+
+ vendor = None
+ model = None
+
+ def __init__(self):
+ self.tracks = []
--
morituri packaging
More information about the pkg-multimedia-commits
mailing list