示例#1
0
文件: cd.py 项目: AaronLaw/morituri
    def addOptions(self):
        _CD.addOptions(self)

        loggers = result.getLoggers().keys()

        self.parser.add_option('-L',
                               '--logger',
                               action="store",
                               dest="logger",
                               default='morituri',
                               help="logger to use "
                               "(default '%default', choose from '" +
                               "', '".join(loggers) + "')")
        # FIXME: get from config
        self.parser.add_option(
            '-o',
            '--offset',
            action="store",
            dest="offset",
            help="sample read offset (defaults to configured value, or 0)")
        self.parser.add_option(
            '-O',
            '--output-directory',
            action="store",
            dest="output_directory",
            help="output directory; will be included in file paths in result "
            "files "
            "(defaults to absolute path to current directory; set to "
            "empty if you want paths to be relative instead) ")
        self.parser.add_option(
            '-W',
            '--working-directory',
            action="store",
            dest="working_directory",
            help="working directory; morituri will change to this directory "
            "and files will be created relative to it when not absolute ")

        rcommon.addTemplate(self)

        default = 'flac'

        # here to avoid import gst eating our options
        from morituri.common import encode

        self.parser.add_option(
            '',
            '--profile',
            action="store",
            dest="profile",
            help="profile for encoding (default '%s', choices '%s')" %
            (default, "', '".join(encode.PROFILES.keys())),
            default=default)
        self.parser.add_option(
            '-U',
            '--unknown',
            action="store_true",
            dest="unknown",
            help="whether to continue ripping if the CD is unknown (%default)",
            default=False)
示例#2
0
文件: cd.py 项目: chadberg/whipper
    def addOptions(self):
        _CD.addOptions(self)

        loggers = result.getLoggers().keys()

        self.parser.add_option('-L', '--logger',
            action="store", dest="logger",
            default='morituri',
            help="logger to use "
                "(default '%default', choose from '" +
                    "', '".join(loggers) + "')")
        # FIXME: get from config
        self.parser.add_option('-o', '--offset',
            action="store", dest="offset",
            help="sample read offset (defaults to configured value, or 0)")
        self.parser.add_option('-x', '--force-overread',
            action="store_true", dest="overread",
            help="Force overreading into the lead-out portion of the disc. "
                "Works only if the patched cdparanoia package is installed "
                "and the drive supports this feature. "
                "The default value is: %default",
            default=False)
        self.parser.add_option('-O', '--output-directory',
            action="store", dest="output_directory",
            help="output directory; will be included in file paths in result "
                "files "
                "(defaults to absolute path to current directory; set to "
                "empty if you want paths to be relative instead; "
                "configured value: %default) ")
        self.parser.add_option('-W', '--working-directory',
            action="store", dest="working_directory",
            help="working directory; morituri will change to this directory "
                "and files will be created relative to it when not absolute "
                "(configured value: %default) ")

        rcommon.addTemplate(self)

        default = 'flac'

        # here to avoid import gst eating our options
        from morituri.common import encode

        self.parser.add_option('', '--profile',
            action="store", dest="profile",
            help="profile for encoding (default '%%default', choices '%s')" % (
                "', '".join(encode.PROFILES.keys())),
            default=default)
        self.parser.add_option('-U', '--unknown',
            action="store_true", dest="unknown",
            help="whether to continue ripping if the CD is unknown (%default)",
            default=False)
示例#3
0
文件: cd.py 项目: nsanegit/morituri
    def addOptions(self):
        loggers = result.getLoggers().keys()

        self.parser.add_option('-L', '--logger',
            action="store", dest="logger",
            default='morituri',
            help="logger to use "
                "(default '%default', choose from '" +
                    "', '".join(loggers) + "')")
        # FIXME: get from config
        self.parser.add_option('-o', '--offset',
            action="store", dest="offset",
            help="sample read offset (defaults to configured value, or 0)")
        self.parser.add_option('-O', '--output-directory',
            action="store", dest="output_directory",
            help="output directory; will be included in file paths in result "
                "files "
                "(defaults to absolute path to current directory; set to "
                "empty if you want paths to be relative instead) ")
        self.parser.add_option('-W', '--working-directory',
            action="store", dest="working_directory",
            help="working directory; morituri will change to this directory "
                "and files will be created relative to it when not absolute ")
        # FIXME: have a cache of these pickles somewhere
        self.parser.add_option('-T', '--toc-pickle',
            action="store", dest="toc_pickle",
            help="pickle to use for reading and writing the TOC")

        rcommon.addTemplate(self)

        self.parser.add_option('-R', '--release-id',
            action="store", dest="release_id",
            help="MusicBrainz release id to match to (if there are multiple)")

        default = 'flac'

        # here to avoid import gst eating our options
        from morituri.common import encode

        self.parser.add_option('', '--profile',
            action="store", dest="profile",
            help="profile for encoding (default '%s', choices '%s')" % (
                default, "', '".join(encode.PROFILES.keys())),
            default=default)
        self.parser.add_option('-U', '--unknown',
            action="store_true", dest="unknown",
            help="whether to continue ripping if the CD is unknown (%default)",
            default=False)