Re: [Banshee-List] Configure MTP sync root and card
- From: IBBoard <ibboard gmail com>
- To: banshee-list gnome org
- Subject: Re: [Banshee-List] Configure MTP sync root and card
- Date: Fri, 24 May 2013 21:06:03 +0100
I've just checked the source and confirmed my suspicions.
Banshee creates an "MtpDevice" from a handle, which is just a low-level
pointer to memory [1]. It then prepares some stuff, including default
folders [2]. It identifies those folders based on the defaults supplied
by the device [3].
If the device doesn't have a "default_music_folder" specified then
you'll get the behaviour you're seeing. That means that either a) libmtp
is doing something odd and not recognising values (which is outside of
Banshee's control) or b) the device isn't reporting things properly
(which is outside of both Banshee and libmtp's control).
Hopefully someone knows a bit more about how libmtp works, rather than
just how Banshee uses it, and can give more detail on the rest of it!
[1]
https://git.gnome.org/browse/banshee/tree/src/Libraries/Mtp/Mtp/MtpDevice.cs#n135
[2]
https://git.gnome.org/browse/banshee/tree/src/Libraries/Mtp/Mtp/MtpDevice.cs#n126
[3]
https://git.gnome.org/browse/banshee/tree/src/Libraries/Mtp/Mtp/MtpDevice.cs#n141
On 24/05/13 20:48, IBBoard wrote:
Based on my experience with looking at the MTP code then it should
auto-detect or be told what the "Music", "Video" and other key folders
are (I never looked at quite how it did it, I just saw that there are
fields that hold those values). If it is just dropping them all in the
root then it sounds like those values aren't being picked up.
There is a vaguely related bug [1] (about putting files in artist/album
folders) and I've submitted a patch that appears to do that properly,
but it hasn't been included yet. It wouldn't completely solve the
problem, but at least you'd get a mass of artist folders instead of an
even bigger mass of ungrouped files!
Regards,
IBBoard
[1] https://bugzilla.gnome.org/show_bug.cgi?id=539804
On 24/05/13 13:17, flocki wrote:
Thanks for your reply.
I have tried using the .is_audio_player file, however it does not work
- for
me - with MTP.
--
View this message in context:
http://banshee-media-player.2283330.n4.nabble.com/Configure-MTP-sync-root-and-card-tp4651144p4651146.html
Sent from the Banshee Media Player mailing list archive at Nabble.com.
_______________________________________________
banshee-list mailing list
banshee-list gnome org
https://mail.gnome.org/mailman/listinfo/banshee-list (unsubscribe here)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]