File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " songlyrics" ,
3
- "version" : " 2.4.3 " ,
3
+ "version" : " 2.4.4 " ,
4
4
"description" : " Find a lyrics just enter the song title" ,
5
5
"keywords" : [
6
6
" lyrics" ,
Original file line number Diff line number Diff line change @@ -3,9 +3,12 @@ import { HTMLElement } from 'node-html-parser'
3
3
export const azlyrics = {
4
4
name : 'AZLyrics' ,
5
5
parse : ( html : HTMLElement ) : Promise < string > => {
6
- const content = html
6
+ let possibleContent = html
7
7
. querySelector ( 'div.ringtone' )
8
- ?. nextElementSibling . nextElementSibling . nextElementSibling . nextElementSibling . textContent . trim ( )
8
+ ?. nextElementSibling . nextElementSibling . nextElementSibling . nextElementSibling
9
+ if ( html . querySelector ( 'span.feat' ) )
10
+ possibleContent = possibleContent ?. nextElementSibling . nextElementSibling
11
+ const content = possibleContent ?. textContent . trim ( )
9
12
return Promise . resolve ( `${ content } ` )
10
13
} ,
11
- }
14
+ }
You can’t perform that action at this time.
0 commit comments