Skip to content

Commit

Permalink
Added support for sister site(manganelo)
Browse files Browse the repository at this point in the history
  • Loading branch information
BilawalAhmed0900 committed Mar 9, 2019
1 parent ddcbc0b commit a045b81
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/com/bilawalahmed0900/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ static String getName(String html_source)
throws RuntimeException
{
String mangaName;
String patternStringForTitle = "<title>(.+?) Manga - Mangakakalot.com</title>";
String patternStringForTitle = "<span itemprop=\"title\">(.+?)</span>";

Pattern patternTitle = Pattern.compile(patternStringForTitle);
Matcher matcherTitle = patternTitle.matcher(html_source);
Expand Down Expand Up @@ -154,14 +154,15 @@ String getMangaName()

public class Main
{
private static String DOMAIN_NAME = "mangakakalot.com";
private static String DOMAIN_NAME_1 = "mangakakalot.com";
private static String DOMAIN_NAME_2 = "manganelo.com";

public static void main(String[] args)
throws MalformedURLException, IOException, RuntimeException
{
for(String arg: args)
{
if (arg.contains(DOMAIN_NAME))
if (arg.contains(DOMAIN_NAME_1) || arg.contains(DOMAIN_NAME_2))
{
/*
Main class
Expand Down

0 comments on commit a045b81

Please sign in to comment.