Fixed bug where modulo functions returned float instead of int

This commit is contained in:
Jan
2019-09-26 20:44:02 +02:00
parent ce9a4837e1
commit eaaeadf642
2 changed files with 26 additions and 24 deletions

View File

@@ -13,13 +13,22 @@ class ClockyTracklist:
self.__verbose=verbose
self.__sort=sort
self.__reloaded=False
self.supportedformats=EXTENSIONS
p=Path(self.path)
if(not p.is_dir()):
if not p.exists():
print("ERROR: directory \""+path+"\" does not exist")
exit();
if not p.is_dir():
print("ERROR: \""+path+"\" is not an directory")
exit();
self.__ReadTrackList()
if self.count==0:
print("ERROR: no (supported) files found in directory \""+path+"\"")
exit();
if(self.__verbose):
self.ShowTrackList()