diff --git a/extractor/src/main/java/org/schabi/newpipe/extractor/ServiceList.java b/extractor/src/main/java/org/schabi/newpipe/extractor/ServiceList.java index a916e9933..6be1cea40 100644 --- a/extractor/src/main/java/org/schabi/newpipe/extractor/ServiceList.java +++ b/extractor/src/main/java/org/schabi/newpipe/extractor/ServiceList.java @@ -37,8 +37,8 @@ public final class ServiceList { public static final YoutubeService YouTube; public static final SoundcloudService SoundCloud; - public static final PeertubeService PeerTube; public static final MediaCCCService MediaCCC; + public static final PeertubeService PeerTube; /** * When creating a new service, put this service in the end of this list, @@ -48,8 +48,8 @@ public final class ServiceList { Arrays.asList( YouTube = new YoutubeService(0), SoundCloud = new SoundcloudService(1), - PeerTube = new PeertubeService(2), - MediaCCC = new MediaCCCService(3) + MediaCCC = new MediaCCCService(2), + PeerTube = new PeertubeService(3) )); /** diff --git a/extractor/src/test/java/org/schabi/newpipe/extractor/services/media_ccc/MediaCCCSearchExtractorEventsTest.java b/extractor/src/test/java/org/schabi/newpipe/extractor/services/media_ccc/MediaCCCSearchExtractorEventsTest.java index 81e8ed980..11b1fbdfb 100644 --- a/extractor/src/test/java/org/schabi/newpipe/extractor/services/media_ccc/MediaCCCSearchExtractorEventsTest.java +++ b/extractor/src/test/java/org/schabi/newpipe/extractor/services/media_ccc/MediaCCCSearchExtractorEventsTest.java @@ -44,7 +44,7 @@ public class MediaCCCSearchExtractorEventsTest { @Test public void testServiceId() throws Exception { - assertEquals(3, extractor.getServiceId()); + assertEquals(2, extractor.getServiceId()); } @Test