/[packages]/cauldron/audex/current/SOURCES/google_regex.patch
ViewVC logotype

Annotation of /cauldron/audex/current/SOURCES/google_regex.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 305540 - (hide annotations) (download)
Sun Oct 14 17:40:05 2012 UTC (8 years ago) by doktor5000
File size: 642 byte(s)
-fix cover lookup caused by API change with patch from Archlinux
1 doktor5000 305540 --- audex-0.74b1/utils/coverfetcher.cpp 2011-01-15 12:06:25.000000000 +0100
2     +++ audex-0.74b1/utils/coverfetcher_new.cpp 2011-07-20 18:43:37.554588883 +0200
3     @@ -162,7 +162,10 @@
4     cover_tbnids.clear();
5     cover_thumbnails.clear();
6    
7     - QRegExp rx("<a\\shref=(\\/imgres\\?imgurl=[a-zA-Z0-9\\&\\_\\%\\/\\=\\.\\:\\-\\?]+)>[\\s\\n]*<img\\ssrc=([a-zA-Z0-9\\&\\_\\%\\/\\=\\.\\:\\-\\?]+).*>[\\s\\n]*</a>");
8     + QRegExp rx("<a\\shref=\"(\\/imgres\\?imgurl=[^\"]+)\">[\\s\\n]*<img[^>]+src=\"([^>]+)\"></a>");
9     + QString html = xml;
10     + html.replace( QLatin1String("&amp;"), QLatin1String("&") );
11     +
12     rx.setMinimal(TRUE);
13    
14     int pos = 0; int i = 0;

  ViewVC Help
Powered by ViewVC 1.1.28