Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmoa.jp downloader #1

Open
sunohonmy opened this issue Jul 16, 2020 · 3 comments
Open

cmoa.jp downloader #1

sunohonmy opened this issue Jul 16, 2020 · 3 comments

Comments

@sunohonmy
Copy link

How do you use the cmoa.jp downloader???

@yingziwu
Copy link
Owner

  1. open and log in cmoa.jp.
  2. open MY本棚.
  3. Open the purchased comic.
  4. In reader view, open the first page and click the upper right button.
  5. Turn pages manually until you reach the last page.
  6. Click the upper right button again. Now you wil get a zip compression.

You can use the following bash script to merge image.

ls p*i*.jpg > file_list.txt
grep -Eo '^p[0-9]+' file_list.txt | sort -u > p_list.txt
xargs -a p_list.txt -P 8 -I {} convert {}i1.jpg {}i2.jpg -crop +0-5 {}i3.jpg -append {}.jpg


mkdir i
var=$(pwd)
zip "${var##*/}_raw" p*i*.jpg
mv p*i*.jpg i
mv file_list.txt p_list.txt i

perl-rename 's/p(\d{1})\.jpg/p00\1\.jpg/g' *.jpg
perl-rename 's/p(\d{2})\.jpg/p0\1\.jpg/g' *.jpg

rm -r i
zip "${var##*/}" *.jpg && rm *.jpg

@sunohonmy
Copy link
Author

sunohonmy commented Jul 20, 2020 via email

@sunohonmy
Copy link
Author

sunohonmy commented Jul 20, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants