Skip to content

Add support for directory URIs#19

Open
ueb wants to merge 1 commit intoconfirm:masterfrom
ueb:directory_playback
Open

Add support for directory URIs#19
ueb wants to merge 1 commit intoconfirm:masterfrom
ueb:directory_playback

Conversation

@ueb
Copy link
Copy Markdown

@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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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)

@ueb ueb force-pushed the directory_playback branch from 41cdeec to 69d690b Compare March 26, 2021 19:31
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 ueb force-pushed the directory_playback branch from 69d690b to ee773e8 Compare May 2, 2021 13:56
@ueb
Copy link
Copy Markdown
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.

2 participants