chenxiaolong / BCR

A Basic Call Recorder for rooted Android devices
GNU General Public License v3.0
1.76k stars 113 forks source link

Delete Record #433

Closed Savaturkey closed 1 year ago

Savaturkey commented 1 year ago

I enjoy using your application. There is a little problem.It records, but I set a period of 7 days for it to delete previous recordings, but it doesn't.

chenxiaolong commented 1 year ago

Can you enable debug mode by long pressing BCR's version number, make a call, and then upload the log file that it saves in the output directory?

Savaturkey commented 1 year ago

29-09-2023 ~ 09_34out 08507240724_İş BANKASI.log.txt

Can you open the file? How can I send this to you?

chenxiaolong commented 1 year ago

Thanks for the logs. I think it's caused by the dd-MM-yyyy ~ HH:mm timestamp format. Android does not support : inside filenames, so the HH:mm gets renamed to HH_mm when the file is saved. Later, when BCR looks at the old files, the colon is missing, so it doesn't understand the timestamp and nothing is cleaned up.

I think you can fix this by simply changing : to _ in your filename template.

Savaturkey commented 1 year ago

My log format is {date:dd-MM-yyyy ~ HH:mm}[{direction}|][ {phonenumber}|][[{contact_name}|{caller_name}|{call_log_name}]|] ..........

Savaturkey commented 1 year ago

The output is also 28-09-2023 ~ 14_59in 0547673663_savaturjey In this way, it is very understandable. If this is the problem, I would definitely prefer to delete the records myself. Thank you