Merge pull request #700 from cyian-1756/zikiTitleFix
Fixed ZikiRipper getAlbumTitle
This commit is contained in:
commit
8f20cbbcf2
@ -49,9 +49,8 @@ public class ZizkiRipper extends AbstractHTMLRipper {
|
|||||||
public String getAlbumTitle(URL url) throws MalformedURLException {
|
public String getAlbumTitle(URL url) throws MalformedURLException {
|
||||||
try {
|
try {
|
||||||
// Attempt to use album title as GID
|
// Attempt to use album title as GID
|
||||||
Element titleElement = getFirstPage().select("meta[name=description]").first();
|
Element titleElement = getFirstPage().select("h1.title").first();
|
||||||
String title = titleElement.attr("content");
|
String title = titleElement.text();
|
||||||
title = title.substring(title.lastIndexOf('/') + 1);
|
|
||||||
|
|
||||||
Element authorSpan = getFirstPage().select("span[class=creator]").first();
|
Element authorSpan = getFirstPage().select("span[class=creator]").first();
|
||||||
String author = authorSpan.select("a").first().text();
|
String author = authorSpan.select("a").first().text();
|
||||||
|
Loading…
Reference in New Issue
Block a user