Hello.
I love this CLI interface. I've been looking for something like this for about 2-3 months and I finally stumbled on your project.
I've been using it for a bit and discovered a bug: When it prints the movie information, there's an extra space in the IMDB URL between the IMDB URL and the movie ID. At least for me.
I fiddled with cli.js with what little JS I know and managed to "fix" it. I'm not good with OSS PR's so I'll paste what I did here and show the example of the issue. The console.log in question is here
I'm on MacOS 15.7.3 with node v22.10.0. I'll leave it up to you if this is a viable "fix". I tried all sorts of combinations of replace, trim, trimStart, and others on movieinfo["imdbID"] to no avail.
Here's a gist with my config with all keys and PII removed
Issue:
Dune: Part One [[2021]]
Year : [[2021]]
Genre : Action, Adventure, Drama
Plot : A mythic and emotionally charged hero's journey, "Dune" tells the story of Paul Atreides, a brilliant and gifted young man born into a great destiny beyond his understanding, who must travel to the most dangerous planet in the universe to ensure the future of his family and his people. As malevolent forces explode into conflict over the planet's exclusive supply of the most precious resource in existence-a commodity capable of unlocking humanity's greatest potential-only those who can conquer their fear will survive.
imdbLink : https://www.imdb.com/title/ tt1160419
Fix:
let imdblinkurl = "https://www.imdb.com/title/" + movieinfo["imdbID"];
console.log(
chalk.bold.cyan("imdbLink") +
" ".repeat(7) +
": ",
imdblinkurl + "\n\n"
);
if (cfg.get("copyToClipboard") === true) {
clipboardy.write(clipboard);
}
})
.catch((err) => {
console.log(" - cancelled - ", err);
})
Thanks!
Hello.
I love this CLI interface. I've been looking for something like this for about 2-3 months and I finally stumbled on your project.
I've been using it for a bit and discovered a bug: When it prints the movie information, there's an extra space in the IMDB URL between the IMDB URL and the movie ID. At least for me.
I fiddled with
cli.jswith what little JS I know and managed to "fix" it. I'm not good with OSS PR's so I'll paste what I did here and show the example of the issue. Theconsole.login question is hereI'm on MacOS 15.7.3 with
node v22.10.0. I'll leave it up to you if this is a viable "fix". I tried all sorts of combinations ofreplace,trim,trimStart, and others onmovieinfo["imdbID"]to no avail.Here's a gist with my config with all keys and PII removed
Issue:
Fix:
Thanks!