diff options
author | daniel oeh <daniel.oeh@gmail.com> | 2014-06-15 21:22:36 +0200 |
---|---|---|
committer | daniel oeh <daniel.oeh@gmail.com> | 2014-06-15 21:22:36 +0200 |
commit | 859eabb7a302d79948ca9da4ceb886908932482a (patch) | |
tree | 7e5f10705a94b63f630d58de687086105d71fba7 /src/de/danoeh | |
parent | a2757866402f01c6683d0ba17cf19e3e7d158fbe (diff) | |
download | AntennaPod-859eabb7a302d79948ca9da4ceb886908932482a.zip |
Added support for itpc-protocol. closes #333
Diffstat (limited to 'src/de/danoeh')
-rw-r--r-- | src/de/danoeh/antennapod/util/URLChecker.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/de/danoeh/antennapod/util/URLChecker.java b/src/de/danoeh/antennapod/util/URLChecker.java index eb522ffa8..af0226ce0 100644 --- a/src/de/danoeh/antennapod/util/URLChecker.java +++ b/src/de/danoeh/antennapod/util/URLChecker.java @@ -33,6 +33,9 @@ public final class URLChecker { } else if (url.startsWith("pcast://")) { if (BuildConfig.DEBUG) Log.d(TAG, "Replacing pcast:// with http://"); url = url.replaceFirst("pcast://", "http://"); + } else if (url.startsWith("itpc")) { + if (BuildConfig.DEBUG) Log.d(TAG, "Replacing itpc:// with http://"); + url = url.replaceFirst("itpc://", "http://"); } else if (!(url.startsWith("http://") || url.startsWith("https://"))) { if (BuildConfig.DEBUG) Log.d(TAG, "Adding http:// at the beginning of the URL"); builder.append("http://"); |