mirror of
https://github.com/rembo10/headphones.git
synced 2026-07-22 00:44:00 +01:00
Dropping trailing whitespaces
This commit is contained in:
@@ -36,6 +36,6 @@ class Library:
|
||||
if attributes.get('Play Count'):
|
||||
s.play_count = int(attributes.get('Play Count'))
|
||||
if attributes.get('Location'):
|
||||
s.location = attributes.get('Location')
|
||||
s.location = attributes.get('Location')
|
||||
songs.append(s)
|
||||
return songs
|
||||
@@ -42,5 +42,5 @@ class Song:
|
||||
album_rating = None
|
||||
play_count = None
|
||||
location = None
|
||||
|
||||
|
||||
#title = property(getTitle,setTitle)
|
||||
@@ -5,7 +5,7 @@ class XMLLibraryParser:
|
||||
s = f.read()
|
||||
lines = s.split("\n")
|
||||
self.dictionary = self.parser(lines)
|
||||
|
||||
|
||||
def getValue(self,restOfLine):
|
||||
value = re.sub("<.*?>","",restOfLine)
|
||||
u = unicode(value,"utf-8")
|
||||
|
||||
Reference in New Issue
Block a user