Skip to content

Commit

Permalink
fix typo in scrobble cache log line. adding album data cache_items.
Browse files Browse the repository at this point in the history
  • Loading branch information
jesseward committed Oct 18, 2014
1 parent 25b7a6a commit 830dfdf
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions plex_scrobble/scrobble_cache.py
Expand Up @@ -32,7 +32,7 @@ def remove(self, key):

self.logger.info(u'removing \'{key}\': \'{artist}\' - \'{track}\' ({album})from retry cache.'.format(
key=key, artist=self.cache[key][0], track=self.cache[key][1],
album=elf.cache[key][3]))
album=self.cache[key][3]))
del self.cache[key]
self.cache.sync()

Expand All @@ -45,9 +45,12 @@ def cache_items(self):
''' debug method to dump cache to stdout. '''

for key in self.cache:
print u'time={key}, artist={artist}, track={track}, age={age}'.format(
key=key, artist=self.cache[key][0], track=self.cache[key][1],
age=self.cache[key][2])
print u'time={key}, artist={artist}, track={track}, album={album}age={age}'.format(

key=key, artist=self.cache[key][0],
track=self.cache[key][1],
album=self.cache[key][3],
age=self.cache[key][2])

def retry_queue(self):

Expand Down

0 comments on commit 830dfdf

Please sign in to comment.