def success(self, msg, course=False):
        """This function prints already downloaded msg"""
        prefix = (
            "\033[2K\033[1G\r\r"
            + Fore.CYAN
            + Style.DIM
            + "["
            + Fore.MAGENTA
            + Style.BRIGHT
            + "+"
            + Fore.CYAN
            + Style.DIM
            + "] : "
        )
        if course:
            msg = set_color("Course ", level=70) + set_color(f"'{msg}'\r\n", level=55)
            string = prefix + msg
            sys.stdout.write(string)
            sys.stdout.flush()
        if not course:
            msg = (
                set_color(f"{msg} (", level=70)
                + set_color("done", level=30)
                + set_color(")\r\n", level=70)
            )
            string = prefix + msg
            sys.stdout.write(string)
            sys.stdout.flush()
This function prints already downloaded msg
udemy/logger.py