self.errors: int = 0
self.skipped: int = 0
self.duplicates: int = 0
+ self.removed: int = 0
+ self.updated: int = 0
self.tasks: int = 0
self.converted: int = 0
self.copied: int = 0
- self.updated: int = 0
- self.removed: int = 0
def add(self, stats) -> None:
self.errors += stats.errors
self.skipped += stats.skipped
self.duplicates += stats.duplicates
+ self.removed += stats.removed
+ self.updated += stats.updated
self.tasks += stats.tasks
self.converted += stats.converted
self.copied += stats.copied
- self.updated += stats.updated
- self.removed += stats.removed
# Main converter class. Thread safe.
class Converter:
self._log("From " + str(trackCount) + " tracks in "
+ str(len(libPlaylists)) + " playlists:"
- + " Errors " + str(stats.errors)
- + " Skipped " + str(stats.skipped)
- + " Duplicates " + str(stats.duplicates)
- + " Tasks " + str(stats.tasks)
- + " Converted " + str(stats.converted)
- + " Copied " + str(stats.copied)
- + " Updated " + str(stats.updated)
- + " Removed " + str(stats.removed) + ".")
+ + " Errors " + str(stats.errors) + ","
+ + " Skipped " + str(stats.skipped) + ","
+ + " Duplicates " + str(stats.duplicates) + ","
+ + " Removed " + str(stats.removed) + ","
+ + " Updated " + str(stats.updated) + ","
+ + " Converted " + str(stats.converted) + ","
+ + " Copied " + str(stats.copied) + ".")
# Main function started by threads. Process queue elements
# until 'None' is found or stop signal is received.