[kid3] [Bug 486370] embed lyrics

2024-05-08 Thread nekto
https://bugs.kde.org/show_bug.cgi?id=486370

--- Comment #3 from nekto  ---
An unpleasant detail was revealed. if the song title contains the characters: '
" / ( [, the text is not found, but if these characters are removed from the
title, then the song text is found 樂

-- 
You are receiving this mail because:
You are watching all bug changes.

[kid3] [Bug 486370] embed lyrics

2024-05-02 Thread nekto
https://bugs.kde.org/show_bug.cgi?id=486370

--- Comment #2 from nekto  ---
thank you, but I can’t do it, because I really don’t understand how it
should be correctly :( please send me the ready-made EmbedLyrics.qml script
on serganti...@gmail.com :)

чт, 2 мая 2024 г. в 08:25, Urs Fleisch :

> https://bugs.kde.org/show_bug.cgi?id=486370
>
> Urs Fleisch  changed:
>
>What|Removed |Added
>
> 
>  Ever confirmed|0   |1
>  Status|REPORTED|CONFIRMED
>
> --- Comment #1 from Urs Fleisch  ---
> The HTML class has changed. Try the following change:
>
> --- a/src/qml/script/EmbedLyrics.qml
> +++ b/src/qml/script/EmbedLyrics.qml
> @@ -71,9 +71,9 @@ Kid3Script {
> "/" + encodeURIComponent(title)
>  },
>  parseResponse: function(resp) {
> -  var begin = resp.indexOf('')
> +  var begin = resp.indexOf('')
>if (begin !== -1) {
> -begin += 23
> +begin += 29
>  var end = resp.indexOf("", begin)
>  var txt = resp.substring(begin, end).trim()
>  if (txt.substring(0, 3) === "") {
>
> --
> You are receiving this mail because:
> You reported the bug.

-- 
You are receiving this mail because:
You are watching all bug changes.

[kid3] [Bug 486370] embed lyrics

2024-05-01 Thread Urs Fleisch
https://bugs.kde.org/show_bug.cgi?id=486370

Urs Fleisch  changed:

   What|Removed |Added

 Ever confirmed|0   |1
 Status|REPORTED|CONFIRMED

--- Comment #1 from Urs Fleisch  ---
The HTML class has changed. Try the following change:

--- a/src/qml/script/EmbedLyrics.qml
+++ b/src/qml/script/EmbedLyrics.qml
@@ -71,9 +71,9 @@ Kid3Script {
"/" + encodeURIComponent(title)
 },
 parseResponse: function(resp) {
-  var begin = resp.indexOf('')
+  var begin = resp.indexOf('')
   if (begin !== -1) {
-begin += 23
+begin += 29
 var end = resp.indexOf("", begin)
 var txt = resp.substring(begin, end).trim()
 if (txt.substring(0, 3) === "") {

-- 
You are receiving this mail because:
You are watching all bug changes.