~ubuntu-branches/debian/stretch/veromix/stretch

« back to all changes in this revision

Viewing changes to contents/code/MediaPlayer.py

  • Committer: Package Import Robot
  • Author(s): Nik Lutz
  • Date: 2012-04-04 00:41:03 UTC
  • mfrom: (1.1.1)
  • Revision ID: package-import@ubuntu.com-20120404004103-90wf34z1bv17pau2
Tags: 0.16.2-1
* New upstream release.
* Updated debian/control convert Vcs-Svn field to Vcs-Git.

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
# GNU General Public License for more details.
13
13
#
14
14
# You should have received a copy of the GNU General Public License
15
 
# along with this library; if not, write to the Free Software
16
 
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
17
 
# USA
 
15
# along with this program. If not, see <http://www.gnu.org/licenses/>.
18
16
 
19
17
import signal, os, datetime
20
18
import dbus.mainloop.qt
255
253
            metadata = properties[dbus.String("Metadata")]
256
254
            if type(metadata) == type(dbus.String("")):
257
255
                return
 
256
            if type(metadata) == type(dbus.Struct([""])):
 
257
                #deadbeef fallback
 
258
                metadata = metadata[0]
258
259
            #self.mpris2_trackid = metadata[dbus.String("mpris:trackid")]
259
260
            if dbus.String("mpris:artUrl") in metadata.keys():
260
261
                val = QUrl(str(metadata[dbus.String("mpris:artUrl")])).path()