[SoundCloud] Remove trailing , in playlist page urls

This commit is contained in:
Stypox 2020-03-17 20:36:59 +01:00
parent ae47c9587c
commit c505d4e2b7
No known key found for this signature in database
GPG Key ID: 4BDF1B40A49FDD23
1 changed files with 2 additions and 1 deletions

View File

@ -141,8 +141,9 @@ public class SoundcloudPlaylistExtractor extends PlaylistExtractor {
}
}
nextPageUrlBuilder.setLength(nextPageUrlBuilder.length() - 1); // remove trailing ,
nextPageUrl = nextPageUrlBuilder.toString();
if (nextPageUrl.endsWith("&ids=")) {
if (nextPageUrl.endsWith("&ids")) {
// there are no other videos
nextPageUrl = "";
}