From 2a24d407d521cc2daf7d7366a89e5f17b92a8333 Mon Sep 17 00:00:00 2001 From: AudricV <74829229+AudricV@users.noreply.github.com> Date: Sun, 29 Jan 2023 01:00:49 +0100 Subject: [PATCH] [SoundCloud] Fix extraction of tracks like count SoundCloud is using likes_count to return the like count of a track, like it was the case before they switched to favoritings_count. --- .../soundcloud/extractors/SoundcloudStreamExtractor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extractor/src/main/java/org/schabi/newpipe/extractor/services/soundcloud/extractors/SoundcloudStreamExtractor.java b/extractor/src/main/java/org/schabi/newpipe/extractor/services/soundcloud/extractors/SoundcloudStreamExtractor.java index 150aaf8e..22d4d4be 100644 --- a/extractor/src/main/java/org/schabi/newpipe/extractor/services/soundcloud/extractors/SoundcloudStreamExtractor.java +++ b/extractor/src/main/java/org/schabi/newpipe/extractor/services/soundcloud/extractors/SoundcloudStreamExtractor.java @@ -133,7 +133,7 @@ public class SoundcloudStreamExtractor extends StreamExtractor { @Override public long getLikeCount() { - return track.getLong("favoritings_count", -1); + return track.getLong("likes_count", -1); } @Nonnull