fix library path
This commit is contained in:
parent
866174e47e
commit
7f62cc0b07
1 changed files with 2 additions and 4 deletions
|
@ -4,8 +4,6 @@ import os
|
|||
import sys
|
||||
import webbrowser
|
||||
|
||||
from twisted.internet import glib2reactor
|
||||
|
||||
from twisted.web.server import Site
|
||||
from twisted.internet import reactor
|
||||
|
||||
|
@ -17,9 +15,9 @@ from version import __version__
|
|||
|
||||
def itunes_path():
|
||||
if sys.platform == 'darwin':
|
||||
path = os.path.expanduser('~/Music/iTunes/iTunes Library.xml')
|
||||
path = os.path.expanduser('~/Music/iTunes/iTunes Music Library.xml')
|
||||
elif sys.platform == 'win32':
|
||||
path = os.path.expanduser('~\\Music\\iTunes\\iTunes Library.xml')
|
||||
path = os.path.expanduser('~\\Music\\iTunes\\iTunes Music Library.xml')
|
||||
else:
|
||||
path = None
|
||||
return path
|
||||
|
|
Loading…
Reference in a new issue