You are not logged in.

#1 2009-09-17 16:21:17

brisbin33
Member
From: boston, ma
Registered: 2008-07-24
Posts: 1,796
Website

[SOLVED]ncmpcpp won't show tags in playlist... but will in tag editor

64 bit
[testing] enabled
ncmpcpp 0.4-1

when viewing the playlist the tracks don't show:
ncmpcpp_playlist.png

but when i hit 'e' on any one of these tracks the tags appear to be fine:
ncmpcpp_editor.png

so ncmpcpp can't read the tags... but it can?

is anyone else seeing this behavior? it only affects a small subset of songs (with no consistency i've seen) and i don't know when it started.

i'll probably try rewriting the tags with easytag or something to see if that helps.  will post back outcome.

Last edited by brisbin33 (2009-09-17 21:31:40)

Offline

#2 2009-09-17 20:19:20

Rasi
Member
From: Germany
Registered: 2007-08-14
Posts: 1,914
Website

Re: [SOLVED]ncmpcpp won't show tags in playlist... but will in tag editor

? your playlist shows all information... Its just that the format is odd. 99% a config error, but cant say, since you didnt post your config.

*edit* ah you mean the black space at the top... hmm odd. can you try the git version please? Also mpd 0.15.3 has a bug with tags in vorbis files, which is my failure smile Will be fixed in 0.15.4

Last edited by Rasi (2009-09-17 20:21:41)


He hoped and prayed that there wasn't an afterlife. Then he realized there was a contradiction involved here and merely hoped that there wasn't an afterlife.

Douglas Adams

Offline

#3 2009-09-17 20:21:42

brisbin33
Member
From: boston, ma
Registered: 2008-07-24
Posts: 1,796
Website

Re: [SOLVED]ncmpcpp won't show tags in playlist... but will in tag editor

odd that a config error would effect specific tracks... anyways, here you go:

####################################################
## this is example configuration file, copy it to ##
## ~/.ncmpcpp/config and set up your preferences  ##
####################################################
#
##### connection settings #####
#
## set it in order to make tag editor and renaming files work properly
#
mpd_host = "192.168.0.5"
#
mpd_port = "6600"
#
mpd_music_dir = "/home/patrick/Music"
#
mpd_connection_timeout = "5"
#
mpd_crossfade_time = "3"
#
##### delays #####
#
## delay after playlist highlighting will be disabled (0 = don't disable)
#
playlist_disable_highlight_delay = "3"
#
## defines how long various messages are supposed to be visible
#
message_delay_time = "3"
#
##### song format #####
##
## for song format you can use:
##
## %l - length
## %f - short filename
## %F - full filename
## %a - artist
## %t - title
## %b - album
## %y - year
## %n - track number
## %g - genre
## %c - composer
## %p - performer
## %d - disc
## %C - comment
## $R - begin right align
##
## you can also put them in { } and then it will be displayed
## only if all requested values are available and/or define alternate
## value with { }|{ } eg. {%a - %t}|{%f}
##
## text can also have different color than the main window has,
## eg. if you want length to have other color, write [.color]%t[/color]
##
## available colors:
##
## - black
## - red
## - green
## - yellow
## - blue
## - magenta
## - cyan
## - white
##
#
song_list_format = "$3[%l]$9 $7%a$9 %t $4%y$9 $R $4%n$9 $7%b$9"
#song_library_format = "{%n - }{%t}|{%f}"
#media_library_album_format = "{(%y) }%b"
#tag_editor_album_format = "{(%y) }%b"
#browser_playlist_prefix = "[.red]playlist[/red] "
#selected_item_prefix = "[.magenta]"
#selected_item_suffix = "[/magenta]"
## colors are not supported for below veriables
#song_status_format = "{(%l) }{%a - }{%t}|{%f}"
#song_window_title_format = "{%a - }{%t}|{%f}"
##### columns settings #####
##
## syntax of song columns list format is "column column etc."
##
## - syntax for each column is:
##
## (width of column in %)[column's color]{displayed tag}
##
## - color is optional (if it's not present, default window color will be used)
##
#
#song_columns_list_format = "(18)[blue]{a} (6)[cyan]{n} (68)[yellow]{t} (8)[green]{l}"
#
##### various settings #####
#
playlist_display_mode = "classic" (classic/columns)
incremental_seeking = "yes"
seek_time = "1"
autocenter_mode = "yes"
repeat_one_mode = "no"
default_place_to_search_in = "database" (database/playlist)
media_library_left_column = "a" (possible values: a,y,g,c,p, legend above)
default_find_mode = "wrapped" (wrapped/normal)
default_space_mode = "add" (add/select)
default_tag_editor_left_col = "dirs" (albums/dirs)
default_tag_editor_pattern = "%n - %t"
header_visibility = "yes"
statusbar_visibility = "yes"
fancy_scrolling = "yes"
follow_now_playing_lyrics = "yes"
ncmpc_like_songs_adding = "no" (enabled - add/remove, disabled - always add)
enable_window_title = "yes"
#
##### colors definitions #####
colors_enabled = "yes"
empty_tag_color = "cyan"
header_window_color = "white"
volume_color = "white"
state_line_color = "white"
state_flags_color = "white"
main_window_color = "white"
color1 = "white"
color2 = "blue"
main_window_highlight_color = "white"
progressbar_color = "white"
statusbar_color = "white"
active_column_color = "blue"
window_border_color = "blue"
active_window_border = "yellow"

/edit: these are mp3's that are affect... but i don't think it's type specific (hard to check w/o scrolling through the 4k song playlist for blank sections).  seems to affect whole directories at a time though.

im using mpd-git (20090911), i'll try ncmpcpp-git now (last time i did it had other bugs tho, so i reverted)... we'll see.

Last edited by brisbin33 (2009-09-17 20:24:37)

Offline

#4 2009-09-17 20:23:13

Rasi
Member
From: Germany
Registered: 2007-08-14
Posts: 1,914
Website

Re: [SOLVED]ncmpcpp won't show tags in playlist... but will in tag editor

Sorry, didnt recognise the black space smile

anyway, you can still try a fresh config for a test. For the rest see my edited post.


He hoped and prayed that there wasn't an afterlife. Then he realized there was a contradiction involved here and merely hoped that there wasn't an afterlife.

Douglas Adams

Offline

#5 2009-09-17 21:27:23

brisbin33
Member
From: boston, ma
Registered: 2008-07-24
Posts: 1,796
Website

Re: [SOLVED]ncmpcpp won't show tags in playlist... but will in tag editor

ok, so i just upgraded to ncmppp-git.  problem remains.

oddly, with both git and non-git, this poblem occurs only with "classic" playlist mode.  in "column" mode all tracks show fine.  pretty bizarre and makes me think its an ncmpcpp issue and not tags/files.  anything else i can try? i much prefer "classic" mode.

i already had to change %r to $R when i last updated ncmpcpp, maybe i have some other legacy-ism in the config?

EDIT: found it!

so the tracks that didn't show were any that didn't have a "year" tag.  and since i have "year" showing in the playlist format, it didn't show the entire line.  in previous versions it just wouldn't show the bit that was missing, now i guess it blanks the whole line if your missing an attribute?

oh well, might still be considered a bug but it's [SOLVED] for me nonetheless.

Last edited by brisbin33 (2009-09-17 21:31:25)

Offline

#6 2009-09-26 00:49:01

unK
Member
Registered: 2008-11-16
Posts: 26

Re: [SOLVED]ncmpcpp won't show tags in playlist... but will in tag editor

This is because since 0.4 version the way ncmpcpp parses song formats has changed a bit. The format you use is equal to

{$3[%l]$9 $7%a$9 %t $4%y$9 $R $4%n$9 $7%b$9}

so since ncmpcpp couldn't find year tag, which is in "main" braces, it didn't print anything at all. You may want to use something like that:

song_list_format = "{$3[%l]$9 }{$7%a$9 }{%t}|{%f} {$4%y$9 }$R{$4%n$9 }{$7%b$9}"

This way if a tag won't be found, only the content from top braces will be discarded (I also added a filename as a fallback if title tag is not found).

Apparently I forgot to document it, sorry for that hmm

Offline

#7 2009-09-26 01:25:58

brisbin33
Member
From: boston, ma
Registered: 2008-07-24
Posts: 1,796
Website

Re: [SOLVED]ncmpcpp won't show tags in playlist... but will in tag editor

thanks unK for the response.  i remember seeing this info in the sample config since forever, i never use them b/c i meticously tag my music, and up until now the occaisional missed year didn't matter.

FYI i've been getting segfaults with 0.4 (and -git) when navigating to specific songs in the playlist window (not even playing, just highlighting it).  that'll be it's own post soon i think... need to gather some more data.

Offline

#8 2009-09-26 02:29:17

ataraxia
Member
From: Pittsburgh
Registered: 2007-05-06
Posts: 1,553

Re: [SOLVED]ncmpcpp won't show tags in playlist... but will in tag editor

brisbin33 wrote:

FYI i've been getting segfaults with 0.4 (and -git) when navigating to specific songs in the playlist window (not even playing, just highlighting it).  that'll be it's own post soon i think... need to gather some more data.

I just came across either the same crash, or a very similar one. In the Media Library screen, if I navigate to a view where a song is shown that displays a $, it crashes. I have sample data and a backtrace with debugging enabled. Reported this just now at mpd mantis, ID #2536.

(Who puts a $ in a song title? Aphex Twin, that's who.)

Offline

#9 2009-10-01 19:28:41

brisbin33
Member
From: boston, ma
Registered: 2008-07-24
Posts: 1,796
Website

Re: [SOLVED]ncmpcpp won't show tags in playlist... but will in tag editor

FYI: the mentioned segfaults are no longer present since my last git pull 20090928-1

Offline

Board footer

Powered by FluxBB