Diffstat (limited to 'noncore/multimedia/opieplayer2/playlistwidget.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/multimedia/opieplayer2/playlistwidget.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/noncore/multimedia/opieplayer2/playlistwidget.cpp b/noncore/multimedia/opieplayer2/playlistwidget.cpp index 040ef71..8e88e9b 100644 --- a/noncore/multimedia/opieplayer2/playlistwidget.cpp +++ b/noncore/multimedia/opieplayer2/playlistwidget.cpp | |||
@@ -782,28 +782,25 @@ void PlayListWidget::readm3u( const QString &filename ) { | |||
782 | 782 | ||
783 | Om3u *m3uList; | 783 | Om3u *m3uList; |
784 | QString s, name; | 784 | QString s, name; |
785 | m3uList = new Om3u( filename, IO_ReadOnly ); | 785 | m3uList = new Om3u( filename, IO_ReadOnly ); |
786 | m3uList->readM3u(); | 786 | m3uList->readM3u(); |
787 | DocLnk lnk; | 787 | DocLnk lnk; |
788 | for ( QStringList::ConstIterator it = m3uList->begin(); it != m3uList->end(); ++it ) { | 788 | for ( QStringList::ConstIterator it = m3uList->begin(); it != m3uList->end(); ++it ) { |
789 | s = *it; | 789 | s = *it; |
790 | // qDebug("reading "+ s); | 790 | // qDebug("reading "+ s); |
791 | if(s.left(4)=="http") { | 791 | if(s.left(4)=="http") { |
792 | lnk.setName( s ); //sets file name | 792 | lnk.setName( s ); //sets file name |
793 | lnk.setIcon("opieplayer2/musicfile"); | 793 | lnk.setIcon("opieplayer2/musicfile"); |
794 | // if(s.right(4) != '.' || s.right(5) != '.') | 794 | lnk.setFile( s ); //sets file name |
795 | // lnk.setFile( s+"/"); //if url with no extension | ||
796 | // else | ||
797 | lnk.setFile( s ); //sets file name | ||
798 | 795 | ||
799 | } else { | 796 | } else { |
800 | // if( QFileInfo( s ).exists() ) { | 797 | // if( QFileInfo( s ).exists() ) { |
801 | lnk.setName( QFileInfo(s).baseName()); | 798 | lnk.setName( QFileInfo(s).baseName()); |
802 | // if(s.right(4) == '.') {//if regular file | 799 | // if(s.right(4) == '.') {//if regular file |
803 | if(s.left(1) != "/") { | 800 | if(s.left(1) != "/") { |
804 | // qDebug("set link "+QFileInfo(filename).dirPath()+"/"+s); | 801 | // qDebug("set link "+QFileInfo(filename).dirPath()+"/"+s); |
805 | lnk.setFile( QFileInfo(filename).dirPath()+"/"+s); | 802 | lnk.setFile( QFileInfo(filename).dirPath()+"/"+s); |
806 | // lnk.setIcon(MimeType(s).pixmap() ); | 803 | // lnk.setIcon(MimeType(s).pixmap() ); |
807 | // lnk.setIcon("SoundPlayer"); | 804 | // lnk.setIcon("SoundPlayer"); |
808 | } else { | 805 | } else { |
809 | // qDebug("set link2 "+s); | 806 | // qDebug("set link2 "+s); |