UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    How to stop Music app from adding audio files in directories other than Music to library

    Scheduled Pinned Locked Moved Solved Support
    3 Posts 2 Posters 613 Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • E Offline
      ECLKu0
      last edited by

      I'm using a MicroSD card for extra storage on my Sony Xperia X. No matter where I place audio files on the SD card, they are added to the music library. This is inconvenient as I need to store non-music mp3's on the card. Is there any way that I can restrict the Music app's access to just the Music directory?

      K 1 Reply Last reply Reply Quote 0
      • K Offline
        kristatos @ECLKu0
        last edited by

        @eclku0 Hi, you can prevent mediascanner from scanning separate folders by adding a file named ".nomedia" into them.
        Maybe you need to clean up the database of mediascanner by deleting "/home/phablet/.cache/mediascanner-2.0/mediastore.db", but I don't think it's necessary.

        BQ Aquaris E4.5 (UT 16.04)
        Vollaphone (UT 24.04)
        Vollaphone 22 (UT 24.04)

        E 1 Reply Last reply Reply Quote 2
        • E Offline
          ECLKu0 @kristatos
          last edited by

          @kristatos This worked great. Thank you.
          (I did have to delete the cache, then restart to rebuild it.)

          1 Reply Last reply Reply Quote 0

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          • First post
            Last post