Skip to content

Commit 59b0ee0

Browse files
authored
Merge pull request #288 from midarrlabs/feature/v2.1.0
v2.1.0
2 parents 0ad792f + 7da8206 commit 59b0ee0

File tree

11 files changed

+67
-21
lines changed

11 files changed

+67
-21
lines changed

.github/workflows/beta.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,8 @@ jobs:
2525
username: ${{ github.actor }}
2626
password: ${{ secrets.PAT }}
2727

28-
- name: Build tag push
29-
id: docker_build
30-
uses: docker/build-push-action@v2
28+
- name: Build tag
29+
uses: docker/build-push-action@v3
3130
with:
3231
platforms: linux/amd64,linux/arm64
3332
push: true

.github/workflows/tag.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Tag
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v2.1.0'
7+
8+
jobs:
9+
docker:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Set env
13+
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
14+
15+
- name: Set up QEMU
16+
uses: docker/setup-qemu-action@v2
17+
18+
- name: Set up Docker Buildx
19+
uses: docker/setup-buildx-action@v2
20+
21+
- name: Login to GitHub Container Registry
22+
uses: docker/login-action@v1
23+
with:
24+
registry: ghcr.io
25+
username: ${{ github.actor }}
26+
password: ${{ secrets.PAT }}
27+
28+
- name: Build tag
29+
uses: docker/build-push-action@v3
30+
with:
31+
platforms: linux/amd64,linux/arm64
32+
push: true
33+
tags: ghcr.io/midarrlabs/midarr-server:${{ env.RELEASE_VERSION }}
34+
build-args: |
35+
"MIX_ENV=prod"
36+
"SECRET_KEY_BASE=${{ secrets.SECRET_KEY_BASE }}"
37+
38+
- name: Build latest
39+
uses: docker/build-push-action@v3
40+
with:
41+
platforms: linux/amd64,linux/arm64
42+
push: true
43+
tags: ghcr.io/midarrlabs/midarr-server:latest
44+
build-args: |
45+
"MIX_ENV=prod"
46+
"SECRET_KEY_BASE=${{ secrets.SECRET_KEY_BASE }}"

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,15 @@ This is a lightweight (albeit companion) media server to the likes of Radarr and
4343
Your media is left untouched and unscathed as it is served through a simple (yet familiar) web interface that puts your media front and center for
4444
**you** and **your** users to enjoy.
4545

46-
While other media solutions look to re-index, re-fetch and re-double handle your media library, **Midarr** simply levarages your pre-existing
47-
services to delight and enchant **you** and **your** users' media experience.
46+
While other media solutions look to re-index, re-fetch and re-double handle your media library, **Midarr** simply leverages your pre-existing
47+
services to delight and enchant **your** media experience.
4848

4949
![Preview](priv/screenshots/ecosystem-v2.0.0.jpg)
5050

5151
### How is this lightweight?
5252

53-
* **No media indexing.** All the metadata needed is already on your server. **Midarr** never goes out looking for more, everything we need you already have.
54-
* **No media transcoding.** Nope, none whatsoever. Your media is served fresh off the metal.
53+
* **Direct streaming.** Your media is served fresh off the metal (*an experimental transcoder is available*).
54+
* **Smart caching.** Your metadata is retrieved fresh off the metal, smartly kept in sync with your integrations.
5555
* **No media editing.** We trust you already have it the way you like it, lets keep it that way.
5656

5757
### What does this do?
@@ -108,8 +108,8 @@ services:
108108
109109
### Integrations
110110
111-
* Supports Radarr - `v4.1`
112-
* Supports Sonarr - `v3.0`
111+
* Supports Radarr `v4.x`
112+
* Supports Sonarr `v3.x`
113113

114114
On server startup **Midarr** attempts to auto configure your integrations by:
115115

lib/media_server_web.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ defmodule MediaServerWeb do
4545
def live_view do
4646
quote do
4747
use Phoenix.LiveView,
48-
layout: {MediaServerWeb.LayoutView, "live.html"}
48+
layout: {MediaServerWeb.LayoutView, :live}
4949

5050
unquote(view_helpers())
5151
end

