Menu

MiniDlna does not index all songs?

Help
denyo
2017-10-22
2017-11-28
  • denyo

    denyo - 2017-10-22

    Hi

    I am using Mdlna on Debian testing 1.2.1 Everything seems to work except that I seem to be missing songs substantially.

    I added the same music folders (on Btrfs) to Cmus and Minidlna. All media is 777

    Cmus 81481 songs
    Minidlna 80031 songs (based on the web interface)

    Now the difference might not seem alot given the amount of media but that is like 1450 songs missing if the stats are representational.

    This is hard to debug I do not even know what is missing what.

    Any ideas or recommendations?

     
  • Shrimpkin

    Shrimpkin - 2017-10-23

    Have you tried running in debug mode?

     
  • denyo

    denyo - 2017-11-08

    Well I did but I am lost, how am I supposed to debug a library that has almost 100k songs ;( I do not even know what I am missing.

    I am guessing that minidlna is passing songs with some non standard characters.

     
  • Shrimpkin

    Shrimpkin - 2017-11-28

    Running in debug mode will show any errors with media files. Also, it's possible your desktop program supports more media formats than minidlna does.

    You can use a script like this to figure out what is missing and go from there. Change DBFILE and MEDIAPATH. Make sure you have sqlite3.

    DBFILE=/path/to/files.db
    MEDIAPATH=/path/to/media
    
    find $MEDIAPATH -type f -print0 | while read -d $'\0' FN
    do
            R=$(sqlite3 $DBFILE "SELECT COUNT() FROM details WHERE path =
    \"$FN\"") 
            if [ $R -eq 0 ]
            then
                    echo $FN
            fi
    done
    
     

Log in to post a comment.