Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Human-readable names for saved files #11

Open
robertf opened this issue Jun 4, 2023 · 0 comments
Open

Human-readable names for saved files #11

robertf opened this issue Jun 4, 2023 · 0 comments

Comments

@robertf
Copy link

robertf commented Jun 4, 2023

I'm not familiar with your radio-scanning application and have just been looking for a open-source sound-activated audio recorder for Windows that produces time-stamped files, to spy on my cat. Is there a particular rationale for using UNIX timestamps as file names rather than human-readable names like yyyymmdd-hhmmss? I've modified the source code to give the latter behaviour, which is more convenient for me. I have no experience with forks and pull requests, the change is trivial, and I don't know if this feature is even desirable, so I'll just present the changes here:

		secs = int(fname[:10])	#R
		fnameMP3 = time.strftime("%Y%m%d_%H%M%S",time.localtime(secs))+".mp3" #R
#R		copyfile(fname,'./audiosave/'+fname)
		copyfile(fname,'./audiosave/'+fnameMP3)

Thank you for making this nice application available.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant