Navigation

    UBports Robot Logo

    UBports Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

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

    Support
    2
    3
    233
    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
      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
        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
          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