|
|
7 yıl önce | |
|---|---|---|
| bookworm | 7 yıl önce | |
| docs | 7 yıl önce | |
| front | 7 yıl önce | |
| screenshots | 10 yıl önce | |
| services | 7 yıl önce | |
| .gitignore | 7 yıl önce | |
| README.md | 7 yıl önce | |
| nginx_file | 8 yıl önce | |
| requirements.txt | 8 yıl önce | |
| setup.py | 7 yıl önce |
To remove the initial roundtrip when looking for books, I keep a cache in postgres.
To populate this cache, I triggered each of the bot's LIST command, at #ebooks
I executed:
@pondering42
@dv8
@shytot
@dragnbreaker
@Xon-new
Then fetched all of the files, unarchived, concatenated them together and
deduped them.
On the resulting file I ran parse.py which inserts it into the database.
sudo cp services/bookworm@.service /etc/systemd/system/
sudo systemctl daemon-reload
sudo systemctl start bookworm@ircclient.service
sudo systemctl start bookworm@file_fetcher.service
sudo systemctl start bookworm@unpacker.service
sudo systemctl start bookworm@web.service
In charge of processing received commands and sending them via IRC.
Will forward details from DCC to the file fetcher via redis.
In charge of fetching files specified via DCC.
Will store the file in S3 and notify file details to the unpacker.
In charge of taking a file (as provided from IRC), unpacking it and, if necessary, converting it to mobi.
/books/status)/book/search?terms=.../book/fetch/--
The kindle has a very basic webbrowser (I believe it renders up to HTML4, CSS2.1), which can be used to download (available) books directly.
At the moment I re-route at nginx based on user agent
To test, you can use dillo which has a set of features similar to the kindle's web browser.
if ($http_user_agent ~* "armv7l") {
rewrite ^/(.*)$ /books/kindle;
}
To be re-implemented