<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">--- kaffeine/player-parts/Makefile.am
+++ kaffeine/player-parts/Makefile.am
@@ -12,10 +12,8 @@
 kaffeineincludedir = $(includedir)/kaffeine
 kaffeineinclude_HEADERS = mrl.h kmediapart.h playlistimport.h
 
-noinst_HEADERS = http.h
-
 METASOURCES = AUTO
 
-libkmediapart_la_SOURCES = mrl.cpp kmediapart.cpp playlistimport.cpp http.c
+libkmediapart_la_SOURCES = mrl.cpp kmediapart.cpp playlistimport.cpp
 libkmediapart_la_LIBADD  = $(LIB_KPARTS)
 libkmediapart_la_LDFLAGS = $(all_libraries) -version-info 0:1:0 -no-undefined
--- kaffeine/player-parts/playlistimport.cpp
+++ kaffeine/player-parts/playlistimport.cpp
@@ -34,7 +34,6 @@
 #include &lt;qregexp.h&gt;
 
 #include "mrl.h"
-#include "http.h"
 
 #include "playlistimport.h"
 
@@ -430,57 +429,21 @@
 
 bool PlaylistImport::ram(const MRL&amp; playlist, MRL::List&amp; mrls, QWidget* parent)
 {
-	kdDebug() &lt;&lt; "PlaylistImport: ram: " &lt;&lt; playlist.url() &lt;&lt; endl;
-	Q_ULONG result;
-	char buf[10];
-	char mime[1024];
+       kdDebug() &lt;&lt; "PlaylistImport: ram: " &lt;&lt; playlist.url() &lt;&lt; endl;
 
-	if (playlist.kurl().isLocalFile())
-	{
-		QFile file(playlist.kurl().path());
-		if (!file.open(IO_ReadOnly))
-		{
-			kdError() &lt;&lt; "PlaylistImport: Can't open " &lt;&lt; playlist.url() &lt;&lt; endl;
-			return false;
-		}
-		result = file.readBlock(buf, 4);
-		file.close();
-		if (result != 4)
-		{
-			kdError() &lt;&lt; "PlaylistImport: Can't read " &lt;&lt; playlist.url() &lt;&lt; endl;
-			return false;
-		}
-	}
-	else
-	{
-		if (playlist.kurl().protocol() == "http")
-		{
-
-			result = http_peek(playlist.url(), 4, buf, mime);
-
-			if (result &lt;= 0)
-			{
-				kdError() &lt;&lt; "Can't open " &lt;&lt; playlist.url() &lt;&lt; endl;
-				return false;
-			}
-		}
-		else
-		{
-			kdError() &lt;&lt; "PlaylistImport: ram: Download via " &lt;&lt; playlist.kurl().protocol() &lt;&lt;
-			" protocol not supported." &lt;&lt; endl;
-			return false;
-		}
-	}
-
-	if (buf[0]=='.' &amp;&amp; buf[1]=='R' &amp;&amp; buf[2]=='M' &amp;&amp; buf[3]=='F')
-	{
-		kdDebug() &lt;&lt; "PlaylistImport: Seems to be a real media file" &lt;&lt; endl;
-		return false;
-	}
-
-	kdDebug() &lt;&lt; "PlaylistImport: Seems to be a ram playlist!" &lt;&lt; endl;
+        if (!playlist.kurl().isLocalFile() &amp;&amp; !playlist.kurl().protocol().startsWith("http")) {
+                kdError() &lt;&lt; "PlaylistImport: ram: Download via " &lt;&lt; playlist.kurl().protocol() &lt;&lt; " protocol not supported." &lt;&lt; endl;
+                return false;
+        }
+
+        kdDebug() &lt;&lt; "PlaylistImport: Seems to be a ram playlist!" &lt;&lt; endl;
+
+        QString localFile, url;
+        if (KIO::NetAccess::mimetype(playlist.kurl(), parent) == "application/vnd.rn-realmedia") {
+                kdDebug() &lt;&lt; "PlaylistImport: Seems to be a real media file" &lt;&lt; endl;
+                return false;
+        }
 
-	QString localFile, url;
 	if (KIO::NetAccess::download(playlist.kurl(), localFile, parent))
 	{
 		QFile plFile(localFile);
</pre></body></html>