dfigus / addon-tvheadend

TVHeadend - Home Assistant Add-on
MIT License
3 stars 0 forks source link

Unable to add locale URL file #159

Closed Facy5 closed 2 months ago

Facy5 commented 3 months ago

The Problem

It seems TVH isn't able to see any folders/files if I want to add an .m3u playlist stored localy inside TVH folders with the file:/// protocol. But I can clearly see it with FileBrowser.

I also tried store it some others folders (inside and outside TVH addon folder, like media, usr, or even the root folder)

Have I missed something ?

Environment

Logs

iptv: unable to open file '/tvheadend/YourPlaylist.m3u': No such file or directory

Steps to reproduce

With FileBrowser, add an .m3u in addon_configs[AutoGeneratedNumber]_tvheadend\tvheadend\

In TVH : Go to Configuration > DVB Input > Network > Add URL : file:///tvheadend/YourPlaylist.m3u Save

dfigus commented 3 months ago

Hi @Facy5,

welcome to the addon 😁. In my opinion the URL you use is incorrect. Inside the addon, the path would be /config/tvheadend, hence your URL should be

file:///config/tvheadend/YourPlaylist.m3u

You could also drop m3u this into the HA share or media folder which are mapped to /share and /media inside the addon.

Facy5 commented 2 months ago

Yes, it was that ! But, why TVH see with /config and not directly /tvheadend (just for my knowledge) ?

You could also drop m3u this into the HA share or media folder which are mapped to /share and /mediainside the addon.

Yes, I didn't think about them.

dfigus commented 2 months ago

The /config is how the HA supervisor maps the addon config folder into the addon. That is the same for all addons.