Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Local file support for 'tvg-logo' #244

Merged
merged 1 commit into from
Oct 4, 2022

Conversation

fire-hawk-86
Copy link
Contributor

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

Local file support for 'tvg-logo' attribute in '.m3u8' files. Example: `tvg-logo="file:https:///home/username/Video/Movies/Movie Name (1986)-landscape.jpg"`
@fire-hawk-86 fire-hawk-86 changed the title Update common.py Local file support for 'tvg-logo' Sep 13, 2022
@fire-hawk-86
Copy link
Contributor Author

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:https:// scheme, but that also didn't work for the tvg-logo attribute.

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

@mtwebster mtwebster merged commit 8f5e38c into linuxmint:master Oct 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants