mirror of
https://github.com/SoongNoonien/mpdevil.git
synced 2023-08-10 21:12:44 +03:00
removed confusing multi value tags from the GUI
This commit is contained in:
parent
11e3699d28
commit
cdf06961db
24
bin/mpdevil
24
bin/mpdevil
@ -1737,7 +1737,7 @@ class AlbumPopover(Gtk.Popover):
|
|||||||
self._client.tagtypes("all")
|
self._client.tagtypes("all")
|
||||||
for song in songs:
|
for song in songs:
|
||||||
track=song["track"][0]
|
track=song["track"][0]
|
||||||
title=str(song["title"])
|
title=song["title"][0]
|
||||||
# only show artists =/= albumartist
|
# only show artists =/= albumartist
|
||||||
try:
|
try:
|
||||||
song["artist"].remove(album_artist)
|
song["artist"].remove(album_artist)
|
||||||
@ -1869,8 +1869,8 @@ class SearchThread(threading.Thread):
|
|||||||
except ValueError:
|
except ValueError:
|
||||||
int_track=0
|
int_track=0
|
||||||
self._store.insert_with_valuesv(-1, range(7), [
|
self._store.insert_with_valuesv(-1, range(7), [
|
||||||
str(song["track"]), str(song["title"]),
|
song["track"][0], song["title"][0],
|
||||||
str(song["artist"]), str(song["album"]),
|
str(song["artist"]), song["album"][0],
|
||||||
str(song["duration"]), song["file"],
|
str(song["duration"]), song["file"],
|
||||||
int_track
|
int_track
|
||||||
])
|
])
|
||||||
@ -3008,13 +3008,13 @@ class PlaylistWindow(Gtk.Overlay):
|
|||||||
try:
|
try:
|
||||||
treeiter=self._store.get_iter(song["pos"])
|
treeiter=self._store.get_iter(song["pos"])
|
||||||
self._store.set(treeiter,
|
self._store.set(treeiter,
|
||||||
0, str(song["track"]),
|
0, song["track"][0],
|
||||||
1, str(song["disc"]),
|
1, song["disc"][0],
|
||||||
2, str(song["title"]),
|
2, song["title"][0],
|
||||||
3, str(song["artist"]),
|
3, str(song["artist"]),
|
||||||
4, str(song["album"]),
|
4, song["album"][0],
|
||||||
5, str(song["duration"]),
|
5, str(song["duration"]),
|
||||||
6, str(song["date"]),
|
6, song["date"][0],
|
||||||
7, str(song["genre"]),
|
7, str(song["genre"]),
|
||||||
8, song["file"],
|
8, song["file"],
|
||||||
9, Pango.Weight.BOOK,
|
9, Pango.Weight.BOOK,
|
||||||
@ -3022,10 +3022,10 @@ class PlaylistWindow(Gtk.Overlay):
|
|||||||
)
|
)
|
||||||
except:
|
except:
|
||||||
self._store.insert_with_valuesv(-1, range(11), [
|
self._store.insert_with_valuesv(-1, range(11), [
|
||||||
str(song["track"]), str(song["disc"]),
|
song["track"][0], song["disc"][0],
|
||||||
str(song["title"]), str(song["artist"]),
|
song["title"][0], str(song["artist"]),
|
||||||
str(song["album"]), str(song["duration"]),
|
song["album"][0], str(song["duration"]),
|
||||||
str(song["date"]), str(song["genre"]),
|
song["date"][0], str(song["genre"]),
|
||||||
song["file"], Pango.Weight.BOOK,
|
song["file"], Pango.Weight.BOOK,
|
||||||
float(song["duration"])
|
float(song["duration"])
|
||||||
])
|
])
|
||||||
|
Loading…
Reference in New Issue
Block a user