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

Are length and total_time same or different? #43

Open
shacker opened this issue May 18, 2017 · 3 comments
Open

Are length and total_time same or different? #43

shacker opened this issue May 18, 2017 · 3 comments

Comments

@shacker
Copy link
Collaborator

shacker commented May 18, 2017

Spot-checking my library, these two fields seem to yield the same results. Is there any case where they're different? If not, should we drop one of them? Which one?

@NathanDotTo
Copy link
Collaborator

NathanDotTo commented May 18, 2017 via email

@shacker
Copy link
Collaborator Author

shacker commented May 18, 2017

Per the ticket title - length and total_time
(song.length and song.total_time)

@serv-inc
Copy link

serv-inc commented Sep 30, 2017

They seem to be the same (modulo conversion to int): https://github.com/liamks/libpytunes/blob/master/libpytunes/Library.py#L82 says:

s.length = int(attributes.get('Total Time')) if attributes.get('Total Time') else None

The XML calls it Total Time.

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

3 participants