mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-20 13:23:18 -07:00
Update beets to 1.4.7
Also updates: - colorama-0.4.1 - jellyfish-0.6.1 - munkres-1.0.12 - musicbrainzngs-0.6 - mutagen-1.41.1 - pyyaml-3.13 - six-1.12.0 - unidecode-1.0.23
This commit is contained in:
parent
05b0fb498f
commit
e854005ae1
193 changed files with 15896 additions and 6384 deletions
|
@ -21,7 +21,7 @@ from __future__ import division, absolute_import, print_function
|
|||
from os.path import basename
|
||||
from datetime import datetime
|
||||
from time import mktime
|
||||
from xml.sax.saxutils import escape
|
||||
from xml.sax.saxutils import quoteattr
|
||||
|
||||
from beets.util import displayable_path
|
||||
from beets.dbcore import types
|
||||
|
@ -51,7 +51,7 @@ class Amarok(MetaSource):
|
|||
|
||||
queryXML = u'<query version="1.0"> \
|
||||
<filters> \
|
||||
<and><include field="filename" value="%s" /></and> \
|
||||
<and><include field="filename" value=%s /></and> \
|
||||
</filters> \
|
||||
</query>'
|
||||
|
||||
|
@ -71,7 +71,9 @@ class Amarok(MetaSource):
|
|||
# for the patch relative to the mount point. But the full path is part
|
||||
# of the result set. So query for the filename and then try to match
|
||||
# the correct item from the results we get back
|
||||
results = self.collection.Query(self.queryXML % escape(basename(path)))
|
||||
results = self.collection.Query(
|
||||
self.queryXML % quoteattr(basename(path))
|
||||
)
|
||||
for result in results:
|
||||
if result['xesam:url'] != path:
|
||||
continue
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue