We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a58bae5 commit abef050Copy full SHA for abef050
src/services/tools.ts
@@ -3,7 +3,9 @@ import { errorLogger } from '../lib/logger'
3
import { request } from './request'
4
5
const forceSecureRedirectDomains = {
6
- 'feeds.gty.org': true
+ 'feeds.gty.org': true,
7
+ // we've found pdst.fm mp3s to use up to 6 redirects, which causes errors with Android downloads
8
+ 'pdst.fm': true
9
}
10
11
export const getSecureUrl = async (mediaUrl: string) => {
@@ -21,7 +23,7 @@ export const getSecureUrl = async (mediaUrl: string) => {
21
23
const secureUrlInfo = response?.data || {}
22
24
const { secureUrl } = secureUrlInfo
25
- if (secureUrl) {
26
+ if (secureUrl?.startsWith('https://')) {
27
finalUrl = secureUrl
28
29
} else if (mediaUrl.indexOf('http://') >= 0) {
0 commit comments