From fbd0770656e27ce30f400018801f76b97ada46ff Mon Sep 17 00:00:00 2001 From: trueChazza Date: Mon, 27 Feb 2023 16:25:04 +1300 Subject: [PATCH 1/9] refactor: change test button color --- lib/media_server_web/components/header_home.ex | 6 +++--- lib/media_server_web/live/movies_live/show.html.heex | 2 +- lib/media_server_web/live/seasons_live/show.html.heex | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/media_server_web/components/header_home.ex b/lib/media_server_web/components/header_home.ex index 6736bd07..a12d458d 100644 --- a/lib/media_server_web/components/header_home.ex +++ b/lib/media_server_web/components/header_home.ex @@ -74,7 +74,7 @@ defmodule MediaServerWeb.Components.HeaderHome do Play <% end %> - <%= 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 %> + <%= 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 %> - Test + Test <% end %> - <%= 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 %> + <%= 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 %> - <%= 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 %> + <%= 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 %> Play <% end %> - <%= 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 %> + <%= 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 %> - <.form :let={f} id="playlists-form" for={:playlists} phx-submit="save"> + <.form :let={f} id="playlists-form" for={%{}} as={:playlists} phx-submit="save"> <%= text_input(f, :name, placeholder: "New playlist", class: From 327eac70ca095f79e60a3271c6a0edbffd1851f6 Mon Sep 17 00:00:00 2001 From: trueChazza Date: Tue, 28 Feb 2023 16:08:44 +1300 Subject: [PATCH 6/9] docs: update README --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index d25e03e9..24d1e09b 100644 --- a/README.md +++ b/README.md @@ -43,15 +43,15 @@ This is a lightweight (albeit companion) media server to the likes of Radarr and 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 **you** and **your** users to enjoy. -While other media solutions look to re-index, re-fetch and re-double handle your media library, **Midarr** simply levarages your pre-existing -services to delight and enchant **you** and **your** users' media experience. +While other media solutions look to re-index, re-fetch and re-double handle your media library, **Midarr** simply leverages your pre-existing +services to delight and enchant **your** media experience. ![Preview](priv/screenshots/ecosystem-v2.0.0.jpg) ### How is this lightweight? -* **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. -* **No media transcoding.** Nope, none whatsoever. Your media is served fresh off the metal. +* **Direct streaming.** Your media is served fresh off the metal (*An experimental transcoder is also available*). +* **Smart caching.** Your metadata is retrieved fresh off the metal, smartly kept in sync with your integrations. * **No media editing.** We trust you already have it the way you like it, lets keep it that way. ### What does this do? @@ -108,8 +108,8 @@ services: ### Integrations -* Supports Radarr - `v4.1` -* Supports Sonarr - `v3.0` +* Supports Radarr `v4.x` +* Supports Sonarr `v3.x` On server startup **Midarr** attempts to auto configure your integrations by: From b40a23b3fd2c50ac01046b37c6b2a7b196a75a39 Mon Sep 17 00:00:00 2001 From: trueChazza Date: Tue, 28 Feb 2023 16:14:03 +1300 Subject: [PATCH 7/9] ci: add tag --- .github/workflows/tag.yml | 46 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 .github/workflows/tag.yml diff --git a/.github/workflows/tag.yml b/.github/workflows/tag.yml new file mode 100644 index 00000000..b76ed2f3 --- /dev/null +++ b/.github/workflows/tag.yml @@ -0,0 +1,46 @@ +name: Tag + +on: + push: + tags: + - 'v2.1.0' + +jobs: + docker: + runs-on: ubuntu-latest + steps: + - name: Set env + run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV + + - name: Set up QEMU + uses: docker/setup-qemu-action@v2 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v2 + + - name: Login to GitHub Container Registry + uses: docker/login-action@v1 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.PAT }} + + - name: Build tag + uses: docker/build-push-action@v3 + with: + platforms: linux/amd64,linux/arm64 + push: true + tags: ghcr.io/midarrlabs/midarr-server:${{ env.RELEASE_VERSION }} + build-args: | + "MIX_ENV=prod" + "SECRET_KEY_BASE=${{ secrets.SECRET_KEY_BASE }}" + + - name: Build latest + uses: docker/build-push-action@v3 + with: + platforms: linux/amd64,linux/arm64 + push: true + tags: ghcr.io/midarrlabs/midarr-server:latest + build-args: | + "MIX_ENV=prod" + "SECRET_KEY_BASE=${{ secrets.SECRET_KEY_BASE }}" \ No newline at end of file From 4aab86cc83c96fb462ac2b1adc72bbe64efd3d6c Mon Sep 17 00:00:00 2001 From: trueChazza Date: Tue, 28 Feb 2023 16:14:14 +1300 Subject: [PATCH 8/9] ci: update beta --- .github/workflows/beta.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/beta.yml b/.github/workflows/beta.yml index 424df019..1606429b 100644 --- a/.github/workflows/beta.yml +++ b/.github/workflows/beta.yml @@ -25,9 +25,8 @@ jobs: username: ${{ github.actor }} password: ${{ secrets.PAT }} - - name: Build tag push - id: docker_build - uses: docker/build-push-action@v2 + - name: Build tag + uses: docker/build-push-action@v3 with: platforms: linux/amd64,linux/arm64 push: true From 7da8206c1c4a5698e2ff5ede490a67a8539f3efb Mon Sep 17 00:00:00 2001 From: trueChazza Date: Tue, 28 Feb 2023 16:25:16 +1300 Subject: [PATCH 9/9] docs: update README --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 24d1e09b..84af1a3a 100644 --- a/README.md +++ b/README.md @@ -50,7 +50,7 @@ services to delight and enchant **your** media experience. ### How is this lightweight? -* **Direct streaming.** Your media is served fresh off the metal (*An experimental transcoder is also available*). +* **Direct streaming.** Your media is served fresh off the metal (*an experimental transcoder is available*). * **Smart caching.** Your metadata is retrieved fresh off the metal, smartly kept in sync with your integrations. * **No media editing.** We trust you already have it the way you like it, lets keep it that way.