- Go to https://console.developers.google.com/apis/credentials
- Go to OAuth consent screen
- Set Email address and Product name shown to users
- Create OAuth client ID -> Other
- Download OAuth 2.0 client ID as json, rename it to client_secret.json then move to current folder
node index.js
- Go to http://localhost:5321/login to create credentials
- Each time there are a post request to http://localhost:5321/fetch/:spreadsheets_id it will fetch new ep from horriblesubs
Request content type must be json. Body must have bittorrent_url param which contain bittorent url.
{
"bittorrent_url": "http://admin:[email protected]:9090"
}
Sheet name MUST be Ongoing
. First column is url to anime, second column is current newest episode.
Url | Episode |
---|---|
https://www.shanaproject.com/follows/series/948152/ | 0 |