Skip to content
This repository was archived by the owner on Dec 6, 2019. It is now read-only.

Commit 884c9f7

Browse files
committed
Fix incorrect frames to MSF/HMSF conversion
Tagged a new release (v0.4.1) too. Signed-off-by: JoeLametta <[email protected]>
1 parent 928cc3d commit 884c9f7

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ carefully mimics EAC's generated ones (except for the checksum).
1414
The logger should be feature complete so future development will consist
1515
mainly of bugfixes.
1616

17-
If you're looking for the analogous [whipper](https://github.com/whipper-team/whipper) plugin,
17+
If you're looking for the analogous (legacy) [whipper](https://github.com/whipper-team/whipper) plugin,
1818
it can be found [here](https://github.com/whipper-team/whipper-plugin-eaclogger).
1919

2020
## License

eaclogger/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '0.4.0'
1+
__version__ = '0.4.1'

eaclogger/logger/eac.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def _framesToMSF(self, frames):
1919
f = frames % common.FRAMES_PER_SECOND
2020
frames -= f
2121
s = (frames / common.FRAMES_PER_SECOND) % 60
22-
frames -= s * 60
22+
frames -= s * common.FRAMES_PER_SECOND
2323
m = frames / common.FRAMES_PER_SECOND / 60
2424
return "%2d:%02d.%02d" % (m, s, f)
2525

@@ -32,9 +32,9 @@ def _framesToHMSF(self, frames):
3232
f = frames % common.FRAMES_PER_SECOND
3333
frames -= f
3434
s = (frames / common.FRAMES_PER_SECOND) % 60
35-
frames -= s * 60
36-
m = frames / common.FRAMES_PER_SECOND / 60
37-
frames -= m * 60
35+
frames -= s * common.FRAMES_PER_SECOND
36+
m = (frames / common.FRAMES_PER_SECOND / 60) % 60
37+
frames -= m * common.FRAMES_PER_SECOND * 60
3838
h = frames / common.FRAMES_PER_SECOND / 60 / 60
3939
return "%2d:%02d:%02d.%02d" % (h, m, s, f)
4040

0 commit comments

Comments
 (0)