Skip to content

Commit

Permalink
MythMusic: Fix redirects in the URL decoder handler.
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Harrison authored and jyavenard committed Dec 14, 2010
1 parent 62ffcd3 commit ed93781
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions mythplugins/mythmusic/mythmusic/decoderhandler.cpp
Expand Up @@ -137,6 +137,7 @@ DecoderIOFactoryUrl::DecoderIOFactoryUrl(DecoderHandler *parent) : DecoderIOFact
m_input->open(QIODevice::ReadWrite);

m_bytesWritten = 0;
m_redirectCount = 0;
}

DecoderIOFactoryUrl::~DecoderIOFactoryUrl(void)
Expand Down Expand Up @@ -393,10 +394,10 @@ void DecoderHandler::customEvent(QEvent *e)

bool DecoderHandler::createPlaylist(const QUrl &url)
{
QString extension = QFileInfo(url.path()).fileName().right(4).toLower();
QString extension = QFileInfo(url.path()).suffix();
VERBOSE (VB_NETWORK, QString ("File %1 has extension %2").arg (url.fileName()).arg(extension));

if (extension == ".pls" || extension == ".m3u")
if (extension == "pls" || extension == "m3u")
{
if (url.scheme() == "file" || QFileInfo(url.toString()).isAbsolute())
return createPlaylistFromFile(url);
Expand Down

0 comments on commit ed93781

Please sign in to comment.