prsh11 / manga-cli Goto Github PK
View Code? Open in Web Editor NEW๐ Script to read manga from cli
License: MIT License
๐ Script to read manga from cli
License: MIT License
so I do in my home directory
$ manga-cli
Search manga: chainsaw man
[1]Chainsaw Man
Enter Number: 1
Enter chapter number: 82
EOF
Nothing happens after this and ~/.cache/manga-cli is empty
Tested with a few different mangas, same thing every time
Hi guys! I managed to run it on macOS, it would be nice to add the instrucions into the README.md.
Installation:
brew install pup
brew install imagemagick # for .pdf support
brew install zathura # don't forget to follow the set up instructions (brew will guide you)
brew install zathura-cb # don't forget to follow the set up instructions (brew will guide you)
bew install bash # plugin requires new version of bash 4.xx, while macOS uses 3.xx
git clone https://github.com/prsh11/manga-cli.git && cd manga-cli
sudo cp manga-cli /usr/local/bin/manga-cli
I have tested this with multiple different manga, some like One Punch Man and One Piece work perfectly, while others like Toradora! don't. They don't appear in ~/.cache/manga-cli. When I try to read Toradora! it gives me an error saying: error: cannot open /home/user/.cache/manga-cli/Toradora!-1.pdf: No such file or directory
error: could not open document
It opens zathura with a black screen and [No name] in the bottom left corner, and a title saying: org.pwmt.zathura. I am using arch linux with xfce, and terminology as the terminal.
Edit: I am suspecting this is because the manga Toradora!, has an exclamation mark in the name, but I am not sure yet
Is it possible to convert .cbz
files into .pdf
before oppening them? Zathura CBZ viewer doesn't provide decent experience for me. Also we would get rid of one of dependancies this way
I would like to use this on a mac but zathura
and zathura-cb
don't work. Now this works perfectly on my Linux machine but I would like to try to use this on a mac. I am requesting a change of complication from cbz to pdf if possible or any recommendations for cbz viewers that can be accessed via the terminal like zathura
.
Ik zathura is popular still, but I find https://github.com/ahrm/sioyek to be alot better.
Ik i can edit the script, if possible i would like to package this for nixos.
So some sort of option for pdf viewer like -p <pdf-viewer>
or setting xdg-open
would be better, nah?
Right now there's one but its not the main repo, it seems to be from a forked one. Can you please make a manga-cli git package for AUR
manga-cli was giving out
"error: could not open document"
I figured it was because rm and zip was not working properly with the arguments $image_dir enclosed by " in the create_file() function
zip -q $image_dir$name-$chapterNumber.cbz $image_dir*.jpg
rm $image_dir/*.jpg
works fine for me.
Hello,
I have a similar issue to #10
I have all dependencies installed, however i keep receiving:
Enter Option: error: could not open document
every manga i try to open i always get a failure of
next chapter (n)
quit (q)
previous chapter (p)
Enter Option: error: could not open document
i've tried opening other things with zathura and i don't have any issues with them, so is it something on my end or am i mising something.
PDF format sure is great to read all content, but recently I have noticed that in some chapter all images would be spaced a lot.
But then I zip them into CBZ, that space was not there. Although spaces still exist for webtoons (long strip)
Manga are better available in CBZ format, so why not.
I simply uncommented convert command and added another command like
zip $image_dir$name-$chapterNumber.cbz $(ls -v $image_dir*.jpg)
Also, Can the steps/script be task spooled (tsp) ? Like process in background?
I have added
tsp zathura "$image_dir$name-$chapterNumber.cbz"
So zathura is not integrated into terminal
I thought this was scraping mangareader(dot)to
It looks to be easily scraped too.
Finally, nice script !
Made me easy to glimpse and pilot study some manga
When using pup please use "-p" because I've noticed, so far, that pup changes apostrophes to the HTML code for an apostrophe. Thanks!
line 58: [: =: unary operator expected
any ideas on how to fix this
As the old listing command lend to numerous errors which stopped the main function of the script. I am thinking reworking like this:
manga-cli -l <manga-name>
this command will list the commands. I am open to any suggestions
the feature displays only after downloading a manga online and not when grabbing the chapter from .cache and the program exits after entering an option twice that isn't listed. Other than that I love the feature!
the --pdf option does not work and tries to call a function named "download_manga" which doesn't exist
I get the error message error: Unknown file type: 'inode/x-empty'
It works in the search feature, selection features but gets an error after that. I have all the dependencies and am not sure where the problem is.
So the pages are disapearing from ~/.cache/manga-cli before it can open the document. I also get an error saying: error: could not open document. Zathura just shows a black screen
when i run your program and enter "ijiran" i get
[1]Ijiranaide, Nagatoro-San
[2]Please Don't Bully Me, Nagatoro Comic Anthology
there is a "'" instead of an apostrophe.
secondly when i tried to select "Ijiranaide, Nagatoro-San" i would get "error: could not open document". but, when i opened Jujutsu Kaisen it would work. I really admire your efforts in creating a manga-cli and I would really love to see it improve!!
Number of available chapters will help us to choose and download from where we had left.
Even something like batch download?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.