mirror of
https://github.com/nims11/IPod-Shuffle-4g.git
synced 2025-12-07 16:08:00 +09:00
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>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>
|
||||
|
|
|
|||
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue