Trimming 'pcast:' without '//'

Fixes #2284 (subscribtion through podlove 'Let device decide')
This commit is contained in:
ByteHamster 2017-04-15 13:48:57 +02:00
parent 09fc0debf1
commit a01f0b1b7a

View File

@ -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://");