We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Maybe cache the info within the abook folder?
Sample code for mp3:
#!/usr/bin/python import glob from mutagen.mp3 import MP3 files = glob.glob ('*.mp3') myTotal = 0 def fix_time( seconds ): hours = int(seconds) / 3600 seconds = seconds % 3600 minutes = int(seconds) / 60 seconds = seconds % 60 seconds = int(seconds) return "%d:%02d:%02d" % (hours, minutes, seconds) for eachfile in files: audio = MP3(eachfile) eachTime = fix_time( audio.info.length ) print("File: %s - Length: %s" % (eachfile, eachTime)) myTotal = myTotal + audio.info.length newTotal = fix_time( myTotal ) print("Total time: %s" % (newTotal))
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Maybe cache the info within the abook folder?
Sample code for mp3:
The text was updated successfully, but these errors were encountered: