NeonGeckoCom / skill-local_music

Neon Skill for Local Music Playback
Other
4 stars 1 forks source link

[BUG] Filter non-audio files from results #25

Closed NeonDaniel closed 1 year ago

NeonDaniel commented 1 year ago

Description

.DS_Store files are being returned as song matches, but these metadata files should be ignored from indexing completely

Steps to Reproduce

Relevant Code

No response

Other Notes

Example result:

{
        "artist": "Music",
        "image": None,
        "length": 0,
        "match_confidence": 85,
        "media_type": 2,
        "playback": 2,
        "skill_icon": "/home/neon/venv/lib/python3.7/site-packages/skill_local_music/ui/music-solid.svg",
        "skill_id": "skill-local_music.neongeckocom",
        "title": ".DS_Store",
        "uri": "/home/neon/Music/Jim Croce/.DS_Store"
      }