{"action":"opened","issue":{"url":"https://api.github.com/repos/groovesquid/groovesquid/issues/58","labels_url":"https://api.github.com/repos/groovesquid/groovesquid/issues/58/labels{/name}","comments_url":"https://api.github.com/repos/groovesquid/groovesquid/issues/58/comments","events_url":"https://api.github.com/repos/groovesquid/groovesquid/issues/58/events","html_url":"https://github.com/groovesquid/groovesquid/issues/58","id":92695842,"number":58,"title":"Idea for bit rate","user":{"login":"Seaspider1","id":11847081,"avatar_url":"https://avatars.githubusercontent.com/u/11847081?v=3","gravatar_id":"","url":"https://api.github.com/users/Seaspider1","html_url":"https://github.com/Seaspider1","followers_url":"https://api.github.com/users/Seaspider1/followers","following_url":"https://api.github.com/users/Seaspider1/following{/other_user}","gists_url":"https://api.github.com/users/Seaspider1/gists{/gist_id}","starred_url":"https://api.github.com/users/Seaspider1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Seaspider1/subscriptions","organizations_url":"https://api.github.com/users/Seaspider1/orgs","repos_url":"https://api.github.com/users/Seaspider1/repos","events_url":"https://api.github.com/users/Seaspider1/events{/privacy}","received_events_url":"https://api.github.com/users/Seaspider1/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-02T17:53:52Z","updated_at":"2015-07-02T17:53:52Z","closed_at":null,"body":"As a suggestion, if you have the capability to get the download size of a song before it is downloaded and divide by the duration, you could estimate the bit rate.\r\n\r\nFor a 15 MB song that has a duration of 6:30:\r\n\r\n15 MB * 1024 kB per 1 MB * 8 bits per Byte = 122880 kb\r\n6:30 = 390 seconds\r\n122880 kb / 390 seconds ≈ 315 kbps (actual is 320 kbps)\r\nIf a more accurate measure of the size of the file is used, it can be closer to the actual bit rate.\r\n\r\nI understand that if the size or duration is not accurately retrieved, then this breaks down.  Same with a variable bit rate.  However, it may work as an approximation."}}