This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Amarok does nothing to collection if metadata is updated

Tags: None
(comma "," separated)
stolzi
Registered Member
Posts
44
Karma
0
OpenSuSE11.1
KDE4.2.4
Amarok2.1.1

Hello,

is this a bug, or do i something wrong? I problems when i update metadata of files in my collection outside amarok (i used pinky tagger). Amarok don't recognizes a change in collection. So i tried to say "extras-update collection" manually, but again: Amarok does nothing!

Is there something i can try, or is this a bug? Please help, this is very unconfortable...

Thanks
Stolzi
User avatar
Dieter Schroeder
Registered Member
Posts
714
Karma
7
OS
I'm using easytag and my changes are all recognized by Amarok, using Amarok 2.2svn, openSUSE 11.1, KDE 4.3beta2.
Just test it with changing the Artist tag to booboo on a mp3 file.
Maybe Amarok doesn't react on changes, which are not in its database (unused tags).

Greetings
m0nk


If men could get pregnant, abortion would be a sacrament.
stolzi
Registered Member
Posts
44
Karma
0
No, amarok definitely not recognizes the changes. I also tried it with your easy tagger for the artist tag. Could it be that it don't works because my files are on a mounted nfs share?
User avatar
Dieter Schroeder
Registered Member
Posts
714
Karma
7
OS
Maybe your nfs share doesn't update mtime (last modified), so amarok can't register the changes. Check your mount options. Not sure about NFS share.

Greetings
m0nk


If men could get pregnant, abortion would be a sacrament.
stolzi
Registered Member
Posts
44
Karma
0
No, i checked it. Modification time is set like on a file on my local disk.

I don't know if it uses the same system, but i have installed Google Desktop and it recognizes changes on this NFS share without delay. So in general there should be nothing wrong with this.
User avatar
Dieter Schroeder
Registered Member
Posts
714
Karma
7
OS
Could you copy some music to your local HDD to check, if Amarok recognizes changes on your local disk?
I'm using the same distribution, but Amarok 2.2svn (self-compiled) and KDE 4.3rc1 and it works on an external disk (not NFS) here.

Greetings
m0nk


If men could get pregnant, abortion would be a sacrament.
stolzi
Registered Member
Posts
44
Karma
0
Ok i tried... Good idea. (Another not so cool thing happens here -> if i add a new folder he reads out the whole collection again. I think it is not necessary to read the old things again)

