Merge pull request #2299 from ByteHamster/fix-podlove

Trimming 'pcast:' without '//'
This commit is contained in:
Martin Fietz 2017-04-15 14:24:16 +02:00 committed by GitHub
commit d6b67b5969
1 changed files with 3 additions and 0 deletions

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