-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
merge_playlists now updates paths for local merges + name and path no…
…w settable on local playlists and library
- Loading branch information
1 parent
c63be5a
commit 0083d47
Showing
21 changed files
with
3,057 additions
and
2,903 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,30 @@ | ||
# Minimal makefile for Sphinx documentation | ||
# | ||
|
||
# You can set these variables from the command line, and also | ||
# from the environment for the first two. | ||
VERSION = $(shell hatch version) | ||
SPHINXOPTS ?= -D release=${VERSION} | ||
SPHINXBUILD ?= sphinx-build | ||
SOURCEDIR = docs | ||
BUILDDIR = docs/_build | ||
PROJECTNAME = musify | ||
LINKCHECKDIR = docs/_linkcheck | ||
|
||
# Put it first so that "make" without argument is like "make help". | ||
help: | ||
$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) | ||
|
||
rebuild-html: Makefile | ||
@$(SPHINXBUILD) -M clean "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) | ||
@rm -f "$(SOURCEDIR)"/reference/"$(PROJECTNAME)"*.rst | ||
@sphinx-apidoc -o "$(SOURCEDIR)"/reference ./"$(PROJECTNAME)" -d 4 --force --module-first --separate --no-toc -t "$(SOURCEDIR)"/_templates | ||
@$(SPHINXBUILD) -M html "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) | ||
@$(SPHINXBUILD) -b linkcheck "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) | ||
|
||
.PHONY: help Makefile | ||
|
||
# Catch-all target: route all unknown targets to Sphinx using the new | ||
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS). | ||
%: Makefile | ||
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) | ||
# Minimal makefile for Sphinx documentation | ||
# | ||
|
||
# You can set these variables from the command line, and also | ||
# from the environment for the first two. | ||
VERSION = $(shell hatch version) | ||
SPHINXOPTS ?= -D release=${VERSION} | ||
SPHINXBUILD ?= sphinx-build | ||
SOURCEDIR = docs | ||
BUILDDIR = docs/_build | ||
PROJECTNAME = musify | ||
LINKCHECKDIR = docs/_linkcheck | ||
|
||
# Put it first so that "make" without argument is like "make help". | ||
help: | ||
$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) | ||
|
||
rebuild-html: Makefile | ||
@$(SPHINXBUILD) -M clean "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) | ||
@rm -f "$(SOURCEDIR)"/reference/"$(PROJECTNAME)"*.rst | ||
@sphinx-apidoc -o "$(SOURCEDIR)"/reference ./"$(PROJECTNAME)" -d 4 --force --module-first --separate --no-toc -t "$(SOURCEDIR)"/_templates | ||
@$(SPHINXBUILD) -M html "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) | ||
@$(SPHINXBUILD) -b linkcheck "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) | ||
|
||
.PHONY: help Makefile | ||
|
||
# Catch-all target: route all unknown targets to Sphinx using the new | ||
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS). | ||
%: Makefile | ||
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
Licence | ||
======= | ||
|
||
.. literalinclude:: /../LICENSE | ||
:language: none | ||
Licence | ||
======= | ||
|
||
.. literalinclude:: /../LICENSE | ||
:language: none |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,54 +1,54 @@ | ||
""" | ||
Just the core abstract class for the :py:mod:`Remote` module. | ||
Placed here separately to avoid circular import logic issues. | ||
""" | ||
from abc import ABCMeta, abstractmethod | ||
from typing import Any | ||
|
||
from yarl import URL | ||
|
||
from musify.base import MusifyObject | ||
|
||
|
||
class RemoteResponse(MusifyObject, metaclass=ABCMeta): | ||
|
||
__slots__ = () | ||
|
||
# noinspection PyPropertyDefinition,PyMethodParameters | ||
@property | ||
@abstractmethod | ||
def kind(cls): | ||
"""The type of remote object this class represents""" | ||
raise NotImplementedError | ||
|
||
@property | ||
@abstractmethod | ||
def response(self) -> dict[str, Any]: | ||
"""The API response for this object""" | ||
raise NotImplementedError | ||
|
||
@property | ||
@abstractmethod | ||
def id(self) -> str: | ||
"""The ID of this item/collection.""" | ||
raise NotImplementedError | ||
|
||
@property | ||
@abstractmethod | ||
def url(self) -> URL: | ||
"""The API URL of this item/collection.""" | ||
raise NotImplementedError | ||
|
||
@property | ||
@abstractmethod | ||
def url_ext(self) -> URL | None: | ||
"""The external URL of this item/collection.""" | ||
raise NotImplementedError | ||
|
||
@abstractmethod | ||
def refresh(self, skip_checks: bool = False) -> None: | ||
""" | ||
Refresh this object by updating from the stored API response. | ||
Useful for updating stored variables after making changes to the stored API response manually. | ||
""" | ||
raise NotImplementedError | ||
""" | ||
Just the core abstract class for the :py:mod:`Remote` module. | ||
Placed here separately to avoid circular import logic issues. | ||
""" | ||
from abc import ABCMeta, abstractmethod | ||
from typing import Any | ||
|
||
from yarl import URL | ||
|
||
from musify.base import MusifyObject | ||
|
||
|
||
class RemoteResponse(MusifyObject, metaclass=ABCMeta): | ||
|
||
__slots__ = () | ||
|
||
# noinspection PyPropertyDefinition,PyMethodParameters | ||
@property | ||
@abstractmethod | ||
def kind(cls): | ||
"""The type of remote object this class represents""" | ||
raise NotImplementedError | ||
|
||
@property | ||
@abstractmethod | ||
def response(self) -> dict[str, Any]: | ||
"""The API response for this object""" | ||
raise NotImplementedError | ||
|
||
@property | ||
@abstractmethod | ||
def id(self) -> str: | ||
"""The ID of this item/collection.""" | ||
raise NotImplementedError | ||
|
||
@property | ||
@abstractmethod | ||
def url(self) -> URL: | ||
"""The API URL of this item/collection.""" | ||
raise NotImplementedError | ||
|
||
@property | ||
@abstractmethod | ||
def url_ext(self) -> URL | None: | ||
"""The external URL of this item/collection.""" | ||
raise NotImplementedError | ||
|
||
@abstractmethod | ||
def refresh(self, skip_checks: bool = False) -> None: | ||
""" | ||
Refresh this object by updating from the stored API response. | ||
Useful for updating stored variables after making changes to the stored API response manually. | ||
""" | ||
raise NotImplementedError |
Oops, something went wrong.