-
Notifications
You must be signed in to change notification settings - Fork 15
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
Add support for directory URIs #19
base: master
Are you sure you want to change the base?
Conversation
# the Tracks. Right now it is not possible to get the type of an | ||
# URI. So we just try to browse uri and if it is not a directory | ||
# this will return an empty list of uris. | ||
uris = cls._browse_uri(core, uri) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ueb Are you sure this is working? Because the method doesn't seem to return anything :/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, I did test the wrong branch.
It is working now. Tested it with:
- a single file
- a directory without subdirectories
- a driectory with subdirectories
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please ensure the tests are running successful:
pylint mopidy_pummeluff
************* Module mopidy_pummeluff.actions.tracklist
mopidy_pummeluff/actions/tracklist.py:26:0: C0303: Trailing whitespace (trailing-whitespace)
mopidy_pummeluff/actions/tracklist.py:28:31: C0303: Trailing whitespace (trailing-whitespace)
mopidy_pummeluff/actions/tracklist.py:62:0: C0303: Trailing whitespace (trailing-whitespace)
mopidy_pummeluff/actions/tracklist.py:63:8: W1202: Use % formatting in logging functions and pass the % parameters as arguments (logging-format-interpolation)
************* Module mopidy_pummeluff.actions.__init__
mopidy_pummeluff/actions/__init__.py:1:0: R0801: Similar lines in 2 files
==mopidy_pummeluff.actions.__init__:4
==mopidy_pummeluff.actions.playback:4
__all__ = (
'PlayPause',
'Stop',
'PreviousTrack',
'NextTrack', (duplicate-code)
Allows the user to assign directory URIs to an RFID tag. All Tracks in the referenced directory and its sub directories will be added to the tracklist.
This PR should now generate no new errors in py lint. |
Allows the user to assign directory URIs to an RFID tag.
All Tracks in the referenced directory and its sub directories
will be added to the tracklist.