167 Commits

Author SHA1 Message Date
jomo
d65dbd83a2 fix seconds / ms 2014-11-30 02:49:42 +01:00
jomo
48e1f54336 add imagecleaner, fix #4 2014-11-30 02:48:54 +01:00
jomo
332330f68e replacing all single quotes with double quotes
Until now it was a big mess with some strings using single quotes and some others double quotes
We were using way more double quotes, so I chose to use them globally
2014-11-30 00:07:05 +01:00
jomo
1a7f456c83 fix #23 2014-11-29 23:57:48 +01:00
jomo
4883531127 merge :octocat: 2014-11-29 23:16:50 +01:00
jomo
e01cff53b2 re-add checking for existing file before downloading 2014-11-29 23:15:43 +01:00
Jake
df592034f6 Fix callback 2014-11-29 15:35:14 -06:00
jomo
db223f1dc6 fix tests 2014-11-29 21:24:59 +01:00
Jake
db5a94e44e Remove force-flush 2014-11-29 12:24:33 -06:00
Jake
a4c11f396f Rewrite skin support 2014-11-29 12:21:35 -06:00
Jake
caf7c731da Move extraction logic 2014-11-29 10:55:51 -06:00
jomo
b98cfa8918 log if uuid was too old or not known 2014-11-29 17:26:24 +01:00
jomo
3d708d2342 fix #22, caused by @e6481e3 2014-11-29 17:15:59 +01:00
jomo
95ebaf86c5 use Etag, fix #18 2014-11-25 00:35:25 +01:00
jomo
040aeb1c0c Don't store helm image when user has no helm, fix #16 2014-11-24 23:24:19 +01:00
jomo
55ed86a3f6 skin support, fix #15 2014-11-24 00:53:39 +01:00
jomo
796f410248 allow custom config 2014-11-23 23:19:32 +01:00
jomo
dd8a3b91e2 using our own logging, allows us to do some eventual modifications 2014-11-23 23:02:45 +01:00
jomo
e6481e3c73 bug fixes, improvements, fix #13, fix #14 2014-11-23 21:53:42 +01:00
jomo
3216833887 allow dashed uuid 2014-11-22 21:28:54 +01:00
jomo
3830b3ccf4 more tests w/ timeouts 2014-11-22 21:17:49 +01:00
jomo
42dae4582b logging stuff 2014-11-22 18:04:45 +01:00
jomo
df3f008188 fix typo 2014-11-22 17:20:25 +01:00
jomo
1aeeb19fcf only flush redis when running on heroku; don't delete files on start (see @46f36e9fede3984e85cb1cafa7a4fea67a56176d) 2014-11-22 17:16:55 +01:00
jomo
04066591c5 add comment about heroku + deleting files 2014-11-22 02:27:20 +01:00
jomo
170ca55535 Revert "don't flush redis on start, don't delete images on start"
Ah, we did this because heroku.
2014-11-22 02:24:35 +01:00
jomo
7afeafc21a don't flush redis on start, don't delete images on start
I think we initially did this to debug some problems with broken data in redis
2014-11-22 01:50:19 +01:00
jomo
46f36e9fed speed improvement: don't download files that exist on disk 2014-11-22 01:46:34 +01:00
jomo
9dde7e31b5 don't cache on fail 2014-11-22 01:30:50 +01:00
jomo
749403e81b fix uuid_valid 2014-11-22 00:32:47 +01:00
jomo
5b5462393d nicer logging format 2014-11-22 00:23:44 +01:00
jomo
e828f976f1 removing some errors in networking.skin_file callback
404 shouldn't return an error, null is fine. Setting the error causes that non-existing skins aren't cached. Thus we'd always make a new request to mojang, which will result in hitting the (sessionserver's) rate limit
Removing the error for Too Many Requests for the same reason.
2014-11-22 00:22:08 +01:00
Jake
c717f0f293 Fix an issue with errors being null in skin_file callback 2014-11-20 22:10:07 -06:00
Jake
8d73f50dd4 Fix README merge 2014-11-20 20:02:36 -06:00
Jake
f95ce50abc Username support 2014-11-20 20:01:39 -06:00
jomo
b7a61bbc36 well shit. 💩💩💩💩💩 2014-11-17 02:52:28 +01:00
jomo
03306dff08 better X-Storage-Type
none: Cached: User has no skin.
cached: Skin cached
checked: cached & checked for updates. No (new) skin
downloaded: checked, Skin changed or unknown, downloaded.
error: (error)
2014-11-10 23:55:56 +01:00
jomo
a6514ad104 add missing status to comments 2014-11-09 20:57:12 +01:00
jomo
653590228f cache valid UUIDs without skin 2014-11-08 01:16:46 +01:00
jomo
a1eaaa3de3 delete faces + helms on start (relevant: #4)
since redis is flushed, we don't know about these files anyway
2014-11-07 23:05:29 +01:00
jomo
e592048ec1 always show image, get steve/alex by UUID, send correct HTTP status codes 2014-11-05 01:40:03 +01:00
jomo
6eac9b907d clarify config options 2014-11-05 00:12:08 +01:00
jomo
2a13d1e1c5 💩 💩 💩 💩 genius me
░░░░░░░░░░░░░░░░░░░▄▄▄▄▄▄░░░░░░░░░
░░░░░░░░░░░░█▀█▄▄▀▀░░░░░░▀█▄░░░░░░
░░░░░░░█▀▀▀▀░░░░░░░░░░░░░░░░▀▄▄▄▄░
░░░░░▄▄▀░░░▄█░░░░░░░░░░░░░░░░▄▄██▄
░░░░░█░░▄█▀░░▀▀▀▀▀▄▄░░░░░░░▄▄█░▀█░
░░░░░█░▄▀░░░░░░░░░░░▀▀▀▀▄▄███░░░▀▄
░░░░░▀▄█▄███▄▄░░░▄▄▄▄░░░░▄▀░░░░░░█
░░░░░░█▄█▀██▀░░░░█▀▄▄▀░░█░░░░░░░█▀
░░░░░██░██▀░░░░░▄█▄███░░█░░░░░░░█░
░░░▄▄█▀█▄░░▄▄▄▄░░█░░░░▄▀░░░░░░░█░░
░▄▀░░███▄░░▀▀░▀░░░░░▄█▄░░░░░░░█▀░░
█░░░░█░█▄▄▄▄▄▄▄░░░░░█▀███░░░░░█░░░
█░░░░██████▀▀▀█░░░░░░██░█▄▄▄▄▄█░░░
░░░░░██░▄██▀▀██░█░░░▄▀██▀░░░░▀▀▀▄░
░░░░░█▀██░░▄███░█░░░█▀░░░░░░░░░░░█
░░░░░░▄█▀▀▀██▀░░░░▄▀░░░░░░░░░░░░░▀
░░░░░░▀▄░░░░░░░░▄▀░░░░░░░░░░░░░░░░
░░░░░░░░█▄▀▀▀▄▀▀░░░░░░░░░░░░░░░░░░
2014-11-05 00:07:39 +01:00
jomo
b95d011933 use seconds (as stated in config)
timestamps in JS are ms. multiplied config value with 1000 so it's converted to ms
2014-11-05 00:06:15 +01:00
jomo
5f63cfac78 fix stupid bug that would result in never updating images
redis gives us a string. Thus, <time> + <number> resulted in '<time><number>' which was quite a big number and wouldn't ever be bigger than a valid Date
2014-11-05 00:04:50 +01:00
jomo
939d8f10a4 update file date on hash update (face only) 2014-11-04 23:43:39 +01:00
jomo
a6c74c9831 use 160px as default - 180 results in irregular resized pixels (22,5px) 2014-11-03 02:12:58 +01:00
jomo
f71f11aa87 flush redis after connection established, improve bulk.sh 2014-11-03 01:11:19 +01:00
Jake
5a4643f334 Add Redis getter 2014-11-02 10:47:40 -06:00
jomo
b59d6ced07 cache non-existing UUIDs 2014-11-02 10:32:35 -06:00