TagLib affects indexers?

View: New views
3 Messages — Rating Filter:   Alert me  

TagLib affects indexers?

by lariamat :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Can anybody confirm this?

as far as I can see there is no possibility to open a file readonly with
taglib.
This affects tracker/beagle/strigi/any other indexer that uses inotify,
because these reindex the file after reading the tag with taglib.

Am I getting something wrong or isn't there a possibility to open
readonly.

Thanks for reply


_______________________________________________
taglib-devel mailing list
taglib-devel@...
https://mail.kde.org/mailman/listinfo/taglib-devel

Re: TagLib affects indexers?

by Bugzilla from mpyne@purinchu.net :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
On Thursday 31 July 2008, lariamat wrote:
> Can anybody confirm this?
>
> as far as I can see there is no possibility to open a file readonly with
> taglib.
> This affects tracker/beagle/strigi/any other indexer that uses inotify,
> because these reindex the file after reading the tag with taglib.
>
> Am I getting something wrong or isn't there a possibility to open
> readonly.

You can open a file read only, but TagLib only does this right now if opening it in read/write mode fails. So you need to make the file itself read only to do this (which isn't a bad idea anyways if you're not going to tag it any further I guess).

Adding a readOnly flag to TagLib::File() probably wouldn't be too hard though, everything is in taglib/toolkit/tfile.cpp

Regards,
- Michael Pyne



_______________________________________________
taglib-devel mailing list
taglib-devel@...
https://mail.kde.org/mailman/listinfo/taglib-devel

signature.asc (204 bytes) Download Attachment

Re: TagLib affects indexers?

by Bugzilla from kde-dev@emailgoeshere.com :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Michael Pyne wrote:

> On Thursday 31 July 2008, lariamat wrote:
>  > Can anybody confirm this?
>  >
>  > as far as I can see there is no possibility to open a file readonly with
>  > taglib.
>  > This affects tracker/beagle/strigi/any other indexer that uses inotify,
>  > because these reindex the file after reading the tag with taglib.
>  >
>  > Am I getting something wrong or isn't there a possibility to open
>  > readonly.
>
> You can open a file read only, but TagLib only does this right now if
> opening it in read/write mode fails. So you need to make the file itself
> read only to do this (which isn't a bad idea anyways if you're not going
> to tag it any further I guess).
>
> Adding a readOnly flag to TagLib::File() probably wouldn't be too hard
> though, everything is in taglib/toolkit/tfile.cpp

If you do so, please consider sending it as a patch in a bug report so
that it may end up in Taglib proper.

--Jeff
_______________________________________________
taglib-devel mailing list
taglib-devel@...
https://mail.kde.org/mailman/listinfo/taglib-devel
LightInTheBox - Buy quality products at wholesale price!