config, release_tags).strip('"')
split_artists = config_value("details", "split_artists", config,
                          release_tags).strip('"')
split_genres_and_styles = config.get("details", "split_genres_and_styles",
                          config, release_tags).strip('"')
char_exceptions = config_char_exceptions(config._sections["character_exceptions"])

release = TaggerUtils(options.sdir, destdir, use_lower_filenames, releaseid,
    split_artists, split_genres_and_styles, copy_other_files, char_exceptions)
release.nfo_format = nfo_format
release.m3u_format = m3u_format
release.dir_format = dir_format
release.song_format = song_format
release.va_song_format = va_song_format
release.disc_folder_name = disc_folder_name
release.group_name = group_name

first_image_name = "folder.jpg"

if not use_folder_jpg:
    first_image_name = "{0}-01.jpg".format(images_format)

# ensure we were able to map the release appropriately.
if not release.tag_map:
    logger.error("Unable to match file list to discogs release '{0}'".format(
                  releaseid))
    sys.exit()

#
# start tagging actions.
#
Exemplo n.º 2
0
    p.error("Please specify a valid source directory ('-s')")

config = ConfigParser.ConfigParser()
config.read(options.conffile)

logging.basicConfig(level=config.getint("logging", "level"))

keep_original = config.getboolean("details", "keep_original")
embed_coverart = config.getboolean("details", "embed_coverart")

release = TaggerUtils(options.sdir, options.releaseid)
release.nfo_format = config.get("file-formatting", "nfo")
release.m3u_format = config.get("file-formatting", "m3u")
release.dir_format = config.get("file-formatting", "dir")
release.song_format = config.get("file-formatting", "song")
release.group_name = config.get("details", "group")

# ensure we were able to map the release appropriately.
if not release.tag_map:
    logging.error("Unable to match file list to discogs release '%s'" %
                  options.releaseid)
    sys.exit()

#
# start tagging actions.
#
logging.info("Tagging album '%s - %s'" % (release.album.artist,
             release.album.title))

if os.path.exists(release.dest_dir_name):
    logging.error("Destination already exists %s" % release.dest_dir_name)
Exemplo n.º 3
0
                             release_tags).strip('"')
split_genres_and_styles = config.get("details", "split_genres_and_styles",
                                     config, release_tags).strip('"')
char_exceptions = config_char_exceptions(
    config._sections["character_exceptions"])

release = TaggerUtils(options.sdir, destdir, use_lower_filenames, releaseid,
                      split_artists, split_genres_and_styles, copy_other_files,
                      char_exceptions)
release.nfo_format = nfo_format
release.m3u_format = m3u_format
release.dir_format = dir_format
release.song_format = song_format
release.va_song_format = va_song_format
release.disc_folder_name = disc_folder_name
release.group_name = group_name

first_image_name = "folder.jpg"

if not use_folder_jpg:
    first_image_name = "{0}-01.jpg".format(images_format)

# ensure we were able to map the release appropriately.
if not release.tag_map:
    logger.error(
        "Unable to match file list to discogs release '{0}'".format(releaseid))
    sys.exit()

#
# start tagging actions.
#
Exemplo n.º 4
0
config = ConfigParser.ConfigParser()
config.read(options.conffile)

logging.basicConfig(level=config.getint("logging", "level"))

keep_original = config.getboolean("details", "keep_original")
embed_coverart = config.getboolean("details", "embed_coverart")
use_style = config.getboolean("details", "use_style")

release = TaggerUtils(options.sdir, destdir, options.releaseid)
release.nfo_format = config.get("file-formatting", "nfo")
release.m3u_format = config.get("file-formatting", "m3u")
release.dir_format = config.get("file-formatting", "dir")
release.song_format = config.get("file-formatting", "song")
release.group_name = config.get("details", "group")

# ensure we were able to map the release appropriately.
if not release.tag_map:
    logging.error("Unable to match file list to discogs release '%s'" %
                  options.releaseid)
    sys.exit()

#
# start tagging actions.
#
logging.info("Tagging album '%s - %s'" %
             (release.album.artist, release.album.title))

if os.path.exists(release.dest_dir_name):
    logging.error("Destination already exists %s" % release.dest_dir_name)