@@ -27,18 +27,18 @@ public class SoundcloudChannelExtractor extends ChannelExtractor {
2727 private String userId ;
2828 private JsonObject user ;
2929
30- public SoundcloudChannelExtractor (StreamingService service , ListLinkHandler linkHandler ) {
30+ public SoundcloudChannelExtractor (final StreamingService service , final ListLinkHandler linkHandler ) {
3131 super (service , linkHandler );
3232 }
3333
3434 @ Override
35- public void onFetchPage (@ Nonnull Downloader downloader ) throws IOException , ExtractionException {
35+ public void onFetchPage (@ Nonnull final Downloader downloader ) throws IOException , ExtractionException {
3636
3737 userId = getLinkHandler ().getId ();
38- String apiUrl = "https://api-v2.soundcloud.com/users/" + userId +
38+ final String apiUrl = "https://api-v2.soundcloud.com/users/" + userId +
3939 "?client_id=" + SoundcloudParsingHelper .clientId ();
4040
41- String response = downloader .get (apiUrl , getExtractorLocalization ()).responseBody ();
41+ final String response = downloader .get (apiUrl , getExtractorLocalization ()).responseBody ();
4242 try {
4343 user = JsonParser .object ().from (response );
4444 } catch (JsonParserException e ) {
@@ -84,32 +84,32 @@ public String getDescription() {
8484 }
8585
8686 @ Override
87- public String getParentChannelName () throws ParsingException {
87+ public String getParentChannelName () {
8888 return "" ;
8989 }
9090
9191 @ Override
92- public String getParentChannelUrl () throws ParsingException {
92+ public String getParentChannelUrl () {
9393 return "" ;
9494 }
9595
9696 @ Override
97- public String getParentChannelAvatarUrl () throws ParsingException {
97+ public String getParentChannelAvatarUrl () {
9898 return "" ;
9999 }
100100
101101 @ Nonnull
102102 @ Override
103103 public InfoItemsPage <StreamInfoItem > getInitialPage () throws ExtractionException {
104104 try {
105- StreamInfoItemsCollector streamInfoItemsCollector = new StreamInfoItemsCollector (getServiceId ());
105+ final StreamInfoItemsCollector streamInfoItemsCollector = new StreamInfoItemsCollector (getServiceId ());
106106
107- String apiUrl = "https://api-v2.soundcloud.com/users/" + getId () + "/tracks"
107+ final String apiUrl = "https://api-v2.soundcloud.com/users/" + getId () + "/tracks"
108108 + "?client_id=" + SoundcloudParsingHelper .clientId ()
109109 + "&limit=20"
110110 + "&linked_partitioning=1" ;
111111
112- String nextPageUrl = SoundcloudParsingHelper .getStreamsFromApiMinItems (15 , streamInfoItemsCollector , apiUrl );
112+ final String nextPageUrl = SoundcloudParsingHelper .getStreamsFromApiMinItems (15 , streamInfoItemsCollector , apiUrl );
113113
114114 return new InfoItemsPage <>(streamInfoItemsCollector , new Page (nextPageUrl ));
115115 } catch (Exception e ) {
@@ -123,8 +123,8 @@ public InfoItemsPage<StreamInfoItem> getPage(final Page page) throws IOException
123123 throw new IllegalArgumentException ("Page doesn't contain an URL" );
124124 }
125125
126- StreamInfoItemsCollector collector = new StreamInfoItemsCollector (getServiceId ());
127- String nextPageUrl = SoundcloudParsingHelper .getStreamsFromApiMinItems (15 , collector , page .getUrl ());
126+ final StreamInfoItemsCollector collector = new StreamInfoItemsCollector (getServiceId ());
127+ final String nextPageUrl = SoundcloudParsingHelper .getStreamsFromApiMinItems (15 , collector , page .getUrl ());
128128
129129 return new InfoItemsPage <>(collector , new Page (nextPageUrl ));
130130 }
0 commit comments