[gnome-music/wip/jfelder/fix-player-pause-change: 1/2] gstplayer: Fix url getter



commit ea99a384e9259434389520aea8244c8d91361835
Author: Jean Felder <jfelder src gnome org>
Date:   Wed Jan 30 08:31:55 2019 +0100

    gstplayer: Fix url getter
    
    uri property from playbin3 is used to Set the next URI that playbin3
    will play. Its value is null once a new song is loaded.
    current_uri property is the currently playing uri.
    
    Use current_uri instead of of uri to get current url loaded.

 gnomemusic/gstplayer.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gnomemusic/gstplayer.py b/gnomemusic/gstplayer.py
index b4648163..16435c15 100644
--- a/gnomemusic/gstplayer.py
+++ b/gnomemusic/gstplayer.py
@@ -242,7 +242,7 @@ class GstPlayer(GObject.GObject):
         :return: url
         :rtype: string
         """
-        return self._player.props.uri
+        return self._player.props.current_uri
 
     @url.setter
     def url(self, url_):


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]