Multiple-file selection won't issue Organize command

Asked by Nadroj Cromcen

When I have multiple files selected in the rhythmbox file list, 'Organize Selection' only organizes one file at a time (sequentially). I have to re-rightclick the selection and click 'Organize Selection' a quantity of times equal to the amount of files selected. Any fix for this?

Using Ubuntu 12.04 up to date, with the built-in Rhythmbox 2.96

Question information

Language:
English Edit question
Status:
Solved
For:
Rhythmbox Fileorganizer Edit question
Assignee:
lachlan-00 Edit question
Solved by:
Nadroj Cromcen
Solved:
Last query:
Last reply:
Revision history for this message
lachlan-00 (lachlan-00) said :
#1

it sounds like there's a bug during processing and it could be pretty much any point during the process.

can you post the log trying to organise two files?

there should be some decent debug text as well if you run.
    rhythmbox -D fileorganizer

copy the text from the command line and paste that as well.

My guess is that it would be from updating tags/moving cover art or other files.

I need to put some time aside for a new release as a lot of the bugs being reported have already been fixed.

Revision history for this message
Nadroj Cromcen (irishetalon007) said :
#2

organizing two files:

Snow Patrol - Final Straw - 10:37:03 PM
    IN: /media/windows/Users/Jordan/Music/Snow Patrol/Final Straw/10 Tiny Little Fractures.m4a
    OUT: /media/windows/Users/Jordan/Music/Snow Patrol/Final Straw/10 - Tiny Little Fractures.m4a
 ** INFO: Updating Database:
    OUT: file:///media/windows/Users/Jordan/Music/Snow%20Patrol/Final%20Straw/10%20-%20Tiny%20Little%20Fractures.m4a
          Updating File Tags
Snow Patrol - Final Straw - 10:37:16 PM
    IN: /media/windows/Users/Jordan/Music/Snow Patrol/Final Straw/10 - Tiny Little Fractures.m4a
 ** INFO: No need for file relocation

Snow Patrol - Final Straw - 10:37:16 PM
    IN: /media/windows/Users/Jordan/Music/Snow Patrol/Final Straw/10 Tiny Little Fractures.mp3
    OUT: /media/windows/Users/Jordan/Music/Snow Patrol/Final Straw/10 - Tiny Little Fractures.mp3
 ** INFO: Updating Database:
    OUT: file:///media/windows/Users/Jordan/Music/Snow%20Patrol/Final%20Straw/10%20-%20Tiny%20Little%20Fractures.mp3
          Updating File Tags
 ** INFO: Directory still contains media; keeping:

--------------------END----------------------

Note: to produce this log, I highlighted two files, and had to twice click 'Organize Selection'. After the second time, I got the pop-up "fileorganizer: Your selection is organised"
Everthing after and including the line "Snow Patrol - Final Straw - 10:37:16 PM" didn't exist in the log until the second 'Organize Selection' attempt.

Now here's the output from 'rhythmbox -D fileorganizer':

jordan2@jordan2-HP-12:~$ rhythmbox -D fileorganizer
(22:40:54) [0x162e4a0] [Fileorganizer.do_activate] .local/share/rhythmbox/plugins/fileorganizer-gtk3/fileorganizer.py:129: activating Fileorganizer

(rhythmbox:15216): Rhythmbox-WARNING **: Unable to grab media player keys: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No such interface `org.gnome.SettingsDaemon.MediaKeys' on object at path /org/gnome/SettingsDaemon/MediaKeys

** (rhythmbox:15216): WARNING **: Error calling get_info: Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/dbus/service.py", line 707, in _message_cb
    retval = candidate_method(self, *args, **keywords)
  File "/usr/lib/python2.7/dist-packages/ubuntuone-client/ubuntuone/platform/linux/dbus_interface.py", line 723, in get_info
    return self.service.folders.get_info(path)
  File "/usr/lib/python2.7/dist-packages/ubuntuone-client/ubuntuone/syncdaemon/interaction_interfaces.py", line 166, in inner
    result = f(*new_args, **new_kwargs)
  File "/usr/lib/python2.7/dist-packages/ubuntuone-client/ubuntuone/logger.py", line 283, in inner
    res = f(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/ubuntuone-client/ubuntuone/syncdaemon/interaction_interfaces.py", line 717, in get_info
    mdobj = self.fs_manager.get_by_path(path)
  File "/usr/lib/python2.7/dist-packages/ubuntuone-client/ubuntuone/syncdaemon/filesystem_manager.py", line 794, in get_by_path
    mdid = self._idx_path[path]
KeyError: '/home/jordan2/.ubuntuone/Purchased from Ubuntu One'

** (rhythmbox:15216): CRITICAL **: syncdaemon_folder_info_get_subscribed: assertion `SYNCDAEMON_IS_FOLDER_INFO (finfo)' failed

