mirror of
https://github.com/nims11/IPod-Shuffle-4g.git
synced 2025-12-08 00:18:01 +09:00
Merge 5ab2c972a3 into 5570692175
This commit is contained in:
commit
39a9ffe165
1 changed files with 2 additions and 2 deletions
|
|
@ -16,7 +16,7 @@ import re
|
||||||
import tempfile
|
import tempfile
|
||||||
import signal
|
import signal
|
||||||
|
|
||||||
audio_ext = (".mp3", ".m4a", ".m4b", ".m4p", ".aa", ".wav")
|
audio_ext = (".mp3", ".m4a", ".m4b", ".m4p", ".aa", ".wav", "wma")
|
||||||
list_ext = (".pls", ".m3u")
|
list_ext = (".pls", ".m3u")
|
||||||
def make_dir_if_absent(path):
|
def make_dir_if_absent(path):
|
||||||
try:
|
try:
|
||||||
|
|
@ -543,7 +543,7 @@ class Shuffler(object):
|
||||||
fullPath = os.path.abspath(os.path.join(dirpath, filename))
|
fullPath = os.path.abspath(os.path.join(dirpath, filename))
|
||||||
relPath = fullPath[fullPath.index(self.path)+len(self.path)+1:].lower()
|
relPath = fullPath[fullPath.index(self.path)+len(self.path)+1:].lower()
|
||||||
fullPath = os.path.abspath(os.path.join(self.path, relPath));
|
fullPath = os.path.abspath(os.path.join(self.path, relPath));
|
||||||
if os.path.splitext(filename)[1].lower() in (".mp3", ".m4a", ".m4b", ".m4p", ".aa", ".wav"):
|
if os.path.splitext(filename)[1].lower() in (".mp3", ".m4a", ".m4b", ".m4p", ".aa", ".wav", "wma"):
|
||||||
self.tracks.append(fullPath)
|
self.tracks.append(fullPath)
|
||||||
if os.path.splitext(filename)[1].lower() in (".pls", ".m3u"):
|
if os.path.splitext(filename)[1].lower() in (".pls", ".m3u"):
|
||||||
self.lists.append(os.path.abspath(os.path.join(dirpath, filename)))
|
self.lists.append(os.path.abspath(os.path.join(dirpath, filename)))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue