levelsync - automatically download Rhythm Doctor levels.
Make sure you have Deno installed, and then run the following in a terminal:
deno install -fgr --allow-read --allow-write --allow-net https://cdn.jsdelivr.net/gh/0f-0b/levelsync@main/main.tslevelsync [OPTION]... OUTPUTlevelsync synchronizes the level library located at OUTPUT with
rhythm.cafe, updating and removing levels as needed.
-
-y,--yeetedPATHArchive removed levels to
PATHinstead of deleting them. -
-d,--databasePATHCache the level database to
PATH. Defaults to./orchard.db. -
-c,--concurrencyNUMBERDownload a maximum of
NUMBERlevels simultaneously. Defaults to1. -
-a,--approved-onlyOnly download peer reviewed levels.
-
--max-filesNUMBERDo not download levels that contain more than
NUMBERfiles. Defaults to10000. -
--max-sizeSIZEDo not download levels that decompresses to more than
SIZEbytes. Defaults to500000000. -
-n,--dry-runShow levels to be added or removed but do not actually update them.
-
--orchardURLDownload the level database from
URL. Defaults tohttps://datasette.rhythm.cafe/rdlevels.db. -
-h,--helpDisplay a summary of options and exit.
The exit status is one of the following:
| Status | Meaning |
|---|---|
| 0 | No error has occurred. |
| 1 | One or more errors occurred while adding or removing levels. |
| 3 | An error occurred while updating the level database. |
| 4 | A previous run held the lock but has not released it. |
You might want to schedule levelsync to run periodically. For example with cron:
0 0 * * * levelsync '/path/to/Rhythm Doctor/Levels'- GitHub repository: https://github.com/0f-0b/levelsync.
- The original levelsync: https://github.com/huantianad/levelsync.