------------------END----------------------------

Thanks for a great product and the diligence!!!!!!!!!!!!!!!!!!!

Revision history for this message
lachlan-00 (lachlan-00) said :
#3

i don't usually deal with network files or m4a's so there may be some issues there.
but from what you've posted It looks like Rhythmbox can't handle updating either m4a's or network files

   OUT: file:///media/windows/Users/Jordan/Music/Snow%20Patrol/Final%20Straw/10%20-%20Tiny%20Little%20Fractures.m4a
         Updating File Tags
Snow Patrol - Final Straw - 10:37:16 PM

do you see in the log how there is no blank space between updating tags and snow patrol? that tells me it's failed updating tags.

firstly i would go into the plugin settings and disable updating file tags. This should solve all your problems. tag updating was a pedantic feature i added, i don't think it will worry you to disable.

Revision history for this message
Nadroj Cromcen (irishetalon007) said :
#4

Thanks! I disabled the tags updates, and it's working a lot better.

It's not over a network, that's just where i mount my windows partition.

Based on what you said about no space signifying a problem, I highlighted an artist I had a lot of music for and selected all their music and tried "organize selection" and tracked down a buggy file. Here's the log for that one file being selected and clicking 'organise selection' twice:

Smashing Pumpkins - The End is The Beginning is The End - 11:20:31 PM
    IN: /media/windows/Users/Jordan/Music/Smashing Pumpkins/The End is The Beginning is The End/01 The End is The Beginning is The E.mp3
 ** INFO: Cover art moved to cache folder
Smashing Pumpkins - The End is The Beginning is The End - 11:20:33 PM
    IN: /media/windows/Users/Jordan/Music/Smashing Pumpkins/The End is The Beginning is The End/01 The End is The Beginning is The E.mp3
 ** INFO: Cover art moved to cache folder

any ideas what this might signify?

Thanks for the help!

Revision history for this message
Nadroj Cromcen (irishetalon007) said :
#5

Update:

I went to the offending file's folder and deleted all data that wasn't mp3's (cover art, etc) and now it worked.

Revision history for this message
lachlan-00 (lachlan-00) said :
#6

I take it this is an NTFS partition? that's probably going to cause issues with file naming as well now that i think about it.

NTFS doesn't handle a lot of the characters that ext2/3/4 partitions do.

so for example if i copy files with asian characters or other unicode characters that ntfs doesn't support that's going to cause troubles when it tries to move the file on the windows partition.

I think i'll have to add a setting for windows partitions as the way i have written file organizer does not take into account NTFS file systems.

Sorry i didn't realise this earlier, i haven't had an NTFS partition at home in almost 10 years.

I'm making this a bug report and i'll work on this next. until then i wouldn't trust fileorganizer on an NTFS partition because i can't say what or where your music will do.

Revision history for this message
Nadroj Cromcen (irishetalon007) said :
#7

Thanks for your help! !!!!

Revision history for this message
pca2 (pca2) said :
#8

I can also confirm that there seems to be an issue when there are other items in a folder besides MP3s. I was getting the following items in the log:

Tobacco - Fucked Up Friends - 09:54:11 PM
    IN: /home/carleton/Desktop/Temp/Tobacco - Fucked Up Friends/01 Street Trash.mp3
 ** INFO: Cover art moved to cache folder
Darren Korb - Bastion Original Soundtrack - 09:54:19 PM
    IN: /home/carleton/Desktop/Temp/bastion/Supergiant Games - Bastion Original Soundtrack - 01 Get Used to It.mp3
 ** INFO: Cover art moved to cache folder

Then I deleted the non-MP3s and it successfully moved the files.

Tobacco - Fucked Up Friends - 11:49:12 PM
    IN: /home/carleton/Desktop/Temp/Tobacco - Fucked Up Friends/02 Truck Sweat.mp3
    OUT: /media/MEDIA/Music/Tobacco/Fucked Up Friends/02 - Truck Sweat.mp3
 ** INFO: Updating Database:
    OUT: file:///media/MEDIA/Music/Tobacco/Fucked%20Up%20Friends/02%20-%20Truck%20Sweat.mp3

Tobacco - Fucked Up Friends - 11:49:12 PM
    IN: /home/carleton/Desktop/Temp/Tobacco - Fucked Up Friends/03 Hairy Candy.mp3
    OUT: /media/MEDIA/Music/Tobacco/Fucked Up Friends/03 - Hairy Candy.mp3
 ** INFO: Updating Database:
    OUT: file:///media/MEDIA/Music/Tobacco/Fucked%20Up%20Friends/03%20-%20Hairy%20Candy.mp3

Thanks!