Summary: | Track skipped in CD Rip - slash as part of track title | ||
---|---|---|---|
Product: | [Applications] amarok | Reporter: | Valorie Zimmerman <valorie.zimmerman> |
Component: | Collections/Local | Assignee: | Amarok Developers <amarok-bugs-dist> |
Status: | RESOLVED FIXED | ||
Severity: | minor | CC: | B.Steinbrink, fdruec1, manu.wagner, myriam, nhn, quazgar |
Priority: | NOR | ||
Version: | 2.5.0 | ||
Target Milestone: | 2.6 | ||
Platform: | Ubuntu | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | 2.6 | |
Sentry Crash Report: |
Description
Valorie Zimmerman
2010-01-27 08:58:35 UTC
AudioCDCollectionLocation does not return a valid path where the track can be copied from: amarok: [WARNING!] An error occurred when copying a file: "The file or folder /Ogg Vorbis/ - 010 - Statues/Shadows.ogg does not exist." Might be a audiocd kioslave bug as well. Anyway, Nikolaj needs to look at it. *** Bug 228358 has been marked as a duplicate of this bug. *** (In reply to comment #2) > *** Bug 228358 has been marked as a duplicate of this bug. *** Ok, it seems to be not just when there are slashes in a title, possibly also with whitespaces. In my case the (probably) relevant line from the debugging output was: copying from KUrl("audiocd:/Ogg Vorbis/-03-Sting - Fields Of Gold.ogg") to KUrl("file:///data/musik/S/Sting_-/Ten_Summoners's_Tales/03_Sting_-_Fields_Of_Gold.ogg") It's also probably not an kio bug either, since copying the same virtual file from the audiocd: directory in Dolphin to a plain "normal" filesystem directory worked alright for me. I just tried myself, and got the following error: amarok: BEGIN: float Meta::MediaDeviceHandler::freeSpace() const amarok: BEGIN: virtual float Meta::UmsHandler::totalCapacity() const amarok: END__: virtual float Meta::UmsHandler::totalCapacity() const - Took 3.3e-05s amarok: totalCapacity: 9.83446e+11 amarok: usedCapacity(): 6.91178e+11 amarok: BEGIN: virtual float Meta::UmsHandler::totalCapacity() const amarok: END__: virtual float Meta::UmsHandler::totalCapacity() const - Took 3.1e-05s amarok: END__: float Meta::MediaDeviceHandler::freeSpace() const - Took 0.00059s amarok: Copying 21 tracks amarok: BEGIN: void Meta::MediaDeviceHandler::copyNextTrackToDevice() amarok: BEGIN: bool Meta::MediaDeviceHandler::privateCopyTrackToDevice(const Meta::TrackPtr&) amarok: [UmsHandler] Mountpoint is: "/MyBook" amarok: [UmsHandler] Url's path is: "/MyBook/Barbara/Concerts Musicorama (disc 1_ Olympia 4 février 69, 1ère partie)/21 - Mon grand frisé.ogg" amarok: [UmsHandler] About to copy from: "/9WjgEr_C2upU_M_gKfJeqVVuRCM-/21" amarok: [UmsHandler] to: KUrl("file:///MyBook/Barbara/Concerts Musicorama (disc 1_ Olympia 4 février 69, 1ère partie)/21 - Mon grand frisé.ogg") amarok: BEGIN: virtual bool Meta::UmsHandler::libCopyTrack(const Meta::TrackPtr&, Meta::MediaDeviceTrackPtr&) amarok: BEGIN: bool Meta::UmsHandler::kioCopyTrack(const KUrl&, const KUrl&) amarok: [UmsHandler] Copying from * KUrl("file:///9WjgEr_C2upU_M_gKfJeqVVuRCM-/21") * to * KUrl("file:///MyBook/Barbara/Concerts Musicorama (disc 1_ Olympia 4 février 69, 1ère partie)/21 - Mon grand frisé.ogg") * amarok: END__: bool Meta::UmsHandler::kioCopyTrack(const KUrl&, const KUrl&) - Took 0.012s amarok: END__: virtual bool Meta::UmsHandler::libCopyTrack(const Meta::TrackPtr&, Meta::MediaDeviceTrackPtr&) - Took 0.012s amarok: END__: bool Meta::MediaDeviceHandler::privateCopyTrackToDevice(const Meta::TrackPtr&) - Took 0.012s amarok: END__: void Meta::MediaDeviceHandler::copyNextTrackToDevice() - Took 0.012s amarok: END__: void Meta::MediaDeviceHandler::copyTrackListToDevice(Meta::TrackList) - Took 0.015s amarok: END__: virtual void MediaDeviceCollectionLocation::copyUrlsToCollection(const QMap<KSharedPtr<Meta::Track>, KUrl>&) - Took 0.015s amarok: END__: virtual void AudioCdCollectionLocation::getKIOCopyableUrls(const Meta::TrackList&) - Took 0.015s amarok: BEGIN: virtual OrganizeCollectionDialog::~OrganizeCollectionDialog() amarok: END__: virtual OrganizeCollectionDialog::~OrganizeCollectionDialog() - Took 6.1e-05s amarok(32353)/kio (KIOJob) KIO::SlaveInterface::dispatch: error 111 "/MyBook/Barbara/Concerts Musicorama (disc 1_ Olympia 4 février 69, 1ère partie)/21 - Mon grand frisé.ogg" amarok(32353)/kio (KIOJob) KIO::SlaveInterface::dispatch: error 111 "/9WjgEr_C2upU_M_gKfJeqVVuRCM-/21" amarok: BEGIN: void Meta::UmsHandler::fileTransferred(KJob*) amarok: [UmsHandler] file transfer failed: "/9WjgEr_C2upU_M_gKfJeqVVuRCM-/21" amarok: END__: void Meta::UmsHandler::fileTransferred(KJob*) - Took 6.5e-05s *** Bug 211519 has been marked as a duplicate of this bug. *** *** Bug 226440 has been marked as a duplicate of this bug. *** *** Bug 228725 has been marked as a duplicate of this bug. *** Is this still valid with Amarok 2.4.3 or current git? The problem is the / in the title, as this is a reserved character in some operating systems it will always fail. Try ripping with a command-line tool and rename the file or disable the CDDB information I'm seeing this problem with amarok 2.5.0 when there's a question mark in the track title. I don't have any CD with a track with a slash in title, but I suspect both problems to have a common source, namely that the track title is not encoded when it is embedded into the URL. amarok: [SqlCollectionLocation] copying from KUrl("audiocd:/Ogg Vorbis/ - 07 - Where Is The Line?.ogg?device=/dev/sr0") to KUrl("file:///home/doener/storage/media/music/Billy Talent/Billy Talent II/07 - Where Is The Line_.ogg") I've posted a patch here: https://git.reviewboard.kde.org/r/103841/ Git commit 67f5c1ae332f6727f91af346a6b5858fe6e5b285 by Matěj Laitl, on behalf of Björn Steinbrink. Committed on 02/02/2012 at 10:37. Pushed by laitl into branch 'master'. Fix failure to rip CD tracks with special characters in their title Certain characters such as ? have a special meaning in URLs so they have to be encoded when used in path component, but the AudioCdCollection fails to do so and just embeds the raw track title into the URL. Thus it is impossible to rip tracks that contain such characters in their title, as the URL passed to the KIO subsystem is invalid. FIXED-IN: 2.6 REVIEW: 103841 M +2 -0 ChangeLog M +8 -5 src/core-impl/collections/audiocd/AudioCdCollection.cpp http://commits.kde.org/amarok/67f5c1ae332f6727f91af346a6b5858fe6e5b285 |