shell script

(Yet Another) One Manga Downloader Update

Quick summary:

  • Now archive extension is .cbz as it should be (there were many ppl asking about this bad preference of mine :P)
  • Add backward compatibility to check the already downloaded chapters which has old extension (.cbr)
  • Fix an issue with sed command on Mac OS X.
  • Now index.html will be removed along with other temporary files.
  • Misc. improvements in code and error/status messages.

I guess you already know where to get it.

Enjoy reading One Manga!

P.S. If you are looking for a GUI One Manga downloader then MangaDownloader [MD] may be the answer for you.

One Manga Downloader Update

Just to inform you that I have updated One Manga Downloader script. The changes are:

  • Add search functionality using -s option
  • Improve temporary files cleanup process
  • Improve option validation and error/status messages

Searching for mangas

Have you ever wonder:

  • if the manga you want is on onemanga.com or not
  • what manga name (in URL) to type in to download it.

The search function now comes to rescue.

Read the rest of this entry »

One Manga Downloader on GitHub

Dear One Manga readers,

I'm glad to announce that the most recent version of One Manga Downloader script is now hosted on GitHub.

I've made some improvements to the script according to Wout Mertens' comment for better support on Mac OSX. Thanks, Wout :D

As usual, if you find any bug please do not hesitate to post an issue on GitHub or leave a comment here (I've only tested it on Cygwin so there may be some problem on other platforms).

That's it. Happy downloading!

One Manga Downloader v2.0

Updated

Change log:

  • แก้บั๊กให้ตรวจสอบว่าชื่อไฟล์ต้องเป็น directory เวลาใส่ option -d *
  • แก้บั๊กฟังก์ชันเติมเลขศูนย์หน้า chapter by @crapcode
  • แก้ message บางอัน
  • ฯลฯ

เท่าที่ลองดูคิดว่าน่าจะโอเคแล้ว ออกเป็น stable version เลยละกัน เช่นเคย ถ้าพบบั๊กรบกวนช่วยแจ้งด้วยครับ

สรุปวิธีใช้สำหรับเวอร์ชัน 2.0 ตามนี้ เวลาใส่ option สามารถใส่รวมกันได้หลายๆ อัน เช่น -d -o หรือ -do ก็ให้ผลเหมือนกัน

Read the rest of this entry »

One Manga Downloader v2.0 RC1

Updated

อัพเดตเนื่องในโอกาสที่บล็อกหายจากอาการเน่า xD

Change log:

  • เปลี่ยนจากใช้ seq เป็น built-in command ของ bash แทน
  • เลิกใช้ cURL เปลี่ยนเป็นใช้ wget แทนทั้งหมด เนื่องด้วยความสามารถหลายๆ อย่าง
  • เมื่อดาวน์โหลดแล้วจะทิ้งไฟล์ index.html ไว้ใน directory สำหรับตรวจสอบ timestamp กับเซิร์ฟเวอร์ ถ้าไม่เปลี่ยนก็ไม่ต้องดาวน์โหลดใหม่
  • แก้บั๊ก $base_dir มี space ในชื่อ
  • แก้บั๊กลืมลบไฟล์ tmp_* เมื่อดาวน์โหลดเสร็จ
  • เติมเลขศูนย์ข้างหน้าให้ไฟล์ที่ chapter น้อยกว่า 100 (ยกเว้น chapter 0) เพื่อให้ CDisplay โหลดไฟล์ได้ถูกต้องตามลำดับ
  • เพิ่ม option -o ถ้าต้องการให้บันทึกว่าโหลดอะไรมาบ้างลงใน onemanga.log
  • ตัด option -u ออก กำหนดให้ default action เป็นการ update เสมอ

คิดว่าความสามารถหลักๆ น่าจะครบแล้ว ถ้าไม่มีบั๊กก็จะถือเป็น 2.0 final ได้ในเร็วๆ นี้ สำหรับโค้ดก็ตามด้านล่างครับ :)

Read the rest of this entry »