Compare commits

..

No commits in common. "0023372fb803b321df5422f617fa4ae1b3706c12" and "50ea01f1880ccab98fc1965ae32be37a37cb7b8d" have entirely different histories.

2 changed files with 0 additions and 12 deletions

View file

@ -233,7 +233,6 @@ set commentstring=//%s
let g:delimitMate_expand_cr = 1
let g:surround_{char2nr('*')} = "**\r**"
let g:surround_{char2nr('~')} = "~~\r~~"
let g:pencil#wrapModeDefault = 'soft'
let g:pencil#conceallevel = 0

View file

@ -1,5 +1,4 @@
#!/usr/bin/env python3
# type: ignore
# A simple graphical menu to control MPRIS-compatible players through Playerctl.
# <https://wiki.archlinux.org/index.php/MPRIS>
@ -8,9 +7,7 @@
# TODO: Update the menu on player status changes.
import math
import posixpath
import sys
import urllib.parse
import gi
@ -62,14 +59,6 @@ def iter_metadata_entries_for_player(player):
if album:
yield album.get_string()
else:
url = metadata.lookup_value("xesam:url")
if url:
url_parsed = urllib.parse.urlparse(url.get_string())
if url_parsed.scheme == "file":
filename = posixpath.basename(urllib.parse.unquote(url_parsed.path))
yield filename
if player.props.can_seek:
position_secs = player.props.position / 1e6
duration = metadata.lookup_value("mpris:length")