LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Rhythmbox doesn't find all files (https://www.linuxquestions.org/questions/linux-general-1/rhythmbox-doesnt-find-all-files-4175643952/)

gregors 12-09-2018 01:33 PM

Rhythmbox doesn't find all files
 
Hi there!

Rhythmbox has been my favourite player application for quite some years. So I want to go on using it.

But it finds only 611 of >1000 music files in my music directory.

Running Rhythmbox in a terminal gave no hint.

Where to look next for a solution?

TIA

Gregor

BTW: 'find -not -type d' finds all files, 'find -not -type d | grep bla' finds < 1000 files. WTF?!

ondoho 12-09-2018 04:00 PM

Quote:

Originally Posted by gregors (Post 5935185)
Where to look next for a solution?

compare the files found with those not found.
maybe some pattern there? like, certain codecs are not recognized?

Quote:

BTW: 'find -not -type d' finds all files, 'find -not -type d | grep bla' finds < 1000 files. WTF?!
apparently less than 1000 files have the string "bla" in their filenames. what's weird about that?

gregors 12-09-2018 04:37 PM

Quote:

Originally Posted by ondoho (Post 5935225)
compare the files found with those not found.
maybe some pattern there? like, certain codecs are not recognized?

Except for some older files (all of them ogg) only recently added files are found.

Quote:

Originally Posted by ondoho (Post 5935225)
apparently less than 1000 files have the string "bla" in their filenames. what's weird about that?

Sorry having asked this question. I have mixed some thins I'm working on. The real thing is:

Code:

/home/gszaktilla>locate mp3 | grep gszaktilla | wc -l
588
/home/gszaktilla>locate mp3 | wc -l
18185

To me that looks like the behaviour of grep has changed. Maybe that's some weird difference between Debian 7.11 and Slackware 14.2

Thanks!

Gregor

michaelk 12-09-2018 06:35 PM

locate mp3 will output any string in the mlocate database that contains the substring mp3 which is not necessarily a mp3 file. Could be a sub directory, library or any program name.

locate mp3 | grep gszaktilla will pipe the output of locate mp3 to grep which will filter the output more i.e. those strings that contain gszaktilla which may not be in the /home/gszaktilla directory.

If you want to count the number of files just in the /home/gszaktilla then use the command

/home/gszaktilla> ls *.mp3 | wc -l

To find just mp3 files use

locate .mp3

The contents of the mlocate database are only as good as the last time the updatedb comand was run which is via a cron job. Files recently deleted may still be in the database.

find searches the actual contents of directories versus using a database.

gregors 12-09-2018 08:35 PM

Quote:

Originally Posted by michaelk (Post 5935269)
... To find just mp3 files use

locate .mp3

...

Hm. Something still looks strange to me:

Code:

gszaktilla@mimi:~>locate .mp3 | wc -l
14346
gszaktilla@mimi:~>locate .mp3 | grep gszaktilla | wc -l
6927
gszaktilla@mimi:~>locate .mp3 | grep -v gszaktilla | wc -l
0
gszaktilla@mimi:~>

Gregor

michaelk 12-09-2018 09:27 PM

I don't know at the moment without see the actual output. To find all mp3 files in your home directory using the find command.

find /home/gszaktilla -iname "*.mp3" -print | wc -l

gregors 12-09-2018 09:45 PM

Quote:

Originally Posted by michaelk (Post 5935304)
I don't know at the moment without see the actual output.

Well, the complete thing is there: What I typed and what it returned.

Quote:

Originally Posted by michaelk (Post 5935304)
To find all mp3 files in your home directory using the find command.
find /home/gszaktilla -iname "*.mp3" -print | wc -l

Uh, now I have a fourth number to think about. So far I have 14346, 6927, 14330 and 0 :-)

Life with Linux can be fun. I'm having fun since mid 90's.

Gregor

PS: The original problem still exists - rhythmbox only shows some 600 of >1000 mp3 files. The locate thing was a step in trying to build a playlist. rhythmbox shows <600 of that playlist :-/.

ondoho 12-09-2018 11:57 PM

troubleshooting oneliners:
you need to remove the pipe and everything after it from these commands and see what they actually output.

rhythmbox:
- how do you measure "more than 1000"?
- how do you measure 611 (i guess rhythmbox told you so)

anyhoo, i don't see how we can help you here without additional information.
you need to compare the files in rhythmbox database to those actually present in your library (? your home directory?) and try to find a pattern.

gregors 12-10-2018 12:07 AM

Quote:

Originally Posted by ondoho (Post 5935326)
troubleshooting oneliners:
you need to remove the pipe and everything after it from these commands and see what they actually output.

Which post are you referring to?

Quote:

Originally Posted by ondoho (Post 5935326)
rhythmbox:
- how do you measure "more than 1000"?
- how do you measure 611 (i guess rhythmbox told you so)

I don't have to measure ">1000". It is my music library. A playlist that I created before starting with Slackware has >1000 lines.

Quote:

Originally Posted by ondoho (Post 5935326)
anyhoo, i don't see how we can help you here without additional information.
you need to compare the files in rhythmbox database to those actually present in your library (? your home directory?) and try to find a pattern.

The only pattern so far is: The files found are recently added files OR a file is of type ogg.

Please let me know what further information you need.

Gregor


All times are GMT -5. The time now is 11:47 PM.