53 Commits

Author SHA1 Message Date
tramhao
d8694d5bdc Fix a bug p.subtitle is not closed during initialization. This is lead to a small bug: when a song has subtitle, and 2nd song doesn't have, 3rd song will show the subtitle of 1st song. 2021-02-25 23:18:01 +08:00
tramhao
d4fe9dc04e merge upstream 2021-02-25 19:56:19 +08:00
tramhao
c71dfb5905 1. Fix a bug when embedLyric, need to delete the old frame with same language id and content descriptor 2. Add a function to adjust the delay time of lyrics 2021-02-25 19:50:52 +08:00
raziman
e8513abccd rename progress chan int to update struct{} 2021-02-25 16:47:24 +08:00
raziman
1c340cc167 rename _progress to progress 2021-02-25 16:46:52 +08:00
tramhao
048fc397c9 move embedLyric to utils.go and update related code 2021-02-24 11:36:26 +08:00
tramhao
d334a90ab3 Fix comment format 2021-02-24 10:32:29 +08:00
raziman
03c4424f1d fix panic when audio file does not have subtitle 2021-02-23 21:34:33 +08:00
tramhao
3b78b676e6 Modified the logic to choose lyric 2021-02-23 17:37:27 +08:00
tramhao
7cde34eb39 fine tuning the display time for lyric 2021-02-23 17:12:02 +08:00
tramhao
69bfb5ee7c 2 fixes:1. song title is empty after pause(if pause within 2-3 seconds 2. lyric default set to english 2021-02-23 16:50:20 +08:00
tramhao
7349bad749 break out of loop earlier to save a little time for lyric matching 2021-02-23 16:11:44 +08:00
tramhao
f8cab42070 merge push from mainstream 2021-02-23 15:51:36 +08:00
tramhao
4d36efae9a Embed all lyrics and T key to switch lyrics 2021-02-23 15:46:51 +08:00
raziman
f2bfc772d6 use die() instead of log.Fatal() 2021-02-22 10:49:07 +08:00
tramhao
488c21f048 cannot fix test so disable it first 2021-02-22 00:02:08 +08:00
tramhao
9c97ee2338 Lyrics is working but need check 2021-02-21 23:08:16 +08:00
tramhao
d9dfd29e95 lyric in progress 2021-02-21 15:21:08 +08:00
tramhao
44aae038f3 lyrics in progress 2021-02-21 15:18:19 +08:00
raziman
5e4c9f64b5 fix screen does not update playingbar 2021-02-19 15:07:44 +08:00
raziman
42c78535f9 fix cpu spike when no songs playing on startup 2021-02-19 13:16:22 +08:00
raziman
2e03c2be77 remove support for fzf in favor of built-in finder 2021-02-11 14:49:14 +08:00
raziman
cc1e50d5e8 delay setDefault() call 2021-02-10 15:06:08 +08:00
raziman
8c1839a0e0 clean up comment 2021-02-08 15:07:20 +08:00
raziman
662029970d resizeable progress bar
small refactor
2020-08-22 14:59:10 +08:00
raziman
4a472b0e22 organize color 2020-08-22 14:41:03 +08:00
raziman
7e61859d1f add config options 2020-07-28 11:24:58 +08:00
raziman
7e43ea36b4 create progressStr 2020-07-24 17:08:34 +08:00
raziman
289c32548d add comments 2020-07-23 15:34:56 +08:00
raziman
0fb7b63c39 change all to be unexported 2020-07-23 15:15:39 +08:00
raziman
3cbb94f996 fix process hang up when fzf end or during unsuspending 2020-07-23 13:10:29 +08:00
raziman
4f4c91c9d2 refactor error handling 2020-07-21 12:22:00 +08:00
raziman
538da0c2b6 wrap lines 2020-07-20 21:48:13 +08:00
raziman
26ff9a8be9 remove appLog 2020-07-18 00:08:47 +08:00
raziman
6a159bc6e6 specific help message every panel 2020-07-17 15:34:50 +08:00
raziman
fe905be7a9 small refactor 2020-07-16 22:16:02 +08:00
raziman
3e6aa451c5 small refactor 2020-07-15 21:38:34 +08:00
raziman
3fe6105343 run fmt 2020-07-10 22:05:36 +08:00
raziman
90b2a6405b small refactor 2020-07-06 17:02:59 +08:00
raziman
1ea804a8bc refactor 2020-07-04 17:12:49 +08:00
raziman
bac09ec5b0 change all global variables into one global struct 2020-07-04 16:16:57 +08:00
raziman
adcd30a39a change progress bar look 2020-07-03 13:01:05 +08:00
raziman
2b9d1758e1 move panels as globals 2020-06-26 12:54:48 +08:00
raziman
b9e329f287 change bar character 2020-06-25 20:18:12 +08:00
raziman
b635b445b6 fix race condition 2020-06-24 12:05:30 +08:00
raziman
0d00c4fc73 format duration string 2020-06-24 11:34:20 +08:00
raziman
e26cb46e5e run go fmt 2020-06-23 20:15:29 +08:00
raziman
f95bf27681 implement skip current song 2020-06-23 18:42:18 +08:00
raziman
82482342f1 fix progress bar dissappear when no music playing redraw 2020-06-22 21:18:36 +08:00
raziman
bf65fdc39c update license 2020-06-22 00:05:56 +08:00