phaistonian / MyExtensions

Are you an extensions developer? Keep track of your Chrome extensions. Be notified for new comments, ratings and more!
https://chrome.google.com/webstore/detail/igejgfmbjjjjplnnlgnbejpkpdajkblm
52 stars 24 forks source link

Updates broken... once more with feeling #12

Closed neocotic closed 12 years ago

neocotic commented 12 years ago

It seems Google introduced a required pv parameter in the call to /webstore/ajax/detail for getMeta. Strangely, the parameter must be a certain time (in seconds, not milliseconds) or a 441 error is returned and the update breaks.

However, I found that hard-coding the value (1323796576 - Tue, 13 Dec 2011 17:16:16 GMT) fixed this, but this felt like a temporary fix as this date only represents yesterday, so I've re-implemented the call to /webstore/detail in getMeta which extracts the value from the HTML, where it exists in a <script/> source URL.

Works for now at least. Until they break it again.