Bug 310057

Summary: Track lengths are not shown in Nepomuk Collection
Product: [Applications] amarok Reporter: Hrvoje Senjan <hrvoje.senjan>
Component: Collections/NepomukAssignee: Amarok Developers <amarok-bugs-dist>
Status: RESOLVED FIXED    
Severity: normal CC: kde, me, nortexoid
Priority: NOR Flags: hrvoje.senjan: ReviewRequest+
Version: 2.7-git   
Target Milestone: 2.8   
Platform: Compiled Sources   
OS: Linux   
URL: https://git.reviewboard.kde.org/r/108717/
Latest Commit: Version Fixed In: 2.8
Sentry Crash Report:
Attachments: Screenshot

Description Hrvoje Senjan 2012-11-13 20:42:06 UTC
As said in the title, no track lengths  are shown in playlist when utilizing Nepomuk Collection. 
I am using git master of taglib, phonon and backends, KDE SC and Amarok.

Reproducible: Always

Steps to Reproduce:
1. Add an item from Nepomuk Collection to playlist

Actual Results:  
No length is shown

Expected Results:  
Should show length
Comment 1 Phalgun Guduthur 2012-11-14 06:21:01 UTC
Hi Hrvoje

Thanks for pointing it out. 
The behavior of 00:00 track length is because of Strigi in Nepomuk.
Strigi was not able to extract the length information from the music tracks. 

But fortunately, Vishesh Handa has been developing a new Nepomuk without using Strigi. You can read about it here - http://vhanda.in/blog/2012/11/nepomuk-without-strigi/

And Nepomuk will be using taglib in this next version and you can find adequate metadata then.
Comment 2 Phalgun Guduthur 2012-11-14 08:17:53 UTC
Will be fixed with Nepomuk2.
Comment 3 Hrvoje Senjan 2012-11-14 10:44:51 UTC
Phalgun, thanks for a fast response. I am aware of the new Indexer's, and i'm in fact using them, so i'm not sure how to interpret your comment 1.
Comment 4 Phalgun Guduthur 2012-11-14 10:58:05 UTC
Yes, I'm in the process of porting the plugin to Nepomuk2 ( the new Nepomuk version )

When I'm done with that, the audio metadata would be fetched using taglib. And subsequently, the collection metadata would look complete like the current SQL collection. 

Changing the status to verified as this bug needs to be worked on, hopefully before the plugin ships. 

Lastly, thanks for trying out the Nepomuk plugin.
Comment 5 Hrvoje Senjan 2012-11-14 11:02:29 UTC
(In reply to comment #4)
> Yes, I'm in the process of porting the plugin to Nepomuk2 ( the new Nepomuk
> version )
Cool, didn't understood that the first time.

> When I'm done with that, the audio metadata would be fetched using taglib.
> And subsequently, the collection metadata would look complete like the
> current SQL collection. 
> 
> Changing the status to verified as this bug needs to be worked on, hopefully
> before the plugin ships. 
If i can test, just let me know here, i'll be happy to do so :-)

> Lastly, thanks for trying out the Nepomuk plugin.
Thanks for coding it :-)
Comment 6 Michael D 2013-02-05 20:22:48 UTC
Is this bug still supposed to be present in KDE 4.10 RC3? Because it is on my Kubuntu 12.10 system.
Comment 7 Hrvoje Senjan 2013-02-05 20:29:54 UTC
@Michael, bug is for fixing on the Amarok side :-) see comment #4
Comment 8 Myriam Schweingruber 2013-02-05 22:39:26 UTC
*** Bug 314475 has been marked as a duplicate of this bug. ***
Comment 9 Michael D 2013-02-23 10:43:46 UTC
Seems to have nothing to do with Amarok, since even Dolphin shows incorrect track length in 4.10 final, using the new file indexer.
Comment 10 Hrvoje Senjan 2013-02-23 17:02:59 UTC
Created attachment 77532 [details]
Screenshot

(In reply to comment #9)
> Seems to have nothing to do with Amarok, since even Dolphin shows incorrect
> track length in 4.10 final, using the new file indexer.
Strange, as it works here, (screen attached)
Also, nfo:duration for that file is 213, which is also correct.
So, while nepomuk stores correct value, this rather seems like Amarok's bug.
Comment 11 Michael D 2013-02-23 18:31:50 UTC
Very strange. Looks like something's wrong with my setup. I purged some strigi packages. It's possible nepomuk was still using the strigi backend, I guess. I'll reindex.
Comment 12 Marc Deop 2013-06-09 22:32:34 UTC
(In reply to comment #11)
> Very strange. Looks like something's wrong with my setup. I purged some
> strigi packages. It's possible nepomuk was still using the strigi backend, I
> guess. I'll reindex.

Had the same issue Michal, I couldn't even seek through the songs as they were all 0:00 in length. I solved this problem like this:
1 - Disable the Nepomuk plugin
2 - Restart amarok
3 - Enable the Nepomuk plugin
4 - Restart amarok

And there you have it: correct lenghts :-)

Can you please check if this solves  your issue and we can mark the bug as "Solved"?
Comment 13 Marc Deop 2013-06-09 22:54:22 UTC
I must apologize. It seems I was too quick to say the issue was solved for me.

The behavior is as follows:
1 - Add any track to the playlist from the Nepomuk collection: no track length and no album art
2 - Restart amarok and the tracks you added before now are shown with both the album art and the proper track length

The strange thing is that if you try to add them again from the Nepomuk collection they won't show the proper information.

Can anyone confirm this?