Merge remote-tracking branch 'origin/patch-2' into NicoHood3

This commit is contained in:
NicoHood 2016-02-04 14:57:18 +01:00
commit 91704a0085
2 changed files with 2 additions and 1 deletions

View file

@ -309,6 +309,7 @@ class Track(Record):
text = os.path.splitext(os.path.basename(filename))[0]
audio = mutagen.File(filename, easy = True)
if audio:
# Note: Rythmbox IPod plugin sets this value always 0.
self["stop_at_pos_ms"] = int(audio.info.length * 1000)
artist = audio.get("artist", [u"Unknown"])[0]