+
+
+
+
+
\ No newline at end of file
diff --git a/NUXT/components/gridRenderers/gridVideoRenderer.vue b/NUXT/components/gridRenderers/gridVideoRenderer.vue
index 6c24581..ee99726 100644
--- a/NUXT/components/gridRenderers/gridVideoRenderer.vue
+++ b/NUXT/components/gridRenderers/gridVideoRenderer.vue
@@ -137,9 +137,5 @@ export default {
return bottomText.join(" ยท ");
},
},
-
- mounted() {
- console.log("gridVideoRenderer received: ", this.video);
- },
};
diff --git a/NUXT/layouts/default.vue b/NUXT/layouts/default.vue
index b6438d7..ae0cdc3 100644
--- a/NUXT/layouts/default.vue
+++ b/NUXT/layouts/default.vue
@@ -128,6 +128,7 @@ export default {
methods: {
textChanged(text) {
+ if (text.length <= 0) this.response = []; // No text found, no point in calling API
this.$youtube.autoComplete(text, (res) => {
const data = res.replace(/^.*?\(/, "").replace(/\)$/, ""); //Format Response
this.response = JSON.parse(data)[1];
diff --git a/NUXT/pages/home.vue b/NUXT/pages/home.vue
index 295251c..d6bd426 100644
--- a/NUXT/pages/home.vue
+++ b/NUXT/pages/home.vue
@@ -32,7 +32,7 @@ export default {
// The following code is only a demo for debugging purposes, note that each "shelfRenderer" has a "title" value that seems to align to the categories at the top of the vanilla yt app
mounted() {
- if (!this.recommends.length) {
+ if (!this.recommends.items || !this.recommends.items.length) {
this.$youtube
.recommend()
.then((result) => {
diff --git a/NUXT/pages/watch.vue b/NUXT/pages/watch.vue
index 3a92c9d..49c8ec5 100644
--- a/NUXT/pages/watch.vue
+++ b/NUXT/pages/watch.vue
@@ -1,6 +1,14 @@