lib/media_server_web/components/header_home.ex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ defmodule MediaServerWeb.Components.HeaderHome do
7474
Play
7575
<% end %>
7676
77-
<%= live_redirect to: MediaServerWeb.Router.Helpers.segment_movie_show_path(@socket, :show, Enum.at(@movies, 0)["id"]), class: "inline-flex items-center justify-center px-4 py-2 border border-transparent rounded-md shadow-sm text-sm font-medium text-white bg-red-600 hover:bg-red-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-red-500" do %>
77+
<%= live_redirect to: MediaServerWeb.Router.Helpers.segment_movie_show_path(@socket, :show, Enum.at(@movies, 0)["id"]), class: "inline-flex items-center justify-center px-4 py-2 border border-transparent rounded-md shadow-sm text-sm font-medium text-gray-700 bg-white hover:bg-gray-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-slate-500" do %>
7878
<svg
7979
class="-ml-0.5 mr-2 h-6 w-6"
8080
xmlns="http://www.w3.org/2000/svg"
@@ -90,10 +90,10 @@ defmodule MediaServerWeb.Components.HeaderHome do
9090
d="M5.25 5.653c0-.856.917-1.398 1.667-.986l11.54 6.348a1.125 1.125 0 010 1.971l-11.54 6.347a1.125 1.125 0 01-1.667-.985V5.653z"
9191
/>
9292
</svg>
93-
Test
93+
Test
9494
<% end %>
9595
96-
<%= live_redirect to: MediaServerWeb.Router.Helpers.movies_show_path(@socket, :show, Enum.at(@movies, 0)["id"]), class: "inline-flex items-center justify-center px-4 py-2 border border-gray-300 shadow-sm text-sm font-medium rounded-md text-gray-700 bg-white hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-slate-500" do %>
96+
<%= live_redirect to: MediaServerWeb.Router.Helpers.movies_show_path(@socket, :show, Enum.at(@movies, 0)["id"]), class: "inline-flex items-center justify-center px-4 py-2 border border-gray-300 shadow-sm text-sm font-medium rounded-md text-gray-700 bg-white hover:bg-gray-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-slate-500" do %>
9797
<svg
9898
xmlns="http://www.w3.org/2000/svg"
9999
class="-ml-0.5 mr-2 h-6 w-6"

lib/media_server_web/components/nav_component.html.heex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@
161161
clip-rule="evenodd"
162162
/>
163163
</svg>
164-
<.form :let={f} for={:search} id="search" phx-target={@myself} phx-submit="search">
164+
<.form :let={f} for={%{}} as={:search} id="search" phx-target={@myself} phx-submit="search">
165165
<%= text_input(f, :query,
166166
placeholder: "Search...",
167167
class:

lib/media_server_web/live/movies_live/show.html.heex

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
Play
6565
<% end %>
6666

67-
<%= live_redirect to: Routes.segment_movie_show_path(@socket, :show, @movie["id"]), class: "inline-flex items-center justify-center px-4 py-2 border border-transparent rounded-md shadow-sm text-sm font-medium text-white bg-red-600 hover:bg-red-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-red-500" do %>
67+
<%= live_redirect to: Routes.segment_movie_show_path(@socket, :show, @movie["id"]), class: "inline-flex items-center justify-center px-4 py-2 border border-transparent rounded-md shadow-sm text-sm font-medium text-gray-700 bg-white hover:bg-gray-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-slate-500" do %>
6868
<svg
6969
class="-ml-0.5 mr-2 h-6 w-6"
7070
xmlns="http://www.w3.org/2000/svg"
@@ -86,7 +86,7 @@
8686
<button
8787
id="add-to-playlists"
8888
phx-click={JS.toggle(to: "#playlists")}
89-
class="inline-flex items-center justify-center px-4 py-2 border border-gray-300 shadow-sm text-sm font-medium rounded-md text-gray-700 bg-white hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-slate-500"
89+
class="inline-flex items-center justify-center px-4 py-2 border border-gray-300 shadow-sm text-sm font-medium rounded-md text-gray-700 bg-white hover:bg-gray-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-slate-500"
9090
>
9191
<svg
9292
class="-ml-0.5 mr-2 h-6 w-6"
@@ -124,7 +124,8 @@
124124
<.form
125125
:let={f}
126126
id="playlists-form"
127-
for={:playlists}
127+
for={%{}}
128+
as={:playlists}
128129
phx-change="save"
129130
class="divide-y divide-gray-200"
130131
>

lib/media_server_web/live/playlist_live/index.html.heex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
>
6565
<path stroke-linecap="round" stroke-linejoin="round" d="M12 4.5v15m7.5-7.5h-15" />
6666
</svg>
67-
<.form :let={f} id="playlists-form" for={:playlists} phx-submit="save">
67+
<.form :let={f} id="playlists-form" for={%{}} as={:playlists} phx-submit="save">
6868
<%= text_input(f, :name,
6969
placeholder: "New playlist",
7070
class:

lib/media_server_web/live/seasons_live/show.html.heex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
<span class="ml-3">Play</span>
5151
<% end %>
5252

53-
<%= live_redirect id: "test-#{ item["id"] }", to: Routes.segment_episode_show_path(@socket, :show, item["id"]), class: "flex items-center text-sm font-bold leading-6 text-red-700 hover:text-red-500" do %>
53+
<%= live_redirect id: "test-#{ item["id"] }", to: Routes.segment_episode_show_path(@socket, :show, item["id"]), class: "flex items-center text-sm font-bold leading-6 text-slate-700 hover:text-slate-500" do %>
5454
<svg
5555
aria-hidden="true"
5656
viewBox="0 0 10 10"

mix.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ defmodule MediaServer.MixProject do
5757
{:cors_plug, "~> 3.0"},
5858
{:scrivener, "~> 2.0"},
5959
{:extitles, "~> 0.1.0"},
60-
{:exstream, "~> 0.15.0"}
60+
{:exstream, "~> 0.16.0"}
6161
]
6262
end
6363

0 commit comments

Comments
 (0)