Userscripts icon indicating copy to clipboard operation
Userscripts copied to clipboard

Bad release date from iTunes?

Open jesus2099 opened this issue 6 years ago • 5 comments

This iTunes page says released 2010-07-27 but if you import it, it will take 2010-07-26…?

jesus2099 avatar Mar 06 '19 07:03 jesus2099

Isn't this just iTunes having multiple date values?

augustjanse avatar Mar 09 '19 09:03 augustjanse

I see in https://itunes.apple.com/lookup?id=379320560&entity=song&limit=200&country=au that each track has a release date.

https://github.com/dufferzafar/Userscripts/blob/3691200ea1bef03f4699df6307c6a2d706ff06bd/MB-Import-From-iTunes.user.js#L43-L47

I think current code (above) takes first found track release date.

The imported album release date should be the latest track release date, not the earliest date nor the first track date. It seems to be how iTunes website works, for its own album page, BTW.

jesus2099 avatar Mar 10 '19 08:03 jesus2099

That makes sense. Nice dig!

augustjanse avatar Mar 10 '19 10:03 augustjanse

I did just a quick look, it is possible that there is, even better, a global release date in that stuff.

jesus2099 avatar Mar 10 '19 12:03 jesus2099

Actually there is a final release date, the guitar in this result and it is what the user script uses. But in this case, some tracks are more recent and the iTunes web page does take the most recent track date and so should the user script do, even if it is strange.

jesus2099 avatar Mar 10 '19 19:03 jesus2099