linuxmint / hypnotix

An M3U IPTV Player
1.25k stars 168 forks source link

Local file support for 'tvg-logo' #244

Closed fire-hawk-86 closed 2 years ago

fire-hawk-86 commented 2 years ago

Local file support for 'tvg-logo' attribute in '.m3u8' files. Example: tvg-logo="file:///home/username/Video/Movies/Movie Name (1986)-landscape.jpg"

fire-hawk-86 commented 2 years ago

It's a very simple fix, but it works. Of course, feel free to implement it a different way. I just thought it would make sense to be able to use a locally stored logo/poster, for locally stored movies and shows. Before, I tried to use the path to the image beginning with / but that didn't work. Then I tried using the file:// scheme, but that also didn't work for the tvg-logo attribute.

The fix just copies the part after file:// to the relevant variable, where the cached logo is usually stored.