Skip to content
This repository has been archived by the owner on Apr 16, 2019. It is now read-only.

Commit

Permalink
Fixes album directory regex.
Browse files Browse the repository at this point in the history
  • Loading branch information
EnigmaCurry committed Dec 29, 2012
1 parent 3a59755 commit 407aab0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gmusicfs/gmusicfs.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,11 +166,11 @@ def __init__(self, path, username=None, password=None):
Operations.__init__(self)
self.artist_dir = re.compile('^/artists/(?P<artist>[^/]+)$')
self.artist_album_dir = re.compile(
'^/artists/(?P<artist>[^/]+)/[0-9]{4} - (?P<album>[^/]+)$')
'^/artists/(?P<artist>[^/]+)/(?P<year>[0-9]{4}) - (?P<album>[^/]+)$')
self.artist_album_track = re.compile(
'^/artists/(?P<artist>[^/]+)/[0-9]{4} - (?P<album>[^/]+)/(?P<track>[^/]+\.mp3)$')
'^/artists/(?P<artist>[^/]+)/(?P<year>[0-9]{4}) - (?P<album>[^/]+)/(?P<track>[^/]+\.mp3)$')
self.artist_album_image = re.compile(
'^/artists/(?P<artist>[^/]+)/[0-9]{4} - (?P<album>[^/]+)/(?P<image>[^/]+\.jpg)$')
'^/artists/(?P<artist>[^/]+)/(?P<year>[0-9]{4}) - (?P<album>[^/]+)/(?P<image>[^/]+\.jpg)$')

self.__open_files = {} # path -> urllib2_obj

Expand Down

0 comments on commit 407aab0

Please sign in to comment.