Skip to content

Commit

Permalink
add donate link
Browse files Browse the repository at this point in the history
sorry
  • Loading branch information
CorySanin committed Jun 10, 2023
1 parent 80886f3 commit 0eaed03
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -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)

Expand Down
3 changes: 2 additions & 1 deletion config/example-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@
"deepproxyurl": false,
"logrequestnum": false,
"logrequestdomains": false,
"logdir": "./"
"logdir": "./",
"donate": "https://ko-fi.com/sanin"
}
5 changes: 3 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

/**
Expand Down Expand Up @@ -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++) {
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
3 changes: 3 additions & 0 deletions views/index.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
<a href="/ring/EA7">Ring&nbsp;Generator</a>
<a href="https://github.com/CorySanin/zune-podcasts">Fork&nbsp;on&nbsp;GitHub</a>
<a href="https://github.com/CorySanin/zune-podcasts/issues/new">Report&nbsp;Issue</a>
<% if (config.donate) { %>
<a href="<%= config.donate %>">Donate</a>
<% } %>
</div>
<% if (config.deepproxyurl && nonsupported) { %>
<span class="tooltip panel">
Expand Down

0 comments on commit 0eaed03

Please sign in to comment.