Skip to content

Commit

Permalink
Merge branch 'v2'
Browse files Browse the repository at this point in the history
  • Loading branch information
yinyanfr committed Mar 31, 2023
2 parents 87af126 + 9709cfb commit 3606c1d
Show file tree
Hide file tree
Showing 16 changed files with 1,157 additions and 567 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -108,3 +108,4 @@ dist

# tmp
tmp/
src/tmp.js
58 changes: 58 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,63 @@
# Changelog

## 2.0.0

`2023-03-20`

**`zerobyw-dl` now becomes `comic-dl`.**

Now this library is designed to be used with multiple manga / comic sites.

### Site Support

- Added [Copymanga](https://www.copymanga.site/)

### Changes

- [library] The code has been refactored and can now add sites as plugins.
- [CLI] The `-b, --batch` flag is now default to 1 when not set.
- Downloaded images are now renamed by index (01 ~ ).
- Downloaders now ignores downloaded chapters by default, set `options.override` to `true` or for CLI use `-O, --override` if you want to override.

```typescript
// Before
import ZeroBywDownloader from "zerobyw-dl";
const downloader = new ZeroBywDownloader(destination, configs);

// Now
import { ZeroBywDownloader } from "comic-dl";
const downloader = new ZeroBywDownloader(destination, configs);
```

- [Library] Writing ComicInfo.xml to file is removed from `getSerieInfo`, thus a seperate function `writeComicInfo` has taken place, options from `getSerieInfo` is moved to `writeComicinfo`, and the typedef is renamed `WriteInfoOptions`.

```typescript
// Before
const serie = await downloader.getSerieInfo("url", { output: true });

// Now
const serie = await downloader.getSerieInfo("url");
await writeComicInfo(serie, { output: true });
```

- [CLI] New flag `-m, --module` is added to specify the module (site) to use, as a matter of which, the short-hand flag to `--max-title-length` is changed to `-M`. If `--module` is not defined, comic-dl will attempt to detect the matching module by url.

```bash
# Before
npx zerobyw-dl dl -c cookie.txt -o ~/Download/zerobyw -a zip -r -i -u serie_url

# Now
npx comic-dl dl -m zerobyw -c cookie.txt -o ~/Download/zerobyw -a zip -r -i -u serie_url -b 10
# You can skip -m flag unless comic-dl fails to detect the site module
# Batch download is now default to 1, set it manually for download speed
```

- [CLI] the `-s, --silence` flag now skips the confirm prompt when downloading series.

### Fix

- [CLI] Fixed an error that causes the downloader to download the entire serie when `-C, --chapters` is set to `0`.

## 1.5.1

`2023-03-18`
Expand Down
Loading

0 comments on commit 3606c1d

Please sign in to comment.