Open xenogenesi opened 6 years ago
Sorry for the late answer - Unfortunately I don't have a lot of time to work on this project anymore.
Great detective work on finding the cause of the issue, but I don't like the solution of setting the first jpeg image found in the resources as the icon url.
Currently the app assumes that each UPnP item only contains a single resource (the media), so depending on the sorting of the resources, the media might not play as expected (the app plays the first resource).
Since an image is not presented by the server using the "ALBUM_ART_URI" or "ICON" property (as other UPnP servers do) I don't consider this an issue with the app.
Based on your findings, I don't see a proper solution for this issue (maybe MiniDLNA can be tweaked to use one of the supported properties for the image - I don't know).
I will leave this issue open for a while incase you or someone else have further comments.
Thanks for replying and for leaving the issue open, I'm using the patch and it is working but I don't like it either.
Thanks for this app, I'm using it a lot with a synology nas and a debian/sid desktop and it works great.
About the small issue I'm having with minidlna and thumbnails:
with the synology dlna server I just put a jpg image with the same name of a video and the thumbnail is shown correctly in the directory listing (
test.mp4 -> test.jpg
)on the debian server instead I'm using the minidlna package, lightweight and easy to setup, for my understanding it should support thumbnails (not sure but maybe the inotify option need to be enabled), it looks for
basename + .cover.jpg
(test.mp4 -> test.mp4.cover.jpg
), if the .cover.jpg file exists it is indexed into a sqlite3 db (/var/cache/minidlna/files.db
) tableALBUM_ART
I captured a directory listing (below) and the thumbnail is listed and published correctly, I think the issue is something similar to one already fixed (https://github.com/KernelCrap/android-dlna/pull/8/commits/838069b32c21be06fe88b18a8c20b028e7ddd5c8) but I'm not upnp expert, don't know how to fix this one yet, any suggestion where to look?
Thanks in advance
edit
apparently minidlna pass the thumbnail as a resource (the second, the first is the video) not as a property, I got it working by adding one more fallback within
createItemModel()
, but I really don't know much about upnp and I don't think that's an optimal solution: