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 392 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 20.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
            • First post
              Last post