@coflyn/mori 1.1.0 → 1.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +38 -0
- package/README.md +71 -89
- package/engine.js +645 -62
- package/index.js +937 -150
- package/package.json +3 -2
- package/translations/README-id.md +133 -0
- package/translations/README-zh-CN.md +133 -0
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,44 @@ All notable changes to the Mori CLI (`@coflyn/mori`) will be documented in this
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [1.2.1] - 2026-11-17
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
- **YouTube Shorts & Query Normalization**:
|
|
12
|
+
- Convert YouTube Shorts links (`/shorts/{id}`) to standard `/watch?v={id}` URLs before resolving.
|
|
13
|
+
- Distinguish between single videos and playlists when both `v=` and `list=` parameters exist in the URL.
|
|
14
|
+
- Fix converter download headers when redirected to `.shop` mirror domains.
|
|
15
|
+
- **Playlist & Multi-Track Album Downloads**:
|
|
16
|
+
- Automatically detect playlists and multi-track albums (YouTube, Spotify, Apple Music, Bandcamp).
|
|
17
|
+
- Add interactive prompt to download all tracks or select specific tracks.
|
|
18
|
+
- Save files with real track titles and index prefixes (`01. Artist - Title.mp3`) instead of generic playlist names.
|
|
19
|
+
- Support automatic full playlist download with `--yes` (`-y`).
|
|
20
|
+
|
|
21
|
+
## [1.2.0] - 2026-10-25
|
|
22
|
+
|
|
23
|
+
### Added
|
|
24
|
+
- **Interactive Anime & Comic Discovery**:
|
|
25
|
+
- Type titles directly (e.g. `solo leveling`, `frieren`) into the CLI prompt to trigger search across Anime and Comic providers.
|
|
26
|
+
- **Anime Providers**: Otakudesu (Sub Indo) and Gogoanime (Sub Eng) with episode selectors and multi-server stream extraction.
|
|
27
|
+
- **Comic Providers**: Komikindo (Indonesian), Komiku (Indonesian), and Asura Scans (English / Manhwa) with chapter navigation.
|
|
28
|
+
- **Manga Chapter PDF Compilation**:
|
|
29
|
+
- Download comic chapters as individual page images or automatically compile them into a single clean PDF document.
|
|
30
|
+
- **Web Player & HLS Stream Support**:
|
|
31
|
+
- Prioritizes embed web player links for seamless browser playback without Cloudflare WAF blocks.
|
|
32
|
+
- Direct master HLS m3u8 streams labeled with media player headers (`Referer`) for VLC, mpv, and ffmpeg.
|
|
33
|
+
- **Interactive Media Player & History Pickers**:
|
|
34
|
+
- Replaced manual numeric input in `/play` and `/history` with interactive select menus displaying media badges (Video, Audio, PDF) and relative download timestamps.
|
|
35
|
+
- **Bulk Multiselect Deletion (`/delete`)**:
|
|
36
|
+
- Upgraded `/delete` to an interactive multiselect list allowing users to toggle multiple items with `Space` and confirm with `Enter`, with dual deletion modes: delete from disk & history or remove from history only.
|
|
37
|
+
- **Engine Rollback & Version Selector (`/rollback`)**:
|
|
38
|
+
- Rollback or install specific versions of scraper engines if an update introduces upstream breaking changes.
|
|
39
|
+
- **Mori Core Engine**: Browse and install previous bundles directly via GitHub commit history.
|
|
40
|
+
- **Scrapr Engine**: Browse and install previous releases directly from the NPM registry.
|
|
41
|
+
- Accessible via `/rollback` or `/engine` management menu.
|
|
42
|
+
|
|
43
|
+
### Fixed
|
|
44
|
+
- **Facebook SnapSave Extraction**: Fixed `(0, j.decodeSnapSave) is not a function` error when extracting Facebook media by defining `decodeSnapSave` and `extractFinalUrl` in engine runtime dependencies ([#18](https://github.com/coflyn/Mori/issues/18)).
|
|
45
|
+
|
|
8
46
|
## [1.1.0] - 2026-10-21
|
|
9
47
|
|
|
10
48
|
### Added
|
package/README.md
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
<h1 align="center">@coflyn/mori</h1>
|
|
3
3
|
<p align="center"><strong>Universal Media Downloader CLI</strong></p>
|
|
4
4
|
<p align="center"><em>Save anything, from anywhere. No watermarks. No tracking.</em></p>
|
|
5
|
+
<p align="center"><strong>English</strong> · <a href="translations/README-zh-CN.md">简体中文</a> · <a href="translations/README-id.md">Bahasa Indonesia</a></p>
|
|
5
6
|
</p>
|
|
6
7
|
|
|
7
8
|
<p align="center">
|
|
@@ -17,24 +18,27 @@
|
|
|
17
18
|
|
|
18
19
|
---
|
|
19
20
|
|
|
20
|
-
Command-line interface for **[Mori](https://github.com/coflyn/Mori)**. Download watermark-free videos,
|
|
21
|
+
Command-line interface for **[Mori](https://github.com/coflyn/Mori)**. Download watermark-free videos, photos, audio, full playlists, and compile photo galleries into PDF files across 27 platforms directly from your terminal.
|
|
21
22
|
|
|
22
|
-
##
|
|
23
|
+
## Quick Start
|
|
23
24
|
|
|
24
|
-
Run
|
|
25
|
+
Run directly without global installation:
|
|
25
26
|
|
|
26
27
|
```bash
|
|
27
28
|
# Interactive REPL mode
|
|
28
29
|
npx @coflyn/mori
|
|
29
30
|
|
|
30
|
-
# Download
|
|
31
|
-
npx @coflyn/mori https://www.tiktok.com/@user/video/123456789
|
|
31
|
+
# Download a link directly
|
|
32
|
+
npx @coflyn/mori "https://www.tiktok.com/@user/video/123456789"
|
|
32
33
|
|
|
33
34
|
# Download audio only (MP3)
|
|
34
|
-
npx @coflyn/mori https://youtu.be/dQw4w9WgXcQ -a
|
|
35
|
+
npx @coflyn/mori "https://youtu.be/dQw4w9WgXcQ" -a
|
|
35
36
|
|
|
36
|
-
#
|
|
37
|
-
npx @coflyn/mori https://www.
|
|
37
|
+
# Download an entire playlist or album automatically
|
|
38
|
+
npx @coflyn/mori "https://www.youtube.com/playlist?list=PLxxx" -y
|
|
39
|
+
|
|
40
|
+
# Compile photo carousel into a single PDF
|
|
41
|
+
npx @coflyn/mori "https://www.instagram.com/p/C_abc123/" -p
|
|
38
42
|
```
|
|
39
43
|
|
|
40
44
|
Or install globally:
|
|
@@ -46,30 +50,20 @@ mori
|
|
|
46
50
|
|
|
47
51
|
---
|
|
48
52
|
|
|
49
|
-
##
|
|
50
|
-
|
|
51
|
-
|
|
|
52
|
-
|
|
|
53
|
-
| **
|
|
54
|
-
| **
|
|
55
|
-
| **
|
|
56
|
-
| **
|
|
57
|
-
| **
|
|
58
|
-
| **
|
|
59
|
-
| **Pinterest** | Original full-resolution images, video pins |
|
|
60
|
-
| **Facebook** | Public reels & HD videos |
|
|
61
|
-
| **Threads** | Videos and photo carousels |
|
|
62
|
-
| **Reddit** | Videos with synced audio, multi-image galleries |
|
|
63
|
-
| **Bilibili** | High-definition DASH video & audio streams |
|
|
64
|
-
| **Douyin** | Watermark-free videos & photo carousels |
|
|
65
|
-
| **RedNote (Xiaohongshu)** | High-res photos and videos |
|
|
66
|
-
| **Pixiv** | Artwork galleries and animated Ugoira |
|
|
67
|
-
| **Bandcamp** | Individual songs and full discographies |
|
|
68
|
-
| **TeraBox** | Direct stream extraction |
|
|
53
|
+
## Supported Platforms
|
|
54
|
+
|
|
55
|
+
| Category | Platforms | Supported Media |
|
|
56
|
+
| :--- | :--- | :--- |
|
|
57
|
+
| **Social & Video** | TikTok, Douyin, YouTube, Instagram, Facebook, Twitter/X, Threads, Reddit, Bilibili, Doodstream | Videos without watermarks, 1080p streams, photo posts, stories, audio |
|
|
58
|
+
| **Music & Audio** | Spotify, YouTube, SoundCloud, Apple Music, Bandcamp | Single tracks, full albums, discographies, playlists (MP3 128–320 kbps) |
|
|
59
|
+
| **Images & Art** | Pinterest, Pixiv, RedNote (Xiaohongshu) | High-resolution images, original illustration galleries, Ugoira animations |
|
|
60
|
+
| **Cloud & File Hosts** | TeraBox, MediaFire, Sfile, Catbox, Pixeldrain, Krakenfiles, Google Drive | Direct stream resolution, batch links, multi-file collections |
|
|
61
|
+
| **Resolvers & Shorteners** | SafeLinkU, Sub2Unlock, Rekonise, Stargon / Link bypassers | Gateway bypass to final media destinations |
|
|
62
|
+
| **Anime & Manga** | Otakudesu, Gogoanime, Komikindo, Komiku, Asura Scans | In-CLI title search, episode stream extraction, comic chapter PDF compilation |
|
|
69
63
|
|
|
70
64
|
---
|
|
71
65
|
|
|
72
|
-
##
|
|
66
|
+
## CLI Options
|
|
73
67
|
|
|
74
68
|
```text
|
|
75
69
|
USAGE:
|
|
@@ -77,75 +71,63 @@ USAGE:
|
|
|
77
71
|
npx @coflyn/mori [URL] [OPTIONS]
|
|
78
72
|
|
|
79
73
|
OPTIONS:
|
|
80
|
-
-o, --output <dir>
|
|
81
|
-
-
|
|
82
|
-
-
|
|
83
|
-
-
|
|
84
|
-
-
|
|
85
|
-
-
|
|
86
|
-
-
|
|
87
|
-
-
|
|
88
|
-
-
|
|
89
|
-
-
|
|
74
|
+
-o, --output <dir> Download directory (default: ~/Downloads/Mori)
|
|
75
|
+
-e, --engine <auto|mori|scrapr> Scraper engine selector (default: auto)
|
|
76
|
+
-s, --server <1|2> Select server mirror (TikTok, IG, YouTube, X, Spotify)
|
|
77
|
+
-a, --audio Download audio stream only (MP3/M4A)
|
|
78
|
+
-p, --pdf Compile photo galleries into a single PDF document
|
|
79
|
+
-c, --clip Download link copied to system clipboard
|
|
80
|
+
-y, --yes Download without prompts (auto-selects best stream or all playlist tracks)
|
|
81
|
+
-i, --info Inspect media details and stream list without downloading
|
|
82
|
+
-u, --update Check for package updates and OTA scraper patches
|
|
83
|
+
-h, --help Show help and usage guide
|
|
84
|
+
-v, --version Show version number
|
|
90
85
|
```
|
|
91
86
|
|
|
92
87
|
---
|
|
93
88
|
|
|
94
|
-
##
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
|
105
|
-
|
|
|
106
|
-
| `/
|
|
107
|
-
| `/
|
|
108
|
-
| `/
|
|
109
|
-
| `/
|
|
110
|
-
| `/
|
|
111
|
-
| `/
|
|
112
|
-
| `/
|
|
113
|
-
| `/
|
|
114
|
-
| `/
|
|
115
|
-
| `/
|
|
116
|
-
| `/
|
|
117
|
-
| `/
|
|
118
|
-
| `/
|
|
119
|
-
| `/
|
|
120
|
-
| `/
|
|
121
|
-
| `/
|
|
122
|
-
| `/
|
|
123
|
-
| `/reset` | — | Factory reset Mori configuration, cached scrapers, and history |
|
|
124
|
-
| `/clear` | `/cls` | Clear terminal screen and reprint header |
|
|
125
|
-
| `/help` | `/?` | Display quick command reference guide |
|
|
126
|
-
| `/exit` | `/quit`, `/q` | Exit interactive CLI mode |
|
|
89
|
+
## Interactive Shell & Slash Commands
|
|
90
|
+
|
|
91
|
+
Running `mori` with no arguments starts the interactive prompt. Type a URL or title to start, or use `/` commands:
|
|
92
|
+
|
|
93
|
+
| Command | Aliases | Description |
|
|
94
|
+
| :--- | :--- | :--- |
|
|
95
|
+
| `/clip` | `/paste` | Read and download URL from system clipboard |
|
|
96
|
+
| `/audio [url]` | `/mp3` | Download audio stream only (MP3/M4A) |
|
|
97
|
+
| `/pdf [url]` | — | Compile photo carousel into a single PDF album |
|
|
98
|
+
| `/batch` | — | Download multiple links at once (space or newline separated) |
|
|
99
|
+
| `/play [num]` | — | Open downloaded file in your default system media player |
|
|
100
|
+
| `/history [num]` | — | View history, re-download an item, or clear (`/history clear`) |
|
|
101
|
+
| `/delete` | `/del`, `/rm` | Interactive multiselect deletion (remove from history or delete from disk) |
|
|
102
|
+
| `/open` | — | Open Mori download folder in Finder or File Explorer |
|
|
103
|
+
| `/dir [path]` | — | View or change default download directory |
|
|
104
|
+
| `/server` | — | Change default scraper server mirror |
|
|
105
|
+
| `/engine` | — | Switch between Mori Engine, Scrapr Engine, or Auto mode |
|
|
106
|
+
| `/rollback` | — | Revert scraper engine to an earlier commit or release |
|
|
107
|
+
| `/info [url]` | `/inspect` | Print stream details without downloading |
|
|
108
|
+
| `/retry` | `/again` | Re-run last processed download |
|
|
109
|
+
| `/ping [host]` | — | Ping network host to test connection (default: 1.1.1.1) |
|
|
110
|
+
| `/stats` | — | Show total downloads, storage used, and platform statistics |
|
|
111
|
+
| `/platforms` | `/platform` | List all 27 supported platforms |
|
|
112
|
+
| `/config` | — | Print active configuration, directory paths, and versions |
|
|
113
|
+
| `/update` | `/u` | Check for npm CLI updates and OTA scraper patches from GitHub |
|
|
114
|
+
| `/reset` | — | Reset Mori configuration and history to defaults |
|
|
115
|
+
| `/clear` | `/cls` | Clear terminal screen |
|
|
116
|
+
| `/help` | `/?` | Display commands reference |
|
|
117
|
+
| `/exit` | `/quit`, `/q` | Exit CLI |
|
|
127
118
|
|
|
128
119
|
---
|
|
129
120
|
|
|
130
|
-
##
|
|
131
|
-
|
|
132
|
-
- **
|
|
133
|
-
- **
|
|
134
|
-
- **
|
|
135
|
-
- **
|
|
136
|
-
- **Single-Row In-Place Updates**: Dynamic in-place terminal spinner without spamming new lines for every photo.
|
|
137
|
-
- **Instant Photo-to-PDF**: Combine multi-image posts and photo carousels into a single, clean PDF file (`-p` / `--pdf`).
|
|
138
|
-
- **Integrated Terminal Player**: Launch and listen/watch downloaded videos and audio directly via `/play <num>`.
|
|
139
|
-
- **History & Disk Sync Deletion**: Keep track of downloaded files, re-download past items, or delete files from disk and history via `/delete <num>`.
|
|
140
|
-
- **Clipboard Detection**: One-command downloads from your clipboard (`-c` / `--clip` or `/clip`).
|
|
141
|
-
- **Dual-Server Redundancy**: Seamlessly switch between primary and mirror servers for platforms like TikTok, Instagram, YouTube, X, and Spotify.
|
|
142
|
-
- **Over-The-Air (OTA) Hot-Patching**: Scrapers update dynamically via GitHub when upstream platform APIs change, without waiting for an NPM package release.
|
|
143
|
-
- **Built-in Network Diagnostics**: Check connection latency and packet loss to download servers using `/ping`.
|
|
144
|
-
- **100% Local & Private**: No analytics, no accounts, and no data telemetry. Configuration and history are stored locally in `~/.mori`.
|
|
121
|
+
## Technical Details
|
|
122
|
+
|
|
123
|
+
- **Dual-Engine Architecture**: Mori uses an internal core scraper bundle and can fall back to the standalone Scrapr engine when upstream sites change their layouts.
|
|
124
|
+
- **OTA Patching**: Scraper logic can update via GitHub commits without waiting for a new npm release. Run `/update` or `/rollback` to manage versions.
|
|
125
|
+
- **Playlist & Album Queue**: Pasting a YouTube playlist, Spotify album, or Apple Music collection shows track numbers and titles, letting you download everything sequentially or pick individual tracks.
|
|
126
|
+
- **Local Storage**: Configuration and history stay on your machine in `~/.mori`. No analytics or telemetry.
|
|
145
127
|
|
|
146
128
|
---
|
|
147
129
|
|
|
148
|
-
##
|
|
130
|
+
## License
|
|
149
131
|
|
|
150
|
-
Licensed under the [GNU General Public License v3.0](https://github.com/coflyn/Mori/blob/main/LICENSE).
|
|
132
|
+
Licensed under the [GNU General Public License v3.0](https://github.com/coflyn/Mori/blob/main/LICENSE).
|
|
151
133
|
Part of the **[Mori](https://github.com/coflyn/Mori)** project.
|