From a01f0b1b7ac68e55263e9a2d6d45494425dd56b1 Mon Sep 17 00:00:00 2001 From: ByteHamster Date: Sat, 15 Apr 2017 13:48:57 +0200 Subject: [PATCH] Trimming 'pcast:' without '//' Fixes #2284 (subscribtion through podlove 'Let device decide') --- .../main/java/de/danoeh/antennapod/core/util/URLChecker.java | 3 +++ 1 file changed, 3 insertions(+) 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://");