Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding files from directory with sym links #1953

Closed
grantonstar opened this issue Oct 19, 2014 · 5 comments
Closed

Adding files from directory with sym links #1953

grantonstar opened this issue Oct 19, 2014 · 5 comments

Comments

@grantonstar
Copy link

Hi,

I keep my music in multiple directories across hard drives so I created a single folder with sym links to the music directories in question. I can ls on the sym links and see my music. However, when trying to scan headphones says it can't find any media.

Is it possible to get headphones to follow sym links?

@basilfx
Copy link
Contributor

basilfx commented Oct 20, 2014

Could you try the following, and report back to me?

In headphones/librarysync.py, change Line 81 from

for r,d,f in os.walk(dir):

into

for r,d,f in os.walk(dir, followlinks=True):

(Make a copy of the file, and put it back afterwards. This way, auto updating should work fine in the future.)

@basilfx
Copy link
Contributor

basilfx commented Oct 21, 2014

Just a subtle bump: did you already try this? If it works, I can add it to pull request #1958.

@grantonstar
Copy link
Author

Working now. Thanks.

@basilfx
Copy link
Contributor

basilfx commented Oct 22, 2014

Submitted this fix in pull request #1959.

@basilfx
Copy link
Contributor

basilfx commented Nov 13, 2014

@grantonstar Can you maybe try the latest develop branch? I reworked this simple fix to prevent infinite recursion. It seems to work, but please test it if you can.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants