@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 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, high-resolution photos, music, playlists, and compile albums into PDF across 16 platforms directly from your terminal.
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
- ## ⚡ Quick Start
23
+ ## Quick Start
23
24
 
24
- Run instantly without global installation via `npx`:
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 any link directly
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
- # Compile photo carousel into a single PDF album
37
- npx @coflyn/mori https://www.instagram.com/p/C_abc123/ -p
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
- ## 🌐 Supported Platforms (16)
50
-
51
- | Platform | Capabilities |
52
- | :------------------------ | :---------------------------------------------------------- |
53
- | **TikTok** | No-watermark video (HD/1080p), MP3 audio, slide photos |
54
- | **Instagram** | Reels, stories, posts, photos, carousels |
55
- | **YouTube** | MP4 video, MP3 audio, full playlists & albums |
56
- | **Twitter / X** | All resolutions, GIFs, MP4 video |
57
- | **Spotify** | Single tracks, full albums & playlists to MP3 (128–320kbps) |
58
- | **Apple Music** | Tracks, albums, and playlists to high-quality MP3 |
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
- ## 🛠️ CLI Options
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> Custom download destination (default: ~/Downloads/Mori)
81
- -s, --server <1|2> Select scraper server engine (1 = Default, 2 = Mirror)
82
- -a, --audio Extract and download audio stream only (MP3/M4A)
83
- -p, --pdf Compile multi-photo posts directly into a single PDF album
84
- -c, --clip Auto-detect and download URL from system clipboard
85
- -y, --yes Auto-confirm and download best available stream
86
- -i, --info Inspect and display media metadata only (no download)
87
- -u, --update Check and apply latest OTA scraper patches
88
- -h, --help Show help and usage documentation
89
- -v, --version Display CLI version
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
- ## 💬 Interactive Shell & Slash Commands
95
-
96
- Launch `mori` without arguments to enter the interactive CLI shell:
97
-
98
- ```bash
99
- mori
100
- ```
101
-
102
- Inside the interactive prompt, type `/` to access built-in tools:
103
-
104
- | Command | Aliases | Description |
105
- | :--------------- | :------------ | :--------------------------------------------------------------------------------- |
106
- | `/clip` | `/paste` | Auto-detect and download media link currently on system clipboard |
107
- | `/audio [url]` | `/mp3` | Extract and download audio stream only (MP3/M4A) |
108
- | `/pdf [url]` | — | Compile photo carousel or gallery directly into a single PDF album |
109
- | `/batch` | — | Bulk-download multiple links at once (space or newline separated) |
110
- | `/play [num]` | — | Open and play downloaded MP4/MP3 media in your default system player |
111
- | `/history [num]` | — | View download history, re-download (`/history <num>`), or purge (`/history clear`) |
112
- | `/delete [num]` | `/del`, `/rm` | Remove item from history with prompt to delete file from disk |
113
- | `/open` | — | Open download folder in your OS file manager (Finder / File Explorer) |
114
- | `/dir [path]` | — | View or set default download destination folder permanently |
115
- | `/server` | — | Select default scraper engine (`auto`, `1`, `2`) |
116
- | `/info [url]` | `/inspect` | Inspect media details and available streams without downloading |
117
- | `/retry` | `/again` | Re-download the last processed link |
118
- | `/ping [host]` | — | Test network latency and packet loss (default: 1.1.1.1) |
119
- | `/stats` | — | View total files downloaded, disk space used, and platform breakdown |
120
- | `/platforms` | `/platform` | List all 16 supported media platforms and categories |
121
- | `/config` | — | Display active configuration, storage paths, and versions |
122
- | `/update` | `/u` | Check for both CLI package updates (npm) and OTA scraper patches |
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
- ## 🚀 Key Features
131
-
132
- - **16 Platforms Supported**: Save media from TikTok, Instagram, YouTube, Twitter/X, Spotify, Apple Music, Pinterest, Facebook, Threads, Reddit, Bilibili, Douyin, RedNote, Pixiv, Bandcamp, and TeraBox.
133
- - **Automatic Version Checker**: Fast, non-blocking check on launch alerts you with a notification box whenever a newer CLI release is available on npm.
134
- - **Dual Update System**: Run `/update` to check for both newer CLI package versions on npm and live OTA scraper engine patches from GitHub.
135
- - **Multi-Processing Parallel Downloads**: High-speed concurrent downloads for photo galleries and batch links with optimized worker pools.
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
- ## 📄 License
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.