diff options
Diffstat (limited to 'audio/liblastfm/files/patch-src_UrlBuilder.h')
-rw-r--r-- | audio/liblastfm/files/patch-src_UrlBuilder.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/audio/liblastfm/files/patch-src_UrlBuilder.h b/audio/liblastfm/files/patch-src_UrlBuilder.h new file mode 100644 index 000000000000..32fd3cfdd8a6 --- /dev/null +++ b/audio/liblastfm/files/patch-src_UrlBuilder.h @@ -0,0 +1,16 @@ +Mark mobilize() as deprecated. It doesn't do anything useful. + +--- src/UrlBuilder.h.orig 2024-11-24 17:34:23 UTC ++++ src/UrlBuilder.h +@@ -46,8 +46,9 @@ namespace lastfm + + /** www.last.fm becomes the local version, eg www.lastfm.de */ + static QUrl localize( QUrl ); +- /** www.last.fm becomes m.last.fm, localisation is preserved */ +- static QUrl mobilize( QUrl ); ++ /** DEPRECATED: Returns url as-is since the mobile website 301 ++ * redirects to the main website */ ++ Q_DECL_DEPRECATED static QUrl mobilize( QUrl ); + + /** Use this to URL encode any database item (artist, track, album). It + * internally calls UrlEncodeSpecialChars to double encode some special |