Move tags to toplevel

This commit is contained in:
Théophile Bastian 2018-01-18 19:06:26 +01:00
parent a12441c34e
commit 724c8ee9eb

View file

@ -13,6 +13,18 @@ import os
import sys import sys
VORBIS_ARG_NAME = {
'artist': 'ARTIST',
'comment': 'COMMENT',
'genre': 'GENRE',
'album': 'ALBUM',
'albumnumber': 'DISCNUMBER',
'track': 'TRACKNUMBER',
'title': 'TITLE',
'year': 'DATE',
}
def argparser(): def argparser():
""" Parses the arguments from sys.argv """ """ Parses the arguments from sys.argv """
parser = argparse.ArgumentParser( parser = argparse.ArgumentParser(
@ -52,16 +64,6 @@ def isFlacFile(path):
def makeMetaflacArgs(inArgs): def makeMetaflacArgs(inArgs):
VORBIS_ARG_NAME = {
'artist': 'ARTIST',
'comment': 'COMMENT',
'genre': 'GENRE',
'album': 'ALBUM',
'albumnumber': 'DISCNUMBER',
'track': 'TRACKNUMBER',
'title': 'TITLE',
'year': 'DATE',
}
outArgs = [] outArgs = []
for arg in inArgs: for arg in inArgs: