From f5e892b8624c54740eb9ee6230b00e6c926da2ab Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Rasmus=20Kr=C3=A4mer?= <git@rfk.io>
Date: Tue, 12 Apr 2022 13:57:45 +0200
Subject: [PATCH 1/2] allow connections from the mobile app while running in
 dev env

---
 client/nuxt.config.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/client/nuxt.config.js b/client/nuxt.config.js
index 2a583388..410218f8 100644
--- a/client/nuxt.config.js
+++ b/client/nuxt.config.js
@@ -136,6 +136,6 @@ module.exports = {
   },
   server: {
     port: process.env.NODE_ENV === 'production' ? 80 : 3000,
-    host: process.env.NODE_ENV === 'production' ? '0.0.0.0' : 'localhost'
+    host: '0.0.0.0'
   }
 }

From ab895fa8ed219cc028a1ec29aa205efb67618682 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Rasmus=20Kr=C3=A4mer?= <git@rfk.io>
Date: Tue, 12 Apr 2022 14:05:24 +0200
Subject: [PATCH 2/2] Filter all episodes when selecting all

---
 client/components/modals/podcast/EpisodeFeed.vue | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/client/components/modals/podcast/EpisodeFeed.vue b/client/components/modals/podcast/EpisodeFeed.vue
index 508409cd..e4a23678 100644
--- a/client/components/modals/podcast/EpisodeFeed.vue
+++ b/client/components/modals/podcast/EpisodeFeed.vue
@@ -81,7 +81,7 @@ export default {
     },
     selectAll: {
       get() {
-        return this.episodesSelected.length == this.episodes.length
+        return this.episodesSelected.length == this.episodes.filter((_, index) => !(this.episodes[index].enclosure && this.itemEpisodeMap[this.episodes[index].enclosure.url])).length
       },
       set(val) {
         for (const key in this.selectedEpisodes) {