Move tags to toplevel

This commit is contained in:
Théophile Bastian 2018-01-18 19:06:26 +01:00
parent a12441c34e
commit 724c8ee9eb
1 changed files with 12 additions and 10 deletions

View File

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