mirror of https://github.com/mkody/aniSched
Generate my anime watch schedule from AniList
https://kdy.ch/aniSched/
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
1 year ago | |
---|---|---|
icons | 2 years ago | |
queries | 2 years ago | |
.gitignore | 2 years ago | |
LICENSE | 2 years ago | |
README.md | 2 years ago | |
config.php.dist | 2 years ago | |
fetch.php | 2 years ago | |
funcs.php | 1 year ago | |
index.php | 1 year ago | |
login.php | 2 years ago | |
package.json | 3 years ago | |
styles.css | 1 year ago | |
yarn.lock | 3 years ago |
README.md
aniSched
- Put this project in a webserver with PHP
- Make sure
token.txt
can't be reached - Make sure PHP can write in the folder
- Pull nodejs deps for our base CSS (
yarn
ornpm i
) - Copy
config.php.dist
toconfig.php
and edit it- Set
$client_id
and$client_secret
from your AniList app - Set
$redirect_uri
to the URL to redirect back to thelogin.php
page
- Set
- Go to
/login.php
in your browser and login to AniList - Launch
php fetch.php
in CLI - Open
/index.php
in your browser to see the results - Add a cron to run
fetch.php
every Monday morning (past 00:00 UTC) - Make the changes you want in
config.php
to fit to your liking
Goals
fetch.php
- To be run on Mondays
- Load animes I marked green in AniChart
- Get the airing schedule from AniList and filter with the marked ones
- Get the rest of my watch list (normally the "off-season" anime)
index.php
- Weekday: Start at
$startHour
(ie.21
(9pm)) - Weekend: Start at
$weekendStartHour
(ie.14
(2pm)) - Add the shows airing on the day and with the time they should be online (air time + 1h)
- If there's a gap between two new airing shows, try to fill with off-season anime if appropriate
- If there's less than two new shows on a weekday (
$min
), pull from off-season anime- On weekends,
$min
is set to half the count of the remaining off-season anime for the week
- On weekends,