clean up outdated FIXMEs

This commit is contained in:
Adrian Sampson 2012-10-27 18:47:04 -07:00
parent 1de53446f8
commit 7158c01ff8
5 changed files with 6 additions and 13 deletions

View file

@ -320,10 +320,6 @@ def match_by_id(items):
log.debug('No album ID consensus.')
return None
#fixme In the future, at the expense of performance, we could use
# other IDs (i.e., track and artist) in case the album tag isn't
# present, but that event seems very unlikely.
def recommendation(results):
"""Given a sorted list of AlbumMatch or TrackMatch objects, return a
recommendation flag (RECOMMEND_STRONG, RECOMMEND_MEDIUM,

View file

@ -799,7 +799,7 @@ class BaseLibrary(object):
# Basic operations.
def add(self, item, copy=False): #FIXME copy should default to true
def add(self, item, copy=False):
"""Add the item as a new object to the library database. The id
field will be updated; the new id is returned. If copy, then
each item is copied to the destination location before it is
@ -1380,7 +1380,6 @@ class Library(BaseLibrary):
don't yet have an ID. Returns an Album object.
"""
# Set the metadata from the first item.
#fixme: check for consensus?
item_values = dict(
(key, getattr(items[0], key)) for key in ALBUM_KEYS_ITEM)

View file

@ -635,8 +635,8 @@ def import_files(lib, paths, query):
logfile = None
# Never ask for input in quiet mode.
if config['import']['resume'] is None and \
config['import']['quiet']: # FIXME resume
if config['import']['resume'].get() == 'ask' and \
config['import']['quiet']:
config['import']['resume'] = False
session = TerminalImportSession(lib, logfile, paths, query)

View file

@ -923,12 +923,12 @@ class Server(BaseServer):
item = self.playlist[self.current_index]
yield u'bitrate: ' + unicode(item.bitrate/1000)
#fixme: missing 'audio'
# Missing 'audio'.
(pos, total) = self.player.time()
yield u'time: ' + unicode(pos) + u':' + unicode(total)
#fixme: also missing 'updating_db'
# Also missing 'updating_db'.
def cmd_stats(self, conn):
@ -945,7 +945,7 @@ class Server(BaseServer):
u'albums: ' + unicode(albums),
u'songs: ' + unicode(songs),
u'uptime: ' + unicode(int(time.time() - self.startup_time)),
u'playtime: ' + u'0', #fixme
u'playtime: ' + u'0', # Missing.
u'db_playtime: ' + unicode(int(totaltime)),
u'db_update: ' + unicode(int(self.updated_time)),
)

View file

@ -428,8 +428,6 @@ class BrowseTest(unittest.TestCase, AssertsMixin):
items = self.lib.items('2007')
self.assert_done(items)
#FIXME Haven't tested explicit (non-query) criteria.
class CountTest(unittest.TestCase):
def setUp(self):
self.lib = beets.library.Library(':memory:')