Compare 564ac24 ... +40 ... 2d2e998

Showing 15 of 35 files from the diff.

@@ -89,7 +89,9 @@
Loading
89 89
        )
90 90
91 91
92 -
def check_query(arg, fields=SEARCH_FIELDS, list_values=True):
92 +
def check_query(arg, fields=None, list_values=True):
93 +
    if fields is None:
94 +
        fields = SEARCH_FIELDS
93 95
    # TODO: normalize name  -> track_name
94 96
    # TODO: normalize value -> [value]
95 97
    # TODO: normalize blank -> [] or just remove field?

@@ -28,7 +28,7 @@
Loading
28 28
        name_parts = []
29 29
        if track.artists:
30 30
            name_parts.append(
31 -
                ", ".join([artist.name for artist in track.artists])
31 +
                ", ".join(artist.name for artist in track.artists)
32 32
            )
33 33
        if track.name is not None:
34 34
            name_parts.append(track.name)

@@ -31,7 +31,7 @@
Loading
31 31
            + [gstreamer_info]
32 32
        )
33 33
34 -
    return "\n".join([_format_dependency(a()) for a in adapters])
34 +
    return "\n".join(_format_dependency(a()) for a in adapters)
35 35
36 36
37 37
def _format_dependency(dep_info):

@@ -301,7 +301,8 @@
Loading
301 301
302 302
        if tl_track is not None:
303 303
            # TODO: allow from outside tracklist, would make sense given refs?
304 -
            assert tl_track in self.core.tracklist.get_tl_tracks()
304 +
            if tl_track not in self.core.tracklist.get_tl_tracks():
305 +
                raise AssertionError
305 306
        elif tl_track is None and self.get_state() == PlaybackState.PAUSED:
306 307
            self.resume()
307 308
            return

@@ -1,10 +1,9 @@
Loading
1 1
import configparser
2 2
import io
3 +
import xml.etree.ElementTree as elementtree  # noqa: N813
3 4
4 5
from mopidy.internal import validation
5 6
6 -
import xml.etree.ElementTree as elementtree  # noqa: N813
7 -
8 7
9 8
def parse(data):
10 9
    handlers = {

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Learn more Showing 2 files with coverage changes found.

Changes in mopidy/core/library.py
-1
+1
Loading file...
Changes in mopidy/file/library.py
-15
+15
Loading file...

42 Commits

+1
-1
Hiding 1 contexual commits
+19
+19
-19
-21
+2
+3
+20
-17
+10
+1
+9
-2
+2
+2
-2
+8
+7
+1
+9
+9
+5
+4
+1
-3
-3
+1
-1
+34
-34
Hiding 1 contexual commits
+1
+1
+4
-31
+35
Files Coverage
mopidy 0.10% 77.00%
Project Totals (55 files) 77.00%
Loading