Skip to content

Commit aeaf1ad

Browse files
committed
"leechers" overrides "peers" in RSS feeds if both present
1 parent 2376aa1 commit aeaf1ad

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

core/src/com/biglybt/core/metasearch/impl/web/rss/RSSEngine.java

+7-2
Original file line numberDiff line numberDiff line change
@@ -605,8 +605,13 @@
605605
}else if( lc_child_name.equals( "peers" ) || lc_child_name.equals( "leechers" )){
606606

607607
try{
608-
item_peers = Integer.parseInt( value );
609-
608+
// when we say "peers" we really mean "leechers" so if both are present we
609+
// have leechers over-riding peers as some feeds have "peers" meaning "seeders + leechers"...
610+
611+
if ( lc_child_name.equals( "leechers" ) || item_peers < 0 ){
612+
613+
item_peers = Integer.parseInt( value );
614+
}
610615
}catch( Throwable e ){
611616

612617
}

0 commit comments

Comments
 (0)