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

@ -364,7 +364,7 @@ Here's the general layout of an iTunesSD file:<br>
</td>
<td>4<br>
</td>
<td><br>
<td>Rythmbox IPod plugin sets this value always 0.<br>
</td>
<td><span style="font-family: 'Courier New',Courier,monospace;">112169</span><br>
</td>

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]