summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'media-sound/amarok/files/amarok-1.3.7-lyrc.patch')
-rw-r--r--media-sound/amarok/files/amarok-1.3.7-lyrc.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/media-sound/amarok/files/amarok-1.3.7-lyrc.patch b/media-sound/amarok/files/amarok-1.3.7-lyrc.patch
new file mode 100644
index 000000000000..7fa6f6a5a2e9
--- /dev/null
+++ b/media-sound/amarok/files/amarok-1.3.7-lyrc.patch
@@ -0,0 +1,15 @@
+--- branches/stable/extragear/multimedia/amarok/src/contextbrowser.cpp 2005/10/24 00:55:23 473539
++++ branches/stable/extragear/multimedia/amarok/src/contextbrowser.cpp 2005/12/15 19:57:48 488756
+@@ -2534,9 +2534,10 @@
+ m_lyrics.replace( QRegExp("<[iI][mM][gG][^>]*>"), QString::null );
+ m_lyrics.replace( QRegExp("<[sS][cC][rR][iI][pP][tT][^>]*>[^<]*(<!--[^>]*>)*[^<]*</[sS][cC][rR][iI][pP][tT]>"), QString::null );
+
+- if ( m_lyrics.find( "<font size='2'>" ) != -1 )
++ int lyricsPos = m_lyrics.find( QRegExp( "<[fF][oO][nN][tT][ ]*[sS][iI][zZ][eE][ ]*='2'[ ]*>" ) );
++ if ( lyricsPos != -1 )
+ {
+- m_lyrics = m_lyrics.mid( m_lyrics.find( "<font size='2'>" ) );
++ m_lyrics = m_lyrics.mid( lyricsPos );
+ if ( m_lyrics.find( "<p><hr" ) != -1 )
+ m_lyrics = m_lyrics.mid( 0, m_lyrics.find( "<p><hr" ) );
+ else