Bug 313131 - Tracks not copied: the device already has these tracks -- When transferring flac files to MTP Devices
Summary: Tracks not copied: the device already has these tracks -- When transferring f...
Status: CONFIRMED
Alias: None
Product: amarok
Classification: Applications
Component: Collections/MTP player (show other bugs)
Version: 2.6.0
Platform: Other Linux
: NOR minor
Target Milestone: 2.8
Assignee: Amarok Developers
URL:
Keywords:
Depends on:
Blocks: 378199
  Show dependency treegraph
 
Reported: 2013-01-12 12:52 UTC by Discrete Chan
Modified: 2017-03-29 15:49 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Discrete Chan 2013-01-12 12:52:01 UTC
I have a Sony NWZ-B152F which only supports MP3 files.
When I try to transfer flac files and transcode them with Amarok 2.6.0 , amarok reports :
Tracks not copied: the device already has these tracks
I searched for this bug and found this :
https://bugs.kde.org/show_bug.cgi?id=221794
But this is not fixed on my machine.

Reproducible: Always

Steps to Reproduce:
1.Get a device which does not support flac.
2.Connect the device with Amarok.
3.Transfer a flac to device.
Comment 1 Myriam Schweingruber 2013-01-13 01:18:51 UTC
And what is the purpose of wanting to transfer non-supported files to the device? While I agree that the error message is misleading, I don't see the point of transferring files to a device that can't even read them.
AFAIK there has been quite some work on the media stack since Amarok 2.6, it would be good if you could test with Amarok 2.6.90 aka 2.7 beta 1
Comment 2 Discrete Chan 2013-01-13 02:30:09 UTC
(In reply to comment #1)
> And what is the purpose of wanting to transfer non-supported files to the
> device? While I agree that the error message is misleading, I don't see the
> point of transferring files to a device that can't even read them.
> AFAIK there has been quite some work on the media stack since Amarok 2.6, it
> would be good if you could test with Amarok 2.6.90 aka 2.7 beta 1

I think Amarok will transcode the flac files to mp3 in order to match the device.And I find that Amarok actually does this: http://userbase.kde.org/Amarok/Manual/Organization/Transcoding
I will try Amarok 2.6.9.
Thank you anyway.
Comment 3 Discrete Chan 2013-01-13 03:57:41 UTC
I tried amarok-devel-2.7beta-2 but the bug is still there.
The error message is wrong anyway since my device does not have those tracks.
Comment 4 Myriam Schweingruber 2013-01-13 10:40:38 UTC
Please do not touch the status, marking this as "unmaintained" makes no sense.

Also it would be helpful to have more details about your Media Device, since there are so many out there it is hard to know just by a model number what it does. Please provide at least the connection type: since you also commented for the same device in a UMS device related bug this is not really clear. A link to the product specifications would be helpful.
Comment 5 Roger Larsson 2013-02-01 23:18:28 UTC
confirmed, Amarok 2.6.0 to an Sony Xperia GO (using git libmtp)
device supports .ogg .mp3 but not .flac

Might be a configuration error, i.e. how transcoding is configured. But error message is very wrong anyway...

Selecting a file, right click "Copy to collection" -> "ST27i"
Have files in .flac on my PC, trying to copy that results in the mentioned error window.
--debug as follows
amarok: [CollectionTreeView] checking for global actions 
amarok: BEGIN: void CollectionTreeView::copyTracks(const QSet<CollectionTreeItem*>&, Collections::Collection*, bool) const 
amarok:   [CollectionTreeView] starting source->prepareCopy 
amarok:   BEGIN: void Collections::CollectionLocation::prepareCopy(Collections::QueryMaker*, Collections::CollectionLocation*) 
amarok:   END__: void Collections::CollectionLocation::prepareCopy(Collections::QueryMaker*, Collections::CollectionLocation*) [Took: 0s] 
amarok: END__: void CollectionTreeView::copyTracks(const QSet<CollectionTreeItem*>&, Collections::Collection*, bool) const [Took: 0s] 
amarok: BEGIN: void Collections::CollectionLocation::queryDone() 
amarok:   [CollectionLocation] we were about to copy something, lets proceed 
amarok:   BEGIN: void Collections::CollectionLocation::startWorkflow(const TrackList&, bool) 
amarok:   END__: void Collections::CollectionLocation::startWorkflow(const TrackList&, bool) [Took: 0s] 
amarok: END__: void Collections::CollectionLocation::queryDone() [Took: 0s] 
amarok: BEGIN: virtual void Collections::CollectionLocation::getKIOCopyableUrls(const TrackList&) 
amarok:   [CollectionLocation] adding url  KUrl("file:///home/roger/downloaded/Media/FLAC/Amy Diamond/greatest hits/01 - What's In It For Me - Amy Diamond.flac") 
amarok:   BEGIN: void Collections::CollectionLocation::slotStartCopy(const QMap<KSharedPtr<Meta::Track>, KUrl>&, const Transcoding::Configuration&) 
amarok:     BEGIN: virtual void Collections::MediaDeviceCollectionLocation::copyUrlsToCollection(const QMap<KSharedPtr<Meta::Track>, KUrl>&, const Transcoding::Configuration&) 
amarok:       BEGIN: void Meta::MediaDeviceHandler::copyTrackListToDevice(Meta::TrackList) 
amarok:       END__: void Meta::MediaDeviceHandler::copyTrackListToDevice(Meta::TrackList) [Took: 3s] 
amarok:     END__: virtual void Collections::MediaDeviceCollectionLocation::copyUrlsToCollection(const QMap<KSharedPtr<Meta::Track>, KUrl>&, const Transcoding::Configuration&) [Took: 3s] 
amarok:   END__: void Collections::CollectionLocation::slotStartCopy(const QMap<KSharedPtr<Meta::Track>, KUrl>&, const Transcoding::Configuration&) [Took: 3s] 
amarok: END__: virtual void Collections::CollectionLocation::getKIOCopyableUrls(const TrackList&) [Took: 3s] 
amarok: BEGIN: void Collections::CollectionLocation::slotFinishCopy() 
amarok: END__: void Collections::CollectionLocation::slotFinishCopy() [Took: 0s] 



Copying one of the supported file formats
--debug output
amarok: [CollectionTreeView] checking for global actions 
amarok: BEGIN: void CollectionTreeView::copyTracks(const QSet<CollectionTreeItem*>&, Collections::Collection*, bool) const 
amarok:   [CollectionTreeView] starting source->prepareCopy 
amarok:   BEGIN: void Collections::CollectionLocation::prepareCopy(Collections::QueryMaker*, Collections::CollectionLocation*) 
amarok:   END__: void Collections::CollectionLocation::prepareCopy(Collections::QueryMaker*, Collections::CollectionLocation*) [Took: 0s] 
amarok: END__: void CollectionTreeView::copyTracks(const QSet<CollectionTreeItem*>&, Collections::Collection*, bool) const [Took: 0s] 
amarok: BEGIN: void Collections::CollectionLocation::queryDone() 
amarok:   [CollectionLocation] we were about to copy something, lets proceed 
amarok:   BEGIN: void Collections::CollectionLocation::startWorkflow(const TrackList&, bool) 
amarok:   END__: void Collections::CollectionLocation::startWorkflow(const TrackList&, bool) [Took: 0s] 
amarok: END__: void Collections::CollectionLocation::queryDone() [Took: 0s] 
amarok: BEGIN: virtual void Collections::CollectionLocation::getKIOCopyableUrls(const TrackList&) 
amarok:   [CollectionLocation] adding url  KUrl("file:///home/roger/downloaded/Media/OggVorbis/Amy Diamond - GREATEST HITS/01 - What's In It For Me.ogg") 
amarok:   BEGIN: void Collections::CollectionLocation::slotStartCopy(const QMap<KSharedPtr<Meta::Track>, KUrl>&, const Transcoding::Configuration&) 
amarok:     BEGIN: virtual void Collections::MediaDeviceCollectionLocation::copyUrlsToCollection(const QMap<KSharedPtr<Meta::Track>, KUrl>&, const Transcoding::Configuration&) 
amarok:       BEGIN: void Meta::MediaDeviceHandler::copyTrackListToDevice(Meta::TrackList) 
amarok:         No tracks with same title, track not a dupe 
amarok:         BEGIN: virtual float Meta::MtpHandler::totalCapacity() const 
amarok:         END__: virtual float Meta::MtpHandler::totalCapacity() const [Took: 0s] 
amarok:         BEGIN: virtual float Meta::MtpHandler::usedCapacity() const 
amarok:           BEGIN: virtual float Meta::MtpHandler::totalCapacity() const 
amarok:           END__: virtual float Meta::MtpHandler::totalCapacity() const [Took: 0s] 
amarok:         END__: virtual float Meta::MtpHandler::usedCapacity() const [Took: 0.001s] 
amarok:         Copying  1  tracks 
amarok:       END__: void Meta::MediaDeviceHandler::copyTrackListToDevice(Meta::TrackList) [Took: 0.001s] 
amarok:     END__: virtual void Collections::MediaDeviceCollectionLocation::copyUrlsToCollection(const QMap<KSharedPtr<Meta::Track>, KUrl>&, const Transcoding::Configuration&) [Took: 0.001s] 
amarok:   BEGIN: bool Meta::MediaDeviceHandler::privateCopyTrackToDevice(const TrackPtr&) 
amarok:     [MtpHandler] Parent id :  12 
amarok:     END__: void Collections::CollectionLocation::slotStartCopy(const QMap<KSharedPtr<Meta::Track>, KUrl>&, const Transcoding::Configuration&) [Took: 0.001s] 
amarok:     BEGIN: void Meta::MediaDeviceHandler::setBasicMediaDeviceTrackInfo(const TrackPtr&, Meta::MediaDeviceTrackPtr) 
amarok:       [MtpHandler] Set to:  What's In It For Me 
amarok:       [MtpHandler] Set to:  GREATEST HITS 
amarok:     END__: virtual void Collections::CollectionLocation::getKIOCopyableUrls(const TrackList&) [Took: 0.002s] 
amarok:     [WARNING] NOT-IMPLEMENTED: virtual void Handler::MtpWriteCapability::libSetCoverArt(Meta::MediaDeviceTrackPtr&, const QImage&) 

amarok:     [MtpHandler] Set to:  Amy Diamond 
amarok:     [MtpHandler] Set to:   
amarok:     [MtpHandler] Set to:  Pop 
amarok:     [MtpHandler] filetype :  "ogg" 
amarok:     [MtpHandler] Filetype set to:  "ogg" 
amarok:   END__: void Meta::MediaDeviceHandler::setBasicMediaDeviceTrackInfo(const TrackPtr&, Meta::MediaDeviceTrackPtr) [Took: 0s] 
amarok:   BEGIN: virtual bool Meta::MtpHandler::libCopyTrack(const TrackPtr&, Meta::MediaDeviceTrackPtr&) 
amarok:     [MtpHandler] Parent id :  12 
amarok:     [MtpHandler] sending... 
amarok:     [MtpHandler] Playable Url is:  KUrl("file:///home/roger/downloaded/Media/OggVorbis/Amy Diamond - GREATEST HITS/01 - What's In It For Me.ogg") 
amarok:     [MtpHandler] Sending file with path:  "/home/roger/downloaded/Media/OggVorbis/Amy Diamond - GREATEST HITS/01 - What's In It For Me.ogg" 
Object::connect: No such signal Meta::MtpHandler::totalSteps( int )
amarok:     [MtpHandler] sent 
amarok:   END__: virtual bool Meta::MtpHandler::libCopyTrack(const TrackPtr&, Meta::MediaDeviceTrackPtr&) [Took: 2.3s] 
amarok: END__: bool Meta::MediaDeviceHandler::privateCopyTrackToDevice(const TrackPtr&) [Took: 2.3s] 
amarok: BEGIN: void Meta::MediaDeviceHandler::slotFinalizeTrackCopy(const TrackPtr&) 
amarok: END__: void Meta::MediaDeviceHandler::slotFinalizeTrackCopy(const TrackPtr&) [Took: 0s] 
amarok: BEGIN: void Meta::MediaDeviceHandler::slotDatabaseWritten(bool) 
amarok: END__: void Meta::MediaDeviceHandler::slotDatabaseWritten(bool) [Took: 0s] 
amarok: BEGIN: void Collections::CollectionLocation::slotFinishCopy() 
amarok: END__: void Collections::CollectionLocation::slotFinishCopy() [Took: 0s] 
amarok: BEGIN: void CollectionTreeItemModelBase::handleSpecialQueryResult(CollectionTreeItem::Type, Collections::QueryMaker*, const DataList&) 
amarok:   [CollectionTreeItemModelBase] Received special data:  4 
amarok: END__: void CollectionTreeItemModelBase::handleSpecialQueryResult(CollectionTreeItem::Type, Collections::QueryMaker*, const DataList&) [Took: 0s] 
amarok: BEGIN: void CollectionTreeItemModelBase::handleSpecialQueryResult(CollectionTreeItem::Type, Collections::QueryMaker*, const DataList&) 
amarok:   [CollectionTreeItemModelBase] Received special data:  27 
amarok: END__: void CollectionTreeItemModelBase::handleSpecialQueryResult(CollectionTreeItem::Type, Collections::QueryMaker*, const DataList&) [Took: 0s]
Comment 6 Myriam Schweingruber 2017-03-28 19:56:34 UTC
*** Bug 378199 has been marked as a duplicate of this bug. ***