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
Jake
1464604536
Flush when starting from Heroku
2014-11-02 10:06:05 -06:00
Jake
a5f9ff462b
Add Procfile + __dirname
2014-11-02 08:55:54 -06:00
Jake
57e234134e
Fix url
2014-11-02 08:22:45 -06:00
Jake
07a24f4290
Rediscloud
2014-11-02 08:21:19 -06:00
jomo
b146a5ea79
merge dem shiet
2014-11-02 15:18:16 +01:00
jomo
d6a1117fba
add support for heroku redis, catch errors, more logging, auto reconnect
2014-11-02 15:17:03 +01:00
Jake
ca7aafbcaa
Seperate methods
2014-11-02 07:57:39 -06:00
Jake
5d062f759f
Auth client
2014-11-02 07:54:28 -06:00
Jake
fffc56ad81
Support redis on Heroku
2014-11-02 07:51:08 -06:00
jomo
d9ffa6cc69
make logs useful
2014-11-02 05:24:22 +01:00
jomo
b513883d93
use outdated hash on network errors, fixes #5 🍺
2014-11-02 05:15:38 +01:00
jomo
da8ba52717
add redis caching, closes #3 . More logs, closes #9
2014-11-02 04:12:00 +01:00
jomo
5f8465c06a
fix bug that didn't return error
2014-11-01 21:29:43 +01:00
jomo
1606fac89b
add support for helmets (?helm), closes #2 . changed '/:uuid/123' to '/:uuid?size=123', closes #10 . Bugfixes
2014-11-01 21:03:42 +01:00
jomo
d84d55f533
better error handling
2014-10-30 00:21:16 +01:00
jomo
a07ca210d6
fix undefined skins_dir, add http_timeout to config
2014-10-29 21:23:36 +01:00
jomo
cc159d3620
split code into more modules, fixes #8
2014-10-29 19:53:27 +01:00