Skip to content

Commit

Permalink
fixed RuleParser issue
Browse files Browse the repository at this point in the history
  • Loading branch information
PureDark committed Mar 30, 2017
1 parent 5efed16 commit 0eeec92
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
8 changes: 0 additions & 8 deletions app/src/main/java/ml/puredark/hviewer/core/RuleParser.java
Original file line number Diff line number Diff line change
Expand Up @@ -407,10 +407,6 @@ public static Collection getCollectionDetail(Collection collection, Object sourc
continue;
}
}
if(isJson(element.toString()))
element = jsonParser.parse(element.toString());
else
element = Jsoup.parse(element.toString());
String pId = parseSingleProperty(element, pictureId, sourceUrl, false);
int pid;
try {
Expand Down Expand Up @@ -458,10 +454,6 @@ public static Collection getCollectionDetail(Collection collection, Object sourc
continue;
}
}
if(isJson(element.toString()))
element = jsonParser.parse(element.toString());
else
element = Jsoup.parse(element.toString());
String vId = parseSingleProperty(element, rule.videoRule.id, sourceUrl, false);
int vid;
try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1066,7 +1066,7 @@ public void search(String keyword, boolean doSearch) {

@Override
protected void onNewIntent(Intent intent) {
if ("search".equals(intent.getAction())) {
if ("search".equals(intent.getAction()) && currFragment != null) {
Tag tag = (Tag) intent.getSerializableExtra("tag");
Site currSite = currFragment.getCurrSite();
if (tag.url != null && currSite != null) {
Expand Down

0 comments on commit 0eeec92

Please sign in to comment.