Kodi Community Forum
Media Stubs Don't Show Messages if No Optical Drive is Present - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111)
+---- Forum: OS independent / Other (https://forum.kodi.tv/forumdisplay.php?fid=228)
+---- Thread: Media Stubs Don't Show Messages if No Optical Drive is Present (/showthread.php?tid=338949)



Media Stubs Don't Show Messages if No Optical Drive is Present - pkscout - 2019-01-03

I've been trying to create some media stubs mostly to show a message for some items that I can watch through a streaming app on my TV rather than in Kodi.  Unfortunately, it looks like if you don't have an optical drive on your device, Kodi simply displays a message saying you need an optical drive.  I did find a five year old thread about this:

https://forum.kodi.tv/showthread.php?tid=148591

As well as a PR on github that was abandoned about six months ago:

https://github.com/xbmc/xbmc/pull/11655

So since there doesn't seem to be much hope that this fix will make it into Leia, I did a very hacky thing with an addon and stream files to get the desired result.  Basically I create a stream file that uses a plugin URL with information in the URL on what I want the dialog box to say.  Then the addon displays an OK dialog box with the title and message from the strm file and then plays a 2 second long black video (so that Kodi doesn't throw up errors about unplayable streams).  In my brief testing everything works mostly fine, but Kodi 18RC5 does crash on my OSX machine every once in awhile when trying to play the video.  Then again, Kodi has never been horribly stable on my OSX machine anyway.

If anyone thinks this would help them, you get get the addon from my github repo at:

https://github.com/pkscout/plugin.whereareyou

I also wrote a little python3 command line tool to generate stream files for TV shows to trigger the addon (or media stub files if that ever works).  The github repo for that is mentioned in the readme for the addon.  That readme also has the format of the URL, so if you want to generate your own stream files some other way, you can do that.

This is VERY EXTREMELY hacky, but I didn't know what else to do to deal with this use case.


RE: Media Stubs Don't Show Messages if No Optical Drive is Present - stonedowner - 2019-03-03

I have started to use stub files and have come across this issue. It's really annoying and the wiki should be updated to say that the described functionality only works if an optical drive is present on the system. Would really appreciate if the dependency on an optical drive could be removed. Does anyone know how to filter out offline files when browsing so when looking at, say, Movies only movies that are playable are displayed?


RE: Media Stubs Don't Show Messages if No Optical Drive is Present - Kuki77 - 2020-08-06

Hi,
is there any new progress at this annoying "You don't have an optical drive" message issue?!


RE: Media Stubs Don't Show Messages if No Optical Drive is Present - Karellen - 2020-08-06

Yes. Fixed in v19... https://github.com/xbmc/xbmc/pull/17940


RE: Media Stubs Don't Show Messages if No Optical Drive is Present - Kuki77 - 2020-08-06

Hi,
thanks for this update. I can really confirm, that it's finally working in the v19 (tested on the last nightly build), but unfortunately, 9x% of my addons are not working with this, yet, and it's still alpha stadium, so is there any chance to get this fix for the 18.x version too?!


RE: Media Stubs Don't Show Messages if No Optical Drive is Present - DarrenHill - 2020-08-06

The team is now focussed on Matrix v19. It's highly unlikely that there will be any further 18.x releases, unless something earthshatteringly bad is uncovered to merit one.


RE: Media Stubs Don't Show Messages if No Optical Drive is Present - DaVu - 2020-08-06

(2020-08-06, 14:21)Kuki77 Wrote: so is there any chance to get this fix for the 18.x version too?!

If you look at this PR, you see that it has an "improvement" label. Beside that the focus is now on Kodi 19 completely and that there most likely will not be another bugfix-release for Kodi 18 anymore, this is not even a "fix" and only "fixes" are allowed to be backported. So there will be no backport for 2 reasons: no Kodi 18 bugfix-release anymore and it's not a "fix".

But feel free to compile Kodi 18 yourself with this patch applied.