~jendrikseipp/pogo/github-mirror

« back to all changes in this revision

Viewing changes to pogo/modules/TrackLoader.py

  • Committer: GitHub
  • Author(s): Jendrik Seipp
  • Date: 2017-07-16 15:22:48 UTC
  • mfrom: (695.1.4)
  • Revision ID: git-v1:08a9790f5259c0afc6beb390a10358e104e209c9
Merge pull request #42 from jendrikseipp/pep8

Fix code style (PEP8)

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
 
31
31
    def __init__(self):
32
32
        handlers = {
33
 
                        consts.MSG_EVT_LOAD_TRACKS: self.onLoadTracks,
34
 
                   }
 
33
            consts.MSG_EVT_LOAD_TRACKS: self.onLoadTracks,
 
34
        }
35
35
        modules.ThreadedModule.__init__(self, handlers)
36
36
 
37
 
 
38
37
    def onLoadTracks(self, paths):
39
38
        modules.postMsg(consts.MSG_CMD_TRACKLIST_ADD,
40
39
                        {'tracks': media.getTracks(paths), 'playNow': True})