From 0eaed03fa2bb03f9bd21a4375854001fc924b94c Mon Sep 17 00:00:00 2001 From: Cory Sanin Date: Sat, 10 Jun 2023 01:08:07 -0500 Subject: [PATCH] add donate link sorry --- README.md | 2 +- config/example-config.json | 3 ++- index.js | 5 +++-- package-lock.json | 4 ++-- package.json | 2 +- views/index.ejs | 3 +++ 6 files changed, 12 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 64e58fa..4a8fe43 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,10 @@ # zune-podcasts [![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/CorySanin/zune-podcasts/docker-image.yml)](https://github.com/CorySanin/zune-podcasts/actions) -![Depfu](https://img.shields.io/depfu/dependencies/github/CorySanin/zune-podcasts) [![Docker Pulls](https://img.shields.io/docker/pulls/corysanin/zune-podcasts)](https://hub.docker.com/r/corysanin/zune-podcasts) [![Uptime Robot ratio (30 days)](https://img.shields.io/uptimerobot/ratio/m783478523-948837a9642a7f37514ae9ea)](https://zunepodcasts.net/) [![GitHub repo size](https://img.shields.io/github/repo-size/CorySanin/zune-podcasts)](https://github.com/CorySanin/zune-podcasts) [![Software License](https://img.shields.io/github/license/CorySanin/zune-podcasts)](https://github.com/CorySanin/zune-podcasts/blob/master/LICENSE) +[![Donate](https://img.shields.io/badge/-Donate-blue)](https://ko-fi.com/sanin) (Formerly patreon-to-zune) diff --git a/config/example-config.json b/config/example-config.json index f334dc7..5686afa 100644 --- a/config/example-config.json +++ b/config/example-config.json @@ -10,5 +10,6 @@ "deepproxyurl": false, "logrequestnum": false, "logrequestdomains": false, - "logdir": "./" + "logdir": "./", + "donate": "https://ko-fi.com/sanin" } \ No newline at end of file diff --git a/index.js b/index.js index aca01b3..5a8dfa6 100644 --- a/index.js +++ b/index.js @@ -41,7 +41,8 @@ let config = { deepproxyurl: process.env.DEEPPROXYURL || false, logrequestnum: (process.env.LOGREQUESTNUM || 'false').toLowerCase() === 'true', logrequestdomains: (process.env.LOGREQUESTDOMAINS || 'false').toLowerCase() === 'true', - logdir: './' + logdir: './', + donate: process.env.DONATE || null } /** @@ -148,7 +149,7 @@ async function logDomain(domain) { /** * Given a user agent string, return true if the OS is detected to be EOL - * @param {string} useragent + * @param {string} useragent */ function nonsupported(useragent) { for (var i = 0; i < unsupportedAgents.length; i++) { diff --git a/package-lock.json b/package-lock.json index ef55722..487d94a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "zune-podcasts", - "version": "1.6.0", + "version": "1.6.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "zune-podcasts", - "version": "1.6.0", + "version": "1.6.1", "license": "MIT", "dependencies": { "atob": "2.1.2", diff --git a/package.json b/package.json index f726714..5867e44 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "zune-podcasts", - "version": "1.6.0", + "version": "1.6.1", "description": "corrects problematic podcast feeds for the Zune desktop software", "main": "index.js", "scripts": { diff --git a/views/index.ejs b/views/index.ejs index c087905..484e223 100644 --- a/views/index.ejs +++ b/views/index.ejs @@ -23,6 +23,9 @@ Ring Generator Fork on GitHub Report Issue + <% if (config.donate) { %> + Donate + <% } %> <% if (config.deepproxyurl && nonsupported) { %>