diff options
-rw-r--r-- | nephilim/song.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/nephilim/song.py b/nephilim/song.py index c9c1145..d1ea869 100644 --- a/nephilim/song.py +++ b/nephilim/song.py @@ -46,6 +46,8 @@ class Song(dict): try: return dict.__getitem__(self, key) except KeyError: + if isinstance(key, QtCore.QString): + return self[str(key)] if key == 'tracknum': try: return int(self['track']) @@ -74,7 +76,6 @@ class Song(dict): ret = ret.replace('$songdir', os.path.dirname(self['file'])) return ret - class SongRef: """SongRef stores only a reference to the song (uri) instead of full metadata to conserve memory. Song's tags can be accessed |