Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Changelog

* fixed issue w/ non-integer channels

## v1.0.1 - 2017-11-29

* Update golang to 1.9.3 [Will Boyce]
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
FROM golang:1.9.2

ADD *.go /go/src/github.com/wrboyce/plexheadend/
RUN go get -v github.com/wrboyce/plexheadend
ADD *.go /go/src/github.com/papaschloss/plexheadend/
RUN go get -v github.com/papaschloss/plexheadend
CMD plexheadend
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
USERNAME ?= wrboyce
USERNAME ?= papaschloss
PROJECT ?= plexheadend
EXECUTABLE ?= plexheadend
DOCKER_IMAGE ?= $(USERNAME)/$(PROJECT)
Expand Down
18 changes: 6 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,24 +1,18 @@
# plexheadend

[![GoDoc](https://godoc.org/github.com/wrboyce/plexheadend?status.svg)](https://godoc.org/github.com/wrboyce/plexheadend)
[![Go Report Card](https://goreportcard.com/badge/github.com/wrboyce/plexheadend)](https://goreportcard.com/report/github.com/wrboyce/plexheadend)
[![CircleCI](https://circleci.com/gh/wrboyce/plexheadend.png?style=shield)](https://circleci.com/gh/wrboyce/plexheadend)

Proxy requests between PlexDVR and TVHeadend

## Installation

### Binary Release
This fixes an issue in github.com/wrboyce/plexheadend where OTA channels (like "2.1") won't work with plexheadend.

Download the latest release from the [downloads page](https://github.com/wrboyce/plexheadend/releases).
## Installation

### Build from Source

Download and build the project and its dependencies with the standard Go tooling, `go get github.com/wrboyce/plexheadend`.
Download and build the project and its dependencies with the standard Go tooling, `go get github.com/papaschloss/plexheadend`.

### Docker Container

There is also a Docker container made available for use at `wrboyce/plexheadend`.
There is also a Docker container made available for use at `papaschloss/plexheadend`.

## Usage

Expand Down Expand Up @@ -69,7 +63,7 @@ services:
restart: unless-stopped

plexheadend:
image: wrboyce/plexheadend
image: papaschloss/plexheadend
container_name: plexheadend
environment:
- PLEXHEADEND_TVH_HOST=tvheadend
Expand All @@ -86,4 +80,4 @@ services:
- 32400:32400
- 32400:32400/udp
restart: unless-stopped
```
```
2 changes: 1 addition & 1 deletion plex.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ func (p *plexHeadend) lineupHandler(w http.ResponseWriter, r *http.Request) {
for _, channel := range p.tvhGetChannels() {
if p.tag == "" || sliceContains(channel.Tags, p.tag) {
data = append(data,
lineupResponse{fmt.Sprintf("%d", channel.Number), channel.Name, channel.URL})
lineupResponse{fmt.Sprintf("%s", channel.Number), channel.Name, channel.URL})
}
}
json.NewEncoder(w).Encode(data)
Expand Down
2 changes: 1 addition & 1 deletion tvheadenv.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ type apiChannelsResponse struct {
type apiChannel struct {
UUID string `json:"uuid"`
Name string `json:"name"`
Number int `json:"number"`
Number string `json:"number"`
Tags []string `json:"tags"`
URL string `json:"url"`
}
Expand Down