forked from upstream/IPod-Shuffle-4g
Merge remote-tracking branch 'origin/patch-2' into NicoHood3
This commit is contained in:
commit
91704a0085
2 changed files with 2 additions and 1 deletions
|
|
@ -364,7 +364,7 @@ Here's the general layout of an iTunesSD file:<br>
|
||||||
</td>
|
</td>
|
||||||
<td>4<br>
|
<td>4<br>
|
||||||
</td>
|
</td>
|
||||||
<td><br>
|
<td>Rythmbox IPod plugin sets this value always 0.<br>
|
||||||
</td>
|
</td>
|
||||||
<td><span style="font-family: 'Courier New',Courier,monospace;">112169</span><br>
|
<td><span style="font-family: 'Courier New',Courier,monospace;">112169</span><br>
|
||||||
</td>
|
</td>
|
||||||
|
|
|
||||||
|
|
@ -309,6 +309,7 @@ class Track(Record):
|
||||||
text = os.path.splitext(os.path.basename(filename))[0]
|
text = os.path.splitext(os.path.basename(filename))[0]
|
||||||
audio = mutagen.File(filename, easy = True)
|
audio = mutagen.File(filename, easy = True)
|
||||||
if audio:
|
if audio:
|
||||||
|
# Note: Rythmbox IPod plugin sets this value always 0.
|
||||||
self["stop_at_pos_ms"] = int(audio.info.length * 1000)
|
self["stop_at_pos_ms"] = int(audio.info.length * 1000)
|
||||||
|
|
||||||
artist = audio.get("artist", [u"Unknown"])[0]
|
artist = audio.get("artist", [u"Unknown"])[0]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue