jnfilter @ e7cf0dc1edfcf974286c49440dcc149338cf4e84

feat: Add option to change feed's metadata
diff --git a/main.go b/main.go
index 728d32c4aa9d163391703880265af9a970019a74..f6a2a13dffb33810cbf55aea8bc4a7a326260d79 100644
--- a/main.go
+++ b/main.go
@@ -254,7 +254,8 @@ 		return err
 	}
 
 	series := getSeries(r)
-	filterdXML, err := filterBySeries(series, xml, true)
+	temper := r.URL.Query().Get("tag") == "true"
+	filterdXML, err := filterBySeries(series, xml, temper)
 	if err != nil {
 		return err
 	}
diff --git a/static/index.html b/static/index.html
index 25341fe7617bd568b168e24d97365c8930cdaed8..266aff6cfd7443c6bac79513b2b82155a3927c1b 100644
--- a/static/index.html
+++ b/static/index.html
@@ -108,7 +108,7 @@   padding-left: 5px;
 }
 
 main {
-    width: 40%;
+    width: 50%;
     margin: 0 auto;
 }
 
@@ -181,6 +181,18 @@             </div>
             <div class="section">
                 <input class="form-ctl" type="checkbox" onchange="updateList(this)" id="parceiro" /><a>Papo de Parceiro</a>
             </div>
+            <hr/>
+            <div class="section">
+                <input class="form-ctl" type="checkbox" onchange="updateTag(this)" />
+                <a>Mudar metadata</a>
+            </div>
+            <div class="section">
+                <p> Caso você use um agregador que gerencie o feed para você
+                (como pocketcast), talvez você precise habilitar esta opção para
+                mudar o metadata do feed, fazendo assim com que ele seja
+                reconhecido como um feed único.
+                </p>
+            </div>
             <div class="section">
                 <a id="feedUrl" href="https://jnfilter.gabrielgio.me?q=mamicas" type="textbox">https://jnfilter.gabrielgio.me</a>
             </div>
@@ -188,6 +200,7 @@         </main>
         <script>
 var feedUrl = document.getElementById("feedUrl")
 var fields = new Set()
+var tag = false 
 
 function updateFeedUrl() {
     if (fields.size == 0) {
@@ -195,6 +208,15 @@         url = "https://jnfilter.gabrielgio.me"
     } else {
         url = "https://jnfilter.gabrielgio.me?q="+[...fields].join(',')
     }
+
+    if (tag) {
+        if (fields.size == 0) {
+            url += "?tag=true"
+        } else {
+            url += "&tag=true"
+        }
+    }
+
     feedUrl.textContent = url
     feedUrl.href = url
 }
@@ -205,6 +227,11 @@         fields.add(elem.id)
     } else {
         fields.delete(elem.id)
     }
+    updateFeedUrl()
+}
+
+function updateTag(elem) {
+    tag = elem.checked
     updateFeedUrl()
 }
         </script>