Modified playlist reader program to improve duration logic using divmod()