From e3bce09b5b3f49d0b309ea3335e1356a302f3020 Mon Sep 17 00:00:00 2001 From: Steve Eichblatt Date: Fri, 9 Dec 2022 21:29:28 -0500 Subject: [PATCH] Fix type error (#328) * updated for dac * adding setbreaks for D&C * more setbreaks * work with extended setbreaks * more setbreaks * formatting plus small fixes * test_update fix * state fixes * dso * fix playstate * faster loop * state path fixes * print warning message * set break fixes * Use set data to get venue for all bands with set data * gitignore and formatting * Test/reconfigure (#324) * move options handling to config.py * optd fixes * don't import options * hard-coded options path * move parms.dbpath to config.DB_PATH * bugfix * testing fix for joel * move more lines to the try/catch * better warning message * rownumber printing so we can see where state failures occur * don't print a million error msgs * remove rownum counter * sort order fix * cleanup * remove pickle dependency * delete commented code * fix end of tape issues, again! * show triangle * import order * handle weird cases where a tape has been removed * update tag * Phishin fix --- timemachine/.latest_tag | 2 +- timemachine/controls.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/timemachine/.latest_tag b/timemachine/.latest_tag index 0d0c52f..66d62a8 100644 --- a/timemachine/.latest_tag +++ b/timemachine/.latest_tag @@ -1 +1 @@ -v1.4.0 +v1.4.1 diff --git a/timemachine/controls.py b/timemachine/controls.py index d776d58..582e227 100644 --- a/timemachine/controls.py +++ b/timemachine/controls.py @@ -950,7 +950,7 @@ def get_current(self): try: self.dict['VOLUME'] = self.player.get_prop('volume') self.dict['TRACK_NUM'] = self.player._get_property('playlist-pos') - if isinstance(self.player.tape, Archivary.GDTape): # type(None)): + if not isinstance(self.player.tape, type(None)): # could be more specific, but needs to cover all archive types self.dict['TAPE_ID'] = self.player.tape.identifier self.dict['VENUE'] = self.player.tape.venue() if (self.dict['TRACK_NUM']) < len(self.player.playlist):