[gnome-music/wip/mschraal/grltrackerwrapper-grilo-options-copy: 2/3] grltrackerplaylist: Do not copy options
- From: Marinus Schraal <mschraal src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/mschraal/grltrackerwrapper-grilo-options-copy: 2/3] grltrackerplaylist: Do not copy options
- Date: Thu, 20 Aug 2020 09:33:55 +0000 (UTC)
commit 7099700fc5db61d614c56ecb0e5bfe26a7733d17
Author: Marinus Schraal <mschraal gnome org>
Date: Thu Aug 20 11:32:04 2020 +0200
grltrackerplaylist: Do not copy options
gnomemusic/grilowrappers/grltrackerplaylists.py | 22 +++++++++-------------
1 file changed, 9 insertions(+), 13 deletions(-)
---
diff --git a/gnomemusic/grilowrappers/grltrackerplaylists.py b/gnomemusic/grilowrappers/grltrackerplaylists.py
index 2dffa7c1..294d079f 100644
--- a/gnomemusic/grilowrappers/grltrackerplaylists.py
+++ b/gnomemusic/grilowrappers/grltrackerplaylists.py
@@ -127,10 +127,9 @@ class GrlTrackerPlaylists(GObject.GObject):
}
""".replace('\n', ' ').strip()
- options = self._fast_options.copy()
-
self._source.query(
- query, self.METADATA_KEYS, options, self._add_user_playlist)
+ query, self.METADATA_KEYS, self._fast_options,
+ self._add_user_playlist)
def _add_user_playlist(
self, source, op_id, media, remaining, data=None, error=None):
@@ -234,10 +233,9 @@ class GrlTrackerPlaylists(GObject.GObject):
}
""".replace("\n", " ").strip() % {"playlist_urn": playlist_urn}
- options = self._fast_options.copy()
self._source.query(
- query, self.METADATA_KEYS, options, self._add_user_playlist,
- callback)
+ query, self.METADATA_KEYS, self._fast_options,
+ self._add_user_playlist, callback)
self._window.notifications_popup.push_loading()
query = """
@@ -647,9 +645,8 @@ class Playlist(GObject.GObject):
"location_filter": self._tracker_wrapper.location_filter()
}
- options = self._fast_options.copy()
self._source.query(
- query, self.METADATA_KEYS, options, _add_to_model)
+ query, self.METADATA_KEYS, self._fast_options, _add_to_model)
for coresong in coresongs:
query = """
@@ -756,10 +753,9 @@ class SmartPlaylist(Playlist):
self._bind_to_main_song(coresong)
self._model.append(coresong)
- options = self._fast_options.copy()
-
self._source.query(
- self.props.query, self.METADATA_KEYS, options, _add_to_model)
+ self.props.query, self.METADATA_KEYS, self._fast_options,
+ _add_to_model)
return self._model
@@ -780,9 +776,9 @@ class SmartPlaylist(Playlist):
new_model_medias.append(media)
- options = self._fast_options.copy()
self._source.query(
- self.props.query, self.METADATA_KEYS, options, _fill_new_model)
+ self.props.query, self.METADATA_KEYS, self._fast_options,
+ _fill_new_model)
def _finish_update(self, new_model_medias):
if not new_model_medias:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]