View previous topic :: View next topic |
Author |
Message |
avx Advocate
Joined: 21 Jun 2004 Posts: 2152
|
Posted: Fri Oct 22, 2010 5:15 am Post subject: |
|
|
Quote: | EDIT: Oh, well, apparently identifying proper lyrics can be done using track number | I don't know about that specific site, couldn't find a single one of my albums there, thus the track# approach might not be foolproof, ie I've got some editions released both in the US and Japan under the same name, they also got the same track count, but the order varies. _________________ ++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>. |
|
Back to top |
|
|
darklegion Guru
Joined: 14 Nov 2004 Posts: 468
|
Posted: Sat Oct 23, 2010 4:26 am Post subject: |
|
|
unK wrote: | The problem with darklyrics.com is that they display lyrics for whole album at one page, which makes ripping out proper lyrics impossible (unless I'm missing something, but brief analysis of page's source didn't reveal anything helpful).
EDIT: Oh, well, apparently identifying proper lyrics can be done using track number. |
Thanks for looking at it. There is also www.azlyrics.com which is the sister site of darklyrics (and covers more mainstream music). It seems to use one song per page, so it might be easier to get working. Both of these sites are considered to be among the best lyrics sites around, so it should be worthwhile to get them working |
|
Back to top |
|
|
truc Advocate
Joined: 25 Jul 2005 Posts: 3199
|
Posted: Sat Oct 30, 2010 3:16 pm Post subject: |
|
|
unK wrote: | Nah, but since 0.5.5 you can save them in song's directory instead of ~/.lyrics.
The feature you're talking about it quite easy to implement though, so you can try to do so and send me a patch.
|
How frustrating!
I did make an attempt to add this feature:
non-working diff, see next post instead: | diff --git a/src/lyrics.cpp b/src/lyrics.cpp
index 7faf0b2..9cb3197 100644
--- a/src/lyrics.cpp
+++ b/src/lyrics.cpp
@@ -203,14 +203,21 @@ void Lyrics::SetFilename()
}
else
{
- std::string file = locale_to_utf_cpy(itsSong.GetArtist());
- file += " - ";
+ std::string file = itsFolder;
+ file += "/";
+ file += locale_to_utf_cpy(itsSong.GetArtist());
+ EscapeUnallowedChars(file);
+ mkdir(file
+# ifndef WIN32
+ , 0755
+# endif // !WIN32
+ );
+
+ file += "/";
file += locale_to_utf_cpy(itsSong.GetTitle());
file += ".txt";
EscapeUnallowedChars(file);
- itsFilename = itsFolder;
- itsFilename += "/";
- itsFilename += file;
+ itsFilename = file;
}
}
|
But I've not been able to try it! ./autogen.sh failed on me for an obscure reason(see below). google hasn't helped me so far, but I'm still searching;)
Code: | checking for autoconf ... autoconf
checking for autoheader ... autoheader
checking for automake ... automake
checking for aclocal ... aclocal
checking for libtoolize ... libtoolize
Generating configuration files for ncmpcpp, please wait....
aclocal
autoheader
libtoolize --automake
automake --add-missing
configure.in:10: installing `./config.guess'
configure.in:10: installing `./config.sub'
configure.in:4: installing `./install-sh'
configure.in:4: installing `./missing'
src/Makefile.am: installing `./depcomp'
autoconf
configure.in:54: error: possibly undefined macro: AC_CHECK_HEADERS
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
configure.in:54: error: possibly undefined macro: AC_MSG_ERROR
configure.in:61: error: possibly undefined macro: AC_SUBST
|
Any hints?
EDIT: Ok I probably had some missing dependencies, it's ok now, well, build is ok my patch is not;) -- working on it:) _________________ The End of the Internet! |
|
Back to top |
|
|
truc Advocate
Joined: 25 Jul 2005 Posts: 3199
|
Posted: Sat Oct 30, 2010 9:17 pm Post subject: |
|
|
Ok, got it:) Well at least I think I do:
patch temporary available here
Code: | diff --git a/src/lyrics.cpp b/src/lyrics.cpp
index 7faf0b2..938db6e 100644
--- a/src/lyrics.cpp
+++ b/src/lyrics.cpp
@@ -204,9 +204,11 @@ void Lyrics::SetFilename()
else
{
std::string file = locale_to_utf_cpy(itsSong.GetArtist());
- file += " - ";
- file += locale_to_utf_cpy(itsSong.GetTitle());
- file += ".txt";
+ EscapeUnallowedChars(file);
+ itsFolder += "/";
+ itsFolder += file;
+ file = locale_to_utf_cpy(itsSong.GetTitle());
+ file += ".lyrics";
EscapeUnallowedChars(file);
itsFilename = itsFolder;
itsFilename += "/";
@@ -259,7 +261,10 @@ void Lyrics::Load()
pthread_create(&itsDownloader, 0, DownloadWrapper, this);
isDownloadInProgress = 1;
# else
- *w << "Local lyrics not found. As ncmpcpp has been compiled without curl support, you can put appropriate lyrics into " << itsFolder << " directory (file syntax is \"$ARTIST - $TITLE.txt\") or recompile ncmpcpp with curl support.";
+ if (Config.store_lyrics_in_song_dir)
+ *w << "Local lyrics not found. As ncmpcpp has been compiled without curl support, you can put appropriate lyrics into " << itsFolder << " directory (file syntax is \"$ARTIST - $TITLE.txt\") or recompile ncmpcpp with curl support.";
+ else
+ *w << "Local lyrics not found. As ncmpcpp has been compiled without curl support, you can put appropriate lyrics into " << itsFolder << " directory (file syntax is \"$TITLE.lyrics\") or recompile ncmpcpp with curl support.";
w->Flush();
# endif
}
|
It will probably wrap here on the forums but may be enough for a quick view.
Any comments appreciated! _________________ The End of the Internet! |
|
Back to top |
|
|
jerkbag n00b
Joined: 17 Dec 2010 Posts: 1
|
Posted: Fri Dec 17, 2010 3:51 am Post subject: |
|
|
hi all,
i'm new to ncmpcpp, but really liking it. one question i have is how you guys are dealing with compilations? in theremin, the osx client I was using before, on a database refresh artists in compilations would appear at the top of my artist browser, each with a space as the first character of the artist name. I don't know how exactly it worked, but by selecting "detect compilations," it would take all of these artists and put them under "Compilations" at the top of my library browser, and remove them from the artist list.
Is there a way to achieve something similar in ncmpcpp? I know I could manually change the album artist tag to all my compilations as "Compilation" and then display Album Artist in the media browser, but I don't have album artist setup for the rest of my library. I don't know if I'm thinking of this correctly, but I'm almost imaging an exception to the displaying artist on the left in the media browser, that if the album artist = 'compilations' or whatever then display album artist tag, otherwise display artist. or something that doesn't require retagging a whole library. Ncmpcpp displays the compilation artists at the top of my list with a space, which makes me think it 'knows' on some level that they are different -- I'm just not sure how to achieve the display I want.
Anyway, thanks for the great work, and for any help, and hopefully this question makes sense! |
|
Back to top |
|
|
_______0 Guru
Joined: 15 Oct 2012 Posts: 521
|
Posted: Thu Dec 27, 2012 12:39 pm Post subject: |
|
|
hey, great mpd fronend there!!
But with jack the volume appears as:
How to have volume control with jack audio server?
Also I am interested as well in changing the progress bar with smileys or hearts. Where in source is the equal character '= specified?
thanks |
|
Back to top |
|
|
unK l33t
Joined: 06 Feb 2007 Posts: 769
|
Posted: Thu Dec 27, 2012 12:55 pm Post subject: |
|
|
_______0 wrote: | Also I am interested as well in changing the progress bar with smileys or hearts. Where in source is the equal character '= specified? |
Have a look at progressbar_look configuration variable. _________________ ncmpcpp - featureful ncurses based MPD client inspired by ncmpc |
|
Back to top |
|
|
_______0 Guru
Joined: 15 Oct 2012 Posts: 521
|
Posted: Wed Jan 02, 2013 2:59 pm Post subject: Feature request |
|
|
is it possible to save song progress by individual songs? Like when going back to the same song starts where it left of before changing to another?
Some android vid players do this, remember playback position per vid. |
|
Back to top |
|
|
unK l33t
Joined: 06 Feb 2007 Posts: 769
|
Posted: Wed Sep 03, 2014 9:35 pm Post subject: |
|
|
Raising the thread from the dead; ncmpcpp-0.6_beta2 is now available. List of changes available here. _________________ ncmpcpp - featureful ncurses based MPD client inspired by ncmpc |
|
Back to top |
|
|
spectromas n00b
Joined: 13 Jul 2014 Posts: 50
|
Posted: Fri Sep 05, 2014 5:08 am Post subject: |
|
|
I'm having some trouble getting the local filesystem browser working, at the moment it is telling me a unix socket is required. I saw earlier in the thread a suggestion of adding "/tmp/mpd.sock" to my mpd.conf but when I do that ncmpcpp doesn't launch and just says connection refused. I also tried ~/.mpd/socket (and full address of this) but the same problem. I'm using the new beta but have only just realized this feature exists.
This is my ncmpcpp config
Code: | # mpd stuff
mpd_host = "localhost"
mpd_port = "6600"
mpd_music_dir = "~/Music"
mpd_connection_timeout = "0"
# appearance
song_list_format = "$5{%a}$9 $2{%t}$9 $R $6{%b}$9 $3{%l}$9"
song_columns_list_format = "(7f)[blue]{l} (25)[red]{a} (40)[green]{t|f} (30)[yellow]{b}"
song_status_format = "{%a} - {%t}|{%f} - \"{%b}\" ({%y})"
# now_playing_prefix = "$b"
now_playing_prefix = "$b$4» "
now_playing_suffix = "$/b"
browser_playlist_prefix = "$2playlist$9 "
selected_item_prefix = "$6"
selected_item_suffix = "$9"
playlist_display_mode = "columns" # (classic/columns)
browser_display_mode = "columns" #(classic/columns)
autocenter_mode = "yes"
progressbar_look = "─╼ "
user_interface = "alternative" #(classic/alternative)
media_library_left_column = "a" #(possible values: a,y,g,c,p, legend above)
header_visibility = "no"
statusbar_visibility = "yes"
titles_visibility = "no"
header_text_scrolling = "yes"
fancy_scrolling = "yes"
cyclic_scrolling = "no"
display_volume_level = "no"
display_bitrate = "yes"
display_remaining_time = "no"
# colors
colors_enabled = "yes"
header_window_color = "blue"
volume_color = "blue"
state_line_color = "magenta"
state_flags_color = "red"
main_window_color = "blue"
color1 = "red"
color2 = "magenta"
main_window_highlight_color = "default"
progressbar_color = "red"
statusbar_color = "default"
alternative_ui_separator_color = "green"
active_column_color = "magenta"
visualizer_color = "red"
window_border_color = "magenta"
active_window_border = "blue"
# more stuff
playlist_disable_highlight_delay = "5"
message_delay_time = "4"
default_find_mode = "wrapped" #(wrapped/normal)
default_space_mode = "add" #(add/select)
follow_now_playing_lyrics = "no"
store_lyrics_in_song_dir = "no"
screen_switcher_mode = "sequence: 2 -> 3"
startup_screen = "2"
jump_to_now_playing_song_at_start = "yes"
ask_before_clearing_main_playlist = "yes"
clock_display_seconds = "yes"
ignore_leading_the = "yes"
mouse_support = "no"
empty_tag_marker = "*empty*"
media_library_display_empty_tag = "yes"
enable_window_title = "no"
#fifo stuff
visualizer_output_name = "my_fifo"
#visualizer_in_stereo = "yes"
visualizer_fifo_path = "/tmp/mpd.fifo"
visualizer_sync_interval = "20"
visualizer_type = "spectrum" |
And my mpd.conf
Code: | music_directory "/home/me/Music"
playlist_directory "/home/me/.mpd/playlists"
db_file "/home/me/.mpd/mpd.db"
log_file "/home/me/.mpd/mpd.log"
pid_file "/home/me/.mpd/mpd.pid"
state_file "/home/me/.mpd/mpdstate"
sticker_file "/home/me/.mpd/sticker.sql"
#bind_to_address "/home/me/.mpd/socket"
port "6600"
gapless_mp3_playback "yes"
restore_paused "yes"
audio_output {
type "jack"
name "MPD JACK output"
}
audio_output {
type "fifo"
name "my_fifo"
path "/tmp/mpd.fifo"
format "44100:16:2"
}
|
|
|
Back to top |
|
|
unK l33t
Joined: 06 Feb 2007 Posts: 769
|
Posted: Fri Sep 05, 2014 3:01 pm Post subject: |
|
|
You need to be connected via ipc socket to mpd in order to be able to add local files to the playlist (this is independent from ncmpcpp). _________________ ncmpcpp - featureful ncurses based MPD client inspired by ncmpc |
|
Back to top |
|
|
spectromas n00b
Joined: 13 Jul 2014 Posts: 50
|
Posted: Fri Sep 05, 2014 3:16 pm Post subject: |
|
|
Great thanks unK, I have it working now. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|