Skip to content

Commit

Permalink
Add debug query parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
CorySanin committed Jul 4, 2021
1 parent b5acf79 commit d52a36c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ http.get('/ring/:id', function (req, res) {
});

http.get('/feed/out.xml', async function (req, res) {
if (req.useragent.browser.toLowerCase() == 'zune') {
if (req.useragent.browser.toLowerCase() == 'zune' || (req.query.debug && req.query.debug === 'true')) {
let url = req.query.in;
if (!/^[a-z]+:\/\//.test(url.toLowerCase())) {
url = 'http://' + url;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "patreon-to-zune",
"version": "1.5.1",
"version": "1.5.2",
"description": "converts Patreon podcast feeds for the Zune desktop software",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit d52a36c

Please sign in to comment.