mirror of
https://github.com/TeamNewPipe/NewPipeExtractor.git
synced 2024-12-15 06:40:33 +05:30
Fix search error with some playlists
Somtimes there were two divs with class "yt-lockup-meta", so the extractor couldn't get the correct one.
This commit is contained in:
parent
5f65788a2f
commit
d4e975e4fa
@ -49,10 +49,11 @@ public class YoutubePlaylistInfoItemExtractor implements PlaylistInfoItemExtract
|
|||||||
@Override
|
@Override
|
||||||
public String getUrl() throws ParsingException {
|
public String getUrl() throws ParsingException {
|
||||||
try {
|
try {
|
||||||
final Element div = el.select("div[class=\"yt-lockup-meta\"]").first();
|
final Element a = el.select("div[class=\"yt-lockup-meta\"]")
|
||||||
|
.select("ul[class=\"yt-lockup-meta-info\"]")
|
||||||
|
.select("li").select("a").first();
|
||||||
|
|
||||||
if(div != null) {
|
if(a != null) {
|
||||||
final Element a = div.select("a").first();
|
|
||||||
return a.attr("abs:href");
|
return a.attr("abs:href");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user