Hey, I love this project and trying to use it I found bug. It's more issue on VLC side in my opinion and you should add disclaimer about this in your README.
VLC translates requests sent from its HTTP api and because of that media detection in your code doesn't work, in my case category tag looks like this.
<category name='Strumień 2'>
<info name='Kodek'>FLAC (Free Lossless Audio Codec) (flac)</info>
<info name='Opis'>AU-BD (Viz Media dub)</info>
<info name='Częstotliwość próbkowania'>48000 Hz</info>
<info name='Typ'>Dźwięk</info>
<info name='Wybór języka'>Angielski</info>
<info name='Bitów na próbkę'>16</info>
</category>
<category name='Strumień 0'>
<info name='Liczba klatek/s'>24.000384</info>
<info name='Orientacja'>Górna lewa</info>
<info name='Typ'>Obraz</info>
<info name='Wybór języka'>Japoński</info>
<info name='Wymiary bufora'>768x578</info>
<info name='Kodek'>H264 - MPEG-4 AVC (part 10) (avc1)</info>
<info name='Zdekodowany format'>Planar 4:2:0 YUV 10-bit LE</info>
<info name='Rozdzielczość obrazu'>768x576</info>
<info name='Położenie chromy'>Lewy</info>
</category>
<category name='Strumień 3'>
<info name='Wybór języka'>Japoński</info>
<info name='Typ'>Napisy</info>
<info name='Kodek'>SubStation Alpha subtitles (ssa )</info>
<info name='Opis'>English Dialogue [SMC script]</info>
</category>
<category name='Strumień 4'>
<info name='Wybór języka'>Angielski</info>
<info name='Typ'>Napisy</info>
<info name='Kodek'>SubStation Alpha subtitles (ssa )</info>
<info name='Opis'>English Signs & Songs [SMC/US-BD script]</info>
</category>
<category name='Strumień 1'>
<info name='Kodek'>FLAC (Free Lossless Audio Codec) (flac)</info>
<info name='Częstotliwość próbkowania'>48000 Hz</info>
<info name='Kanały'>Stereo</info>
<info name='Typ'>Dźwięk</info>
<info name='Wybór języka'>Japoński</info>
<info name='Bitów na próbkę'>32</info>
</category>
It's a video but type is translated to "Obraz" so it gets detected as music. Changing VLC language fixes issue, but I wasted some time finding reason of this happening so disclaimer would be welcome (unless you have some idea for fixing root cause).
Hey, I love this project and trying to use it I found bug. It's more issue on VLC side in my opinion and you should add disclaimer about this in your README.
VLC translates requests sent from its HTTP api and because of that media detection in your code doesn't work, in my case category tag looks like this.
It's a video but type is translated to "Obraz" so it gets detected as music. Changing VLC language fixes issue, but I wasted some time finding reason of this happening so disclaimer would be welcome (unless you have some idea for fixing root cause).