Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

The video lens only displays 100 of 'My Videos', even though I have hundreds more. If I add more to the folder, that gets displayed, but others are removed.

Is there any way to increase the limit, to display them all?

I really would love to use this feature, but I would require it to index my entire video folder for me to browse using this lens.

share|improve this question

1 Answer 1

up vote 2 down vote accepted

The video lens is coded to display a maximum of 100 results in its searches of local files. If there is no search terms entered, then it will display the first 100 local videos it finds. With search terms, it will display the first 100 videos matching the search terms that it finds.

The maximum limit is there for reasons of performance. It is also more difficult for users to find what they are looking for large numbers of results rather than try to reduce the number of results by using more specific search terms.

That being said, to increase the maximum number of results being displayed:

  1. In a terminal, enter the following to edit the source code of the video lens:

    sudo gedit /usr/lib/unity-lens-video/unity-lens-video
    

    You will need to enter your password to edit this file.

  2. In the file, find line 220:

    if video_counter < 100:
    

    (or press CTRL+F and search for 100)

  3. Change 100 to a larger number ( e.g. 500) and save the file

  4. Log out and log back in again. The video lens should now display a larger number of local files.

share|improve this answer
    
Exactly the answer I was looking for. Thank you so much for your help. I really appreciate it. PS: The search function did not work with me previously. All it did was search amongst the videos displayed in the list. Perhaps an update fixed that. Regardless, I thought it would be nice to expand it anyway. –  Ryan Sharp May 15 '12 at 1:39

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.