Apply writeTag according to tagged function, which return Bool value.
Clear playlist after song end to avoid replay.