But... exactly the same on the local disk! I changed the Album name from Daredevil to Seppele and nothing happens. Then i tried to use Extras-updateCollection and nothing happens. Then i restarted Amarok and again -> The Albums Name is still Daredevil in Amarok :-(

Perhaps this is wrong only in 2.1.1 and i have to wait for 2.2?
User avatar
Dieter Schroeder
Registered Member
Posts
714
Karma
7
OS
No, the monitoring for changes worked in 2.1, too. As far as I understand amarok uses dbus to get the changes, but perhaps it's better if one of the developer would answer this.
So, I'm now running  out of ideas.
I'll ask for that in the Deelopment forum.
Last resort would be to compile Amarok by yourself. I prefer doing that. Most patches in the SUSE- and/or BUILD Service-packages didn't work for me.


Sorry
m0nk

Last edited by Anonymous on Sat Jul 04, 2009 11:58 am, edited 1 time in total.


If men could get pregnant, abortion would be a sacrament.
stolzi
Registered Member
Posts
44
Karma
0
Ok thank you. It would be nice if you ask there. If i find the time, i will test with a self compiled amarok.
User avatar
Dieter Schroeder
Registered Member
Posts
714
Karma
7
OS
D-bus is used, so notification-daemon is installed?

m0nk


If men could get pregnant, abortion would be a sacrament.
stolzi
Registered Member
Posts
44
Karma
0
Thank you.

Hmm, yes, dbus-1 is installed, but a little strange looks for me that there is a separate package named dbus-1-qt3. But since amarok 2.1.1 is qt4, shouldn't there also be a package for qt4, or what package is needed from amarok? There is only an other package for glib, mono, python and x11.
User avatar
Dieter Schroeder
Registered Member
Posts
714
Karma
7
OS
I meant the package notification-daemon. Is it installed? QT4 uses dbus, so there's no need for a package.
But for completeness:
I've dbus-1(-devel), dbus-1-x11, dbus-1-python(-devel), dbus-1-glib(-devel) installed.
------snip------
amarok(3498)/kio (KDirWatch) KDirWatchPrivate::KDirWatchPrivate: Available methods:  ("Stat", "INotify")
amarok(3498)/kio (KDirWatch) KDirWatchPrivate::addEntry: Added File "/home/XXXX/.local/share//user-places.xbel" for "" ["KDirWatch-1"]
amarok(3498)/kio (KDirWatch) KDirWatchPrivate::useINotify: trying to use inotify for monitoring
amarok(3498)/kio (KDirWatch) KDirWatchPrivate::useINotify: inotify successfully used for monitoring
amarok(3498)/kio (bookmarks) KBookmarkManager::KBookmarkManager: starting KDirWatch for  "/home/XXXX/.local/share//user-places.xbel"
amarok(3498)/kio (KDirListerCache) KDirListerCache::listDir: Listing directory: KUrl("trash:/")
Object::connect: No such slot FileBrowser::Widget::setDir(QString)
Object::connect:  (sender name:  'KBookmarkHandler')
Object::connect:  (receiver name: 'FileBrowser::Widget')
amarok(3498)/kio (KDirListerCache) KDirListerCache::listDir: Listing directory: KUrl("file:///home/XXXX")
amarok(3498)/kio (KDirWatch) KDirWatchPrivate::addEntry: Added Dir "/home/XXXX" for "" ["KDirWatch-2"]
amarok(3498)/kio (KDirWatch) KDirWatchPrivate::useINotify: trying to use inotify for monitoring
amarok(3498)/kio (KDirWatch) KDirWatchPrivate::useINotify: inotify successfully used for monitoring
---------snap---------
The above shows part of the output, when amarok is started with the -d parameter.

So, it should be the nearly the same in your case.
Unfortunately I never used Amarok2 packages provided by openSUSE.
Always built my own.

Greetings
m0nk


If men could get pregnant, abortion would be a sacrament.
stolzi
Registered Member
Posts
44
Karma
0
Ok, now i had some time again. I checked all packages: They are installed.

Then i compiled Amarok 2.1.1 with all packages it needed to compile. I deletet all settings and the collection. Then i readed it again and tried to change metadata outside amarok... But :-( Nothing happens. I also started with -d, but i had no line with "KDirWatchPrivate", but also no errors.

I don't understand that... Some more ideas?

Thanks
stolzi
Registered Member
Posts
44
Karma
0
It's a little strange for me, that Dieter Schroeder said, that it works for him, but after searching a long time for possible solutions i found this:

http://amarok.kde.org/wiki/Amarok_File_Tracking -->
Note: Because the incremental scanner uses mtimes (modify times) of the selected directories to determine what to rescan, and not of the individual files, if you modify the tags of a file outside of Amarok, the incremental scanner will not re-scan that directory. If you then move one of these files, the tracking will fail. Therefore, if you want tracking to work after you've modified files outside of Amarok you should either: manually run a full rescan of your files, touch the directory that the file resides in (works on most Unix/Linux/Mac filesystems), or "trick" the incremental scanner into scanning the directory those files were in by creating a new file (i.e. with touch) so that the directory's mtime is updated (you can delete the file after the scan).
<--

And if i change metadata outside Amarok and then the filenames it works... the collection gets updated.

But at all i would be interested why this works for Dieter Schroeder. Isn't it possible to get a statement from a person which knows about what is now exactly implemented? Perhaps this comment i posted is not up to date?

Thanks
User avatar
Dieter Schroeder
Registered Member
Posts
714
Karma
7
OS
In easytag I have the choice to update mtime of the directory and preserve it on the file. So that's why my collection gets updated. Don't know, if pinky-tagger has this option, too.

m0nk


If men could get pregnant, abortion would be a sacrament.


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Yahoo [Bot]