diff options
author | ByteHamster <info@bytehamster.com> | 2017-04-15 13:48:57 +0200 |
---|---|---|
committer | ByteHamster <info@bytehamster.com> | 2017-04-15 13:49:01 +0200 |
commit | a01f0b1b7ac68e55263e9a2d6d45494425dd56b1 (patch) | |
tree | ec10ccf4d62b01c6ab72e33b79a093f9f198a45d /core | |
parent | 09fc0debf141eee622e46fd1fb5ccb1ad2793bd2 (diff) | |
download | AntennaPod-a01f0b1b7ac68e55263e9a2d6d45494425dd56b1.zip |
Trimming 'pcast:' without '//'
Fixes #2284 (subscribtion through podlove 'Let device decide')
Diffstat (limited to 'core')
-rw-r--r-- | core/src/main/java/de/danoeh/antennapod/core/util/URLChecker.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/core/src/main/java/de/danoeh/antennapod/core/util/URLChecker.java b/core/src/main/java/de/danoeh/antennapod/core/util/URLChecker.java index 415a1d3a2..40faa1dd2 100644 --- a/core/src/main/java/de/danoeh/antennapod/core/util/URLChecker.java +++ b/core/src/main/java/de/danoeh/antennapod/core/util/URLChecker.java @@ -37,6 +37,9 @@ public final class URLChecker { } else if (url.startsWith("pcast://")) { if (BuildConfig.DEBUG) Log.d(TAG, "Removing pcast://"); return prepareURL(url.substring("pcast://".length())); + } else if (url.startsWith("pcast:")) { + if (BuildConfig.DEBUG) Log.d(TAG, "Removing pcast:"); + return prepareURL(url.substring("pcast:".length())); } else if (url.startsWith("itpc")) { if (BuildConfig.DEBUG) Log.d(TAG, "Replacing itpc:// with http://"); return url.replaceFirst("itpc://", "http://"); |