|
15 | 15 | import org.schabi.newpipe.extractor.exceptions.ExtractionException; |
16 | 16 | import org.schabi.newpipe.extractor.exceptions.ParsingException; |
17 | 17 | import org.schabi.newpipe.extractor.exceptions.ReCaptchaException; |
| 18 | +import org.schabi.newpipe.extractor.services.soundcloud.extractors.SoundcloudChannelInfoItemExtractor; |
| 19 | +import org.schabi.newpipe.extractor.services.soundcloud.extractors.SoundcloudStreamExtractor; |
| 20 | +import org.schabi.newpipe.extractor.services.soundcloud.extractors.SoundcloudStreamInfoItemExtractor; |
18 | 21 | import org.schabi.newpipe.extractor.stream.StreamInfoItemsCollector; |
19 | 22 | import org.schabi.newpipe.extractor.utils.Parser; |
20 | 23 | import org.schabi.newpipe.extractor.utils.Parser.RegexException; |
@@ -85,7 +88,7 @@ static boolean checkIfHardcodedClientIdIsValid() { |
85 | 88 | } |
86 | 89 | } |
87 | 90 |
|
88 | | - static Calendar parseDate(String textualUploadDate) throws ParsingException { |
| 91 | + public static Calendar parseDate(String textualUploadDate) throws ParsingException { |
89 | 92 | Date date; |
90 | 93 | try { |
91 | 94 | date = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'").parse(textualUploadDate); |
@@ -255,13 +258,13 @@ public static String getStreamsFromApi(StreamInfoItemsCollector collector, Strin |
255 | 258 | } |
256 | 259 |
|
257 | 260 | @Nonnull |
258 | | - static String getUploaderUrl(JsonObject object) { |
| 261 | + public static String getUploaderUrl(JsonObject object) { |
259 | 262 | String url = object.getObject("user").getString("permalink_url", ""); |
260 | 263 | return replaceHttpWithHttps(url); |
261 | 264 | } |
262 | 265 |
|
263 | 266 | @Nonnull |
264 | | - static String getAvatarUrl(JsonObject object) { |
| 267 | + public static String getAvatarUrl(JsonObject object) { |
265 | 268 | String url = object.getObject("user", new JsonObject()).getString("avatar_url", ""); |
266 | 269 | return replaceHttpWithHttps(url); |
267 | 270 | } |
|
0 commit comments