head 1.2; access; symbols pkgsrc-2013Q2:1.1.0.2 pkgsrc-2013Q2-base:1.1; locks; strict; comment @# @; 1.2 date 2013.07.22.14.20.38; author drochner; state dead; branches; next 1.1; commitid cj7rl85i2vOAptYw; 1.1 date 2013.06.12.20.29.21; author drochner; state Exp; branches; next ; commitid 4qSi4ygCrDmRJmTw; desc @@ 1.2 log @update to 1.2.1 changes: -internal refactoring to the way that we calculate and process distance scores in the autotagger -Python-2.6 compatibility fixes, other minor fixes @ text @$NetBSD: patch-aa,v 1.1 2013/06/12 20:29:21 drochner Exp $ Python-2.6 compatibility --- beetsplug/random.py.orig 2013-06-06 04:58:04.000000000 +0000 +++ beetsplug/random.py @@@@ -40,7 +40,9 @@@@ def random_item(lib, opts, args): # Group the objects by artist so we can sample from them. key = attrgetter('albumartist') objs.sort(key=key) - objs_by_artists = {artist: list(v) for artist, v in groupby(objs, key)} + objs_by_artists = {} + for artist, v in groupby(objs, key): + objs_by_artists[artist] = list(v) objs = [] for _ in range(opts.number): @ 1.1 log @update to 1.2.0 changes: -allow additional data sources to augment the matches from MusicBrainz -New Duplicates Plugin, Missing Plugin -more feature additions and fixes @ text @d1 1 a1 1 $NetBSD$ @