Skip to content

Commit

Permalink
Change addon to only serve film festival catalogs
Browse files Browse the repository at this point in the history
  • Loading branch information
doingodswork committed Jul 12, 2020
1 parent 0a61501 commit 93b0a06
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 40 deletions.
22 changes: 9 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
stremio-top-movies
stremio-film-festivals
==================

Stremio addon for multiple catalogs of top movies:
Stremio addon for multiple film festival catalogs:

- IMDb Top Rated (a.k.a. IMDb Top 250)
- IMDb Most Popular
- Top Box Office (US, last weekend)
- Rotten Tomatoes Certified Fresh Movies (DVD & Streaming)
- Academy Award for Best Picture winners
- Cannes Film Festival Palme d'Or winners
- Venice Film Festival Golden Lion winners
Expand All @@ -25,7 +21,7 @@ Install
This addon is a remote addon, so it's an HTTP web service and Stremio just sends HTTP requests to it. You dont't need to run any untrusted code on your machine.

You only have to enter the addon URL in the search box of the addons section of Stremio, like this:
`https://stremio-top-movies.deflix.tv/manifest.json`
`https://stremio-film-festivals.deflix.tv/manifest.json`

That's it!

Expand All @@ -36,15 +32,15 @@ Alternatively you can also run the addon locally and use that in Stremio. The ad

You can use one of the precompiled binaries from GitHub:

1. Download the binary for your OS from <https://github.com/doingodswork/stremio-top-movies/releases>
1. Download the binary for your OS from <https://github.com/Deflix-tv/stremio-film-festivals/releases>
2. Simply run the executable binary
3. To stop the program press `Ctrl-C` (or `⌃-C` on macOS)

Or use Docker:

1. `docker pull doingodswork/stremio-top-movies`
2. `docker run --name stremio-top-movies -v /path/to/data:/data -p 8080:8080 doingodswork/stremio-top-movies`
3. To stop the container: `docker stop stremio-top-movies`
1. `docker pull doingodswork/stremio-film-festivals`
2. `docker run --name stremio-film-festivals -v /path/to/data:/data -p 8080:8080 doingodswork/stremio-film-festivals`
3. To stop the container: `docker stop stremio-film-festivals`

Then similar to installing the publicly hosted addon you just enter the following URL in the search box of the addon section of Stremio:
`http://localhost:8080/manifest.json`
Expand All @@ -54,15 +50,15 @@ Then similar to installing the publicly hosted addon you just enter the followin
The following options can be configured via command line argument:

```text
Usage of stremio-top-movies:
Usage of stremio-film-festivals:
-bindAddr string
Local interface address to bind to. "localhost" only allows access from the local host. "0.0.0.0" binds to all network interfaces. (default "localhost")
-cacheAge string
Max age for a client or proxy cache. The format must be acceptable by Go's 'time.ParseDuration()', for example "24h". (default "24h")
-dataDir string
Location of the data directory. It contains CSV files with IMDb IDs and a "metas" subdirectory with meta JSON files (default ".")
-logLevel string
Log level to show only logs with the given and more severe levels. Can be "trace", "debug", "info", "warn", "error", "fatal", "panic" (default "info")
Log level to show only logs with the given and more severe levels. Can be "debug", "info", "warn", "error" (default "info")
-port int
Port to listen on (default 8080)
```
4 changes: 2 additions & 2 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ RUN CGO_ENABLED=0 go build -v -ldflags="-s -w"

FROM gcr.io/distroless/static

COPY --from=builder /go/src/app/stremio-top-movies /
COPY --from=builder /go/src/app/stremio-film-festivals /

VOLUME ["/data"]
EXPOSE 8080

ENTRYPOINT ["/stremio-top-movies"]
ENTRYPOINT ["/stremio-film-festivals"]
CMD ["-bindAddr", "0.0.0.0", "-dataDir", "/data"]
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/doingodswork/stremio-top-movies
module github.com/deflix-tv/stremio-film-festivals

go 1.14

Expand Down
28 changes: 4 additions & 24 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
)

const (
version = "0.3.0"
version = "0.1.0"
)

var (
Expand All @@ -28,9 +28,9 @@ var (

var (
manifest = stremio.Manifest{
ID: "tv.deflix.stremio-top-movies",
Name: "Top movies",
Description: "Multiple catalogs of top movie lists: IMDb Top 250, IMDb Most Popular, Top Box Office (US), Rotten Tomatoes Certified Fresh Movies, Academy Award for Best Picture, Cannes Film Festival Palme d'Or winners, Venice Film Festival Golden Lion winners, Berlin International Film Festival Golden Bear winners",
ID: "tv.deflix.stremio-film-festivals",
Name: "Film festivals",
Description: "Multiple catalogs of film festival winners: Academy Award for Best Picture, Cannes Film Festival Palme d'Or winners, Venice Film Festival Golden Lion winners, Berlin International Film Festival Golden Bear winners",
Version: version,

ResourceItems: []stremio.ResourceItem{
Expand All @@ -48,26 +48,6 @@ var (
}

catalogs = []stremio.CatalogItem{
{
Type: "movie",
ID: "imdb-top-250",
Name: "IMDb Top Rated (a.k.a. Top 250)",
},
{
Type: "movie",
ID: "imdb-most-popular",
Name: "IMDb Most Popular",
},
{
Type: "movie",
ID: "top-box-office-us",
Name: "Top Box Office (US, last weekend)",
},
{
Type: "movie",
ID: "rt-certified-fresh",
Name: "Rotten Tomatoes Certified Fresh (DVD & Streaming)",
},
{
Type: "movie",
ID: "academy-awards-winners",
Expand Down

0 comments on commit 93b0a06

Please sign in to comment.