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

Add support for directory URIs #19

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ueb
Copy link

@ueb ueb commented Feb 28, 2021

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.

# 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)
Copy link
Member

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 :/

Copy link
Author

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

Copy link
Member

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.
@ueb
Copy link
Author

ueb commented May 2, 2021

This PR should now generate no new errors in py lint.

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

Successfully merging this pull request may close these issues.

None yet

2 participants