From d92fbca743e676182a8f33ae4c28044031143fb0 Mon Sep 17 00:00:00 2001 From: harlekin Date: Sun, 18 Aug 2002 23:15:50 +0000 Subject: small fixes regarding shoutcast, but for now user need to have http:// anything / as shoutcast url --- (limited to 'noncore/multimedia/opieplayer2/mediadetect.cpp') diff --git a/noncore/multimedia/opieplayer2/mediadetect.cpp b/noncore/multimedia/opieplayer2/mediadetect.cpp index 5e0da88..91137db 100644 --- a/noncore/multimedia/opieplayer2/mediadetect.cpp +++ b/noncore/multimedia/opieplayer2/mediadetect.cpp @@ -22,8 +22,11 @@ char MediaDetect::videoOrAudio( const QString& fileName ) { (fileName.lower()).right(4) == ".wav" ) { qDebug("AUDIO out taken"); return 'a'; + } else if ( (fileName.lower()).left(7) == "http://" && + (fileName.lower()).right(1) == "/" ) { + return 'a'; } else { - return 'f'; + return 'f'; } } -- cgit v0.9.0.2