Fixed bug where modulo functions returned float instead of int
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user