Skip to content

Commit

Permalink
Add --export-extra-media option
Browse files Browse the repository at this point in the history
Add an option to also download the following media:

 * series thumbnail
 * series banner (only for Originals, not for Canvas)
 * series background (only for Originals, not for Canvas)
 * chapter thumbnail
 * background music as TS files
  • Loading branch information
olaf-mandel committed Dec 30, 2023
1 parent 5d5efaf commit 5d38a37
Show file tree
Hide file tree
Showing 4 changed files with 375 additions and 37 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,11 @@ For example, downloading Tower of God, Chapter 150 would result in the following
│...
```

* You can also download extra media: series banner, thumbnails, music.
```ps
$ webtoon-downloader [url] --export-extra-media
```

* You can additionally export the summary, chapter-title and author-notes into text files.
You can select the format for the output as either JSON (default) or plain text files or both.
```ps
Expand Down
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ requires-python = '>=3.7'
dependencies = [
'beautifulsoup4 >= 4.10.0',
'lxml >= 4.6.3',
'm3u8 >= 4.0.0',
'Pillow >= 8.3.1',
'pycryptodome >= 3.19.1',
'requests >= 2.26.0',
'rich >= 10.10.0',
]
Expand Down
4 changes: 4 additions & 0 deletions src/options.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ def initialize(self):
help='image format of downloaded images, available: '
'(native, png, jpg)',
choices=['native', 'jpg', 'png'], default='native')
self.parser.add_argument('--export-extra-media', required=False,
help='download extra media like overview images, '
'thumbnails or music',
action='store_true', default=False)
self.parser.add_argument('--seperate', required=False,
help='[DEPRECATED] download each chapter in separate folders',
action='store_true', default=False)
Expand Down
Loading

0 comments on commit 5d38a37

Please sign in to comment.