-
 KDE-Apps.org Applications for the KDE-Desktop 
 GTK-Apps.org Applications using the GTK Toolkit 
 GnomeFiles.org Applications for GNOME 
 MeeGo-Central.org Applications for MeeGo 
 CLI-Apps.org Command Line Applications 
 Qt-Apps.org Free Qt Applications 
 Qt-Prop.org Proprietary Qt Applications 
 Maemo-Apps.org Applications for the Maemo Plattform 
 Java-Apps.org Free Java Applications 
 eyeOS-Apps.org Free eyeOS Applications 
 Wine-Apps.org Wine Applications 
 Server-Apps.org Server Applications 
 apps.ownCloud.com ownCloud Applications 
--
-
 KDE-Look.org Artwork for the KDE-Desktop 
 GNOME-Look.org Artwork for the GNOME-Desktop 
 Xfce-Look.org Artwork for the Xfce-Desktop 
 Box-Look.org Artwork for your Windowmanager 
 E17-Stuff.org Artwork for Enlightenment 
 Beryl-Themes.org Artwork for the Beryl Windowmanager 
 Compiz-Themes.org Artwork for the Compiz Windowmanager 
 EDE-Look.org Themes for your EDE Desktop 
--
-
 Debian-Art.org Stuff for Debian 
 Gentoo-Art.org Artwork for Gentoo Linux 
 SUSE-Art.org Artwork for openSUSE 
 Ubuntu-Art.org Artwork for Ubuntu 
 Kubuntu-Art.org Artwork for Kubuntu 
 LinuxMint-Art.org Artwork for Linux Mint 
 Arch-Stuff.org Art And Stuff for Arch Linux 
 Frugalware-Art.org Themes for Frugalware 
 Fedora-Art.org Artwork for Fedora Linux 
 Mandriva-Art.org Artwork for Mandriva Linux 
--
-
 KDE-Files.org Files for KDE Applications 
 OpenTemplate.org Documents for OpenOffice.org
 GIMPStuff.org Files for GIMP
 InkscapeStuff.org Files for Inkscape
 ScribusStuff.org Files for Scribus
 BlenderStuff.org Textures and Objects for Blender
 VLC-Addons.org Themes and Extensions for VLC
--
-
 KDE-Help.org Support for your KDE Desktop 
 GNOME-Help.org Support for your GNOME Desktop 
 Xfce-Help.org Support for your Xfce Desktop 
--
openDesktop.orgopenDesktop.org:   Applications   Artwork   Linux Distributions   Documents    Linux42.org    OpenSkillz.com   
 
Home
Apps
Artwork
News
Groups
Knowledge
Events
Forum
People
Jobs
Register
Login


-
- Content .- Fans (1) .- Knowledge Base  . 

OMGet

   1.7  

CLI www

Score 54%
Downloads:  73
Submitted:  Apr 25 2009

Description:

Hello all,

This is a small app that I wrote to get my mangas from OneManga.com.

To install this script, it's easy, just download the file, chmod it (if you want to, you can make an alias of it as well ;) ), run once with option -u to initialize the manga database, and download all the manga you want !

SYNOPSIS:
omget [OPTIONS NAME]...

OPTIONS:

-c,--chapters=NUMLIST : here you indicate the chapters that you want downloaded, as a list of elements, separated by commas, of the form 'n' if you want only the nth chapter downloaded, or 'n-m' if you want the chapters between n and m to be downloaded. If n (resp. m) is omitted, OMGet downloads from the first (resp. last) chapter. If not used, OMGet downloads the whole manga (as in --whole)
-+,--add-chapters=NUMLIST : adds chapters to those already to be downloaded.
-s,--skip-chapters=NUMLIST : skips downloading the chapters in NUMLIST
-w,--whole : equivalent to '-c-' (i.e: downloads the whole manga)
-r,--resume : resumes interrupted downloads
-f,--force : forces redownload of the pages, even if they already exist in the chapter's destination directory. Default is off.
-F,--no-force : opposite of -f
-p,--check-pages : if toggled, if the chapter's destination directory already exists, explore it anyway to download missing images. Default is off.
-P,--no-check-pages : opposite of -p.
-d,--dest-dir=DIR : sets the destination directory of the download (the manga will be downloaded under DIR/manga_name/chapter_no). DIR defaults to $OMGET_DESTDIR if it is set, otherwise $HOME/Manga.
-u,--update-rc : updates the manga database in ~/.omgetrc (for autocompletion and finding out the pretty name of mangas without underscores)

EXAMPLES:
omget -c 1-15 Bleach : gets the first 15 chapters of Bleach
omget Fairy_Tail -c1 One_Piece: gets all Fairy Tail chapters and the first of One Piece

If you want autocompletion on this script, you can put those lines at the bottom of your .bashrc file :

alias omget="~/path_to_omget/omget"
_omget () {
local cur=`_get_cword`
local long_opt_list="--chapters,--add-chapters,--skip-chapters,--whole,--resume,--force,--no-force,--check-pages,--no-check-pages,--dest-dir,--update-rc"

case $cur in
--*) COMPREPLY=( $(echo $long_opt_list | sed 'y/,/\n/' | grep "^$cur") );;
*) COMPREPLY=( $(cut -d@ -f2 ~/.omgetrc | cut -d, -f1 | grep ^$cur) )
esac

return 0
}
complete -F _omget omget


Enjoy :)




Changelog:

* OMGet now downloads chapters with pretty names as well (instead of having a folder containing '1','2','3',etc..., you now have the full name of the chapter, like '5 - The weak point of Daga', as in the chapter menu of OneManga)

* OMGet can resume interrupted dowloads (with option -r) (Note : for those upgrading from v1.6 or earlier, please run 'omget -u' once more, because I changed the format of the .omgetrc file)

* Minor bug fixed when giving chapter ranges with zero or only one side (like - or 1- )




LicenseGPL
(omget.bash)
Send to a friend
Subscribe
Other  Content  from astrokiwi
Report inappropriate content



-

 won't run

 
 by faemir on: Apr 26 2009
 
Score 50%

when i run it it gives me this:

omget: 11: Syntax error: "(" unexpected


Reply to this

-

 Re: won't run

 
 by astrokiwi on: Apr 27 2009
 
Score 50%

Oww, sorry about that, I guess I put the testing version on line :). Well, it's fixed now, just download the current one, I tested it thoroughly, and it works like a charm (as far as I know ;) ).


Reply to this

Add commentBack




-



 
 
 Who we are
Contact
More about us
Frequently Asked Questions
Register
Twitter
Blog
Explore
Apps
Artwork
Jobs
Knowledge
Events
People
Updates on identi.ca
Updates on Twitter
Content RSS   
Events RSS   

Participate
Groups
Forum
Add Content
Public API
About openDesktop.org
Legal Notice
Spreadshirt Shop
CafePress Shop
Advertising
Sponsor us
Report Abuse
 

Copyright 2007-2016 openDesktop.org Team  
All rights reserved. openDesktop.org is not liable for any content or goods on this site.
All contributors are responsible for the lawfulness of their uploads.
openDesktop is a trademark of the openDesktop.org Team