Changeset View
Changeset View
Standalone View
Standalone View
src/core-impl/collections/db/sql/SqlCollectionLocation.cpp
Show First 20 Lines • Show All 666 Lines • ▼ Show 20 Line(s) | 628 | { | |||
---|---|---|---|---|---|
667 | } | 667 | } | ||
668 | return false; | 668 | return false; | ||
669 | } | 669 | } | ||
670 | 670 | | |||
671 | QUrl | 671 | QUrl | ||
672 | SqlCollectionLocation::moodFile( const QUrl &track ) const | 672 | SqlCollectionLocation::moodFile( const QUrl &track ) const | ||
673 | { | 673 | { | ||
674 | QUrl moodPath = track; | 674 | QUrl moodPath = track; | ||
675 | QString fileName = moodPath.fileName(); | ||||
675 | moodPath = moodPath.adjusted(QUrl::RemoveFilename); | 676 | moodPath = moodPath.adjusted(QUrl::RemoveFilename); | ||
676 | moodPath.setPath(moodPath.path() + '.' + moodPath.fileName().replace( QRegExp( "(\\.\\w{2,5})$" ), ".mood" ) ); | 677 | moodPath.setPath(moodPath.path() + '.' + fileName.replace( QRegExp( "(\\.\\w{2,5})$" ), ".mood" ) ); | ||
677 | return moodPath; | 678 | return moodPath; | ||
678 | } | 679 | } | ||
679 | 680 | | |||
680 | TransferJob::TransferJob( SqlCollectionLocation * location, const Transcoding::Configuration & configuration ) | 681 | TransferJob::TransferJob( SqlCollectionLocation * location, const Transcoding::Configuration & configuration ) | ||
681 | : KCompositeJob( 0 ) | 682 | : KCompositeJob( 0 ) | ||
682 | , m_location( location ) | 683 | , m_location( location ) | ||
683 | , m_killed( false ) | 684 | , m_killed( false ) | ||
684 | , m_transcodeFormat( configuration ) | 685 | , m_transcodeFormat( configuration ) | ||
▲ Show 20 Lines • Show All 101 Lines • Show Last 20 Lines |