Skip to content
This repository has been archived by the owner on Sep 30, 2023. It is now read-only.

Commit

Permalink
shouldn't exit
Browse files Browse the repository at this point in the history
  • Loading branch information
phanirithvij committed Dec 28, 2019
1 parent cd55071 commit 091375b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
20 changes: 12 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,23 +28,21 @@ cd twist.moe/
> for now it requires `curl` or `wget` and `bash` on `cmder`
```shell

bin/twist.exe <urls or anime-ids>
# or
bin/twist.exe
# A prompt will
```

### The above step will make the directory of the anime in ./Anime/

This is how it should look till here
![usage](https://user-images.githubusercontent.com/29627898/61578109-2b403c80-ab0f-11e9-9db3-aab05afd56e0.png)
> The above step will make the directory of the anime in ./Anime/
### Go to that directory
> Go to that directory
```shell
cd Anime/#<anime_name>
./download.sh
```

animelist.txt will soon contain all the anime_names that you've used in `startp.sh`

## TODO

1. [ ] Add a proper database
Expand Down Expand Up @@ -72,4 +70,10 @@ To generate one for yourself
python3 allanime.py filename.json
```

### To build

```shell
dart2native.bat lib/main.dart -o bin/twist.exe # bin/twist on linux
```

This project was inspired by [anime downloader](https://github.com/vn-ki/anime-downloader)
4 changes: 0 additions & 4 deletions lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ void processUrl(String url) async {
listFile.deleteSync();
}

print("Fetching info...");
try {
final episodes = await api.getUrls(animeName);
// get the encrypted urls
Expand All @@ -70,9 +69,6 @@ void processUrl(String url) async {
listFile.create().then((f) {
f.writeAsString(urls.join('\n')).catchError((e) {
print(e);
}).whenComplete(() {
print("Done");
exit(0);
});
});
// Write this to a file
Expand Down

0 comments on commit 091375b

Please sign in to comment.