Skip to content
Snippets Groups Projects
Commit bdcdd455 authored by Xavier Claessens's avatar Xavier Claessens Committed by Sjoerd Simons
Browse files

tracker: do not assume all files in grilo are from our home directory

Summary:
Tracker will soon index files from /home/share as well, just ignore them
for now.

Reviewers: smcv, pwith

Differential Revision: https://phabricator.apertis.org/D398
parent dcc93ed0
No related branches found
No related tags found
No related merge requests found
......@@ -113,9 +113,10 @@ class TrackerTest(unittest.TestCase):
url = media.get_url()
prefix = 'file://' + self.homedir + '/'
self.assertTrue(url.startswith(prefix))
filename = url[len(prefix):]
if not url.startswith(prefix):
continue
filename = url[len(prefix):]
if filename in ['Music/generic.oga',
'Music/generic.mp3',
'Music/generic.flac',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment