movizone 1.1.0 → 1.1.2
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/README.md +10 -0
- package/index.ts +17 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -176,6 +176,16 @@ Filter by genre and sort order, with pagination:
|
|
|
176
176
|
|
|
177
177
|
- [Bun](https://bun.sh) v1.0+ (or Node.js 18+ via npx)
|
|
178
178
|
|
|
179
|
+
## Disclaimer
|
|
180
|
+
|
|
181
|
+
> **This is a hobby project built for educational and informational purposes only.**
|
|
182
|
+
>
|
|
183
|
+
> The developers of Movizone do not host, store, distribute, or endorse any copyrighted content. This tool interfaces with publicly available third-party APIs; the developers have no control over the content indexed by those services.
|
|
184
|
+
>
|
|
185
|
+
> Torrent magnet links may point to copyrighted material. Downloading copyrighted content without proper authorization may be illegal in your jurisdiction. **You are solely responsible** for ensuring that your use of this tool complies with all applicable laws and regulations.
|
|
186
|
+
>
|
|
187
|
+
> This project is not intended to facilitate or encourage copyright infringement. The developers assume no liability for how this tool is used. Use at your own risk.
|
|
188
|
+
|
|
179
189
|
## License
|
|
180
190
|
|
|
181
191
|
MIT
|
package/index.ts
CHANGED
|
@@ -16,9 +16,11 @@ import { fileURLToPath } from "url";
|
|
|
16
16
|
|
|
17
17
|
const movizonGradient = gradient(["#ff00ff", "#00ffff"]);
|
|
18
18
|
|
|
19
|
+
const { version } = require("./package.json");
|
|
20
|
+
|
|
19
21
|
function renderHeader(): string {
|
|
20
22
|
const ascii = figlet.textSync("MOVIZONE", { font: "ANSI Shadow", horizontalLayout: "fitted" });
|
|
21
|
-
return boxen(movizonGradient.multiline(ascii) + "\n" + chalk.dim(
|
|
23
|
+
return boxen(movizonGradient.multiline(ascii) + "\n" + chalk.dim(` Movie Explorer v${version}`), {
|
|
22
24
|
padding: { top: 0, bottom: 0, left: 2, right: 2 },
|
|
23
25
|
borderStyle: "double",
|
|
24
26
|
borderColor: "magenta",
|
|
@@ -26,6 +28,13 @@ function renderHeader(): string {
|
|
|
26
28
|
});
|
|
27
29
|
}
|
|
28
30
|
|
|
31
|
+
const DISCLAIMER = chalk.yellow("Disclaimer: ") + chalk.dim(
|
|
32
|
+
"This is a hobby project for educational purposes only. " +
|
|
33
|
+
"The developers do not host, distribute, or endorse any copyrighted content. " +
|
|
34
|
+
"Downloading copyrighted material without authorization may be illegal in your jurisdiction. " +
|
|
35
|
+
"You are solely responsible for ensuring your use complies with applicable laws."
|
|
36
|
+
);
|
|
37
|
+
|
|
29
38
|
function stripAnsi(str: string): string {
|
|
30
39
|
return str.replace(/\x1b\[[0-9;]*m/g, "");
|
|
31
40
|
}
|
|
@@ -525,6 +534,7 @@ async function downloadTorrent(magnet: string, movieTitle: string, torrentInfo?:
|
|
|
525
534
|
padding: { top: 0, bottom: 0, left: 1, right: 1 },
|
|
526
535
|
}));
|
|
527
536
|
|
|
537
|
+
console.log(chalk.yellow(" Note: ") + chalk.dim("Ensure you have the right to download this content in your jurisdiction."));
|
|
528
538
|
downloadManager.startDownload(magnet, movieTitle, torrentInfo);
|
|
529
539
|
console.log(chalk.green("\n Download started in background!"));
|
|
530
540
|
console.log(chalk.dim(" Check progress from the Downloads menu.\n"));
|
|
@@ -1075,6 +1085,12 @@ async function main(): Promise<void> {
|
|
|
1075
1085
|
console.log();
|
|
1076
1086
|
console.log(renderHeader());
|
|
1077
1087
|
console.log(chalk.dim(` Downloads: ${DOWNLOAD_DIR}`));
|
|
1088
|
+
console.log(boxen(DISCLAIMER, {
|
|
1089
|
+
borderStyle: "round",
|
|
1090
|
+
borderColor: "yellow",
|
|
1091
|
+
dimBorder: true,
|
|
1092
|
+
padding: { top: 0, bottom: 0, left: 1, right: 1 },
|
|
1093
|
+
}));
|
|
1078
1094
|
console.log();
|
|
1079
1095
|
|
|
1080
1096
|
let running = true;
|