Remove debug commands, add mblookup command (#249)

* add mblookup command

* remove debug commands

* mblookup: replace sys.stdout.write with print

* minor formatting fixes
This commit is contained in:
Samantha Baldwin
2018-03-22 09:27:18 -04:00
committed by Joe
parent fd2c56053b
commit 574b8b2ea5
4 changed files with 54 additions and 311 deletions

View File

@@ -8,7 +8,7 @@ import musicbrainzngs
import whipper
from whipper.command import cd, offset, drive, image, accurip, debug
from whipper.command import cd, offset, drive, image, accurip, mblookup
from whipper.command.basecommand import BaseCommand
from whipper.common import common, directory, config
from whipper.extern.task import task
@@ -19,10 +19,6 @@ logger = logging.getLogger(__name__)
def main():
# set user agent
musicbrainzngs.set_useragent("whipper", whipper.__version__,
"https://github.com/JoeLametta/whipper")
try:
server = config.Config().get_musicbrainz_server()
except KeyError, e:
@@ -80,11 +76,11 @@ You can get help on subcommands by using the -h option to the subcommand.
no_add_help = True
subcommands = {
'accurip': accurip.AccuRip,
'cd': cd.CD,
'debug': debug.Debug,
'drive': drive.Drive,
'offset': offset.Offset,
'image': image.Image
'cd': cd.CD,
'drive': drive.Drive,
'offset': offset.Offset,
'image': image.Image,
'mblookup': mblookup.MBLookup
}
def add_arguments(self):