Skip to content

Ability to refresh Plex Live TV Guide after the channels.json file is updated#40

Draft
hdonapati wants to merge 18 commits intoduncanleo:masterfrom
hdonapati:main
Draft

Ability to refresh Plex Live TV Guide after the channels.json file is updated#40
hdonapati wants to merge 18 commits intoduncanleo:masterfrom
hdonapati:main

Conversation

@hdonapati
Copy link
Copy Markdown
Contributor

  • Updated config.example.json to show example for plex_servers .
  • channels.go and config.go has the actual changes to refresh the Plex Server Live TV Guide when channels are updated.
  • All other files have relative imports instead of github.com, I was having issue compiling the App.

@duncanleo Can you please review this PR.

@hdonapati hdonapati marked this pull request as draft November 22, 2024 15:28
@hdonapati hdonapati marked this pull request as ready for review November 22, 2024 15:32
Comment thread go.mod
@@ -1,4 +1,4 @@
module github.com/duncanleo/plex-dvr-hls
module plex-dvr-hls
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: This change isn't compliant with Go module naming conventions:

The Go standard library uses package paths that do not contain a dot in the first path element, and the go command does not attempt to resolve such paths from network servers.

The non-absolute naming system appears to be suitable for local sub-packages (e.g. config) but not the root package.

Comment thread config/config.go

func RefreshPlexLiveTVGuide() error {
for _, server := range Cfg.PlexServers {
url := server.Endpoint + "/livetv/dvrs/29/reloadGuide?X-Plex-Token=" + server.Token
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: is the ID 29 hardcoded? I think it may change (e.g. if the DVR is removed and re-added).

@hdonapati hdonapati marked this pull request as draft November 25, 2024 15:18
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.

2 participants