Skip to content

Commit

Permalink
Quick bug patch
Browse files Browse the repository at this point in the history
  • Loading branch information
Tito1337 committed Nov 20, 2011
1 parent fa275d5 commit 97a4079
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions daap-resolver.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ def fulltext(self, search):
found["artist"] = t.artist
found["track"] = t.name
found["album"] = t.album
if isinstance(t.time, int)
found["duration"] = int(t.time/1000):
if isinstance(t.time, int):
found["duration"] = int(t.time/1000)
found["url"] = 'http://%s:%s/databases/%d/items/%d.mp3?session-id=%s'%(self.host, self.port, self.database.id, t.id, self.session.sessionid)
found["score"] = 1
#found["source"] = 'DAAP'
Expand All @@ -77,8 +77,8 @@ def artistandtrack(self, artist, track):
found["artist"] = t.artist
found["track"] = t.name
found["album"] = t.album
if isinstance(t.time, int)
found["duration"] = int(t.time/1000):
if isinstance(t.time, int):
found["duration"] = int(t.time/1000)
found["url"] = 'http://%s:%s/databases/%d/items/%d.mp3?session-id=%s'%(self.host, self.port, self.database.id, t.id, self.session.sessionid)
found["score"] = 1
#found["source"] = 'DAAP'
Expand Down

0 comments on commit 97a4079

Please sign in to comment.