qbittorrent / qBittorrent

qBittorrent BitTorrent client
https://www.qbittorrent.org
Other
27.26k stars 3.9k forks source link

ipfilter fails to parse blocklist from https://github.com/Naunter/BT_BlockLists #21455

Closed ArielRosenfeld closed 1 hour ago

ArielRosenfeld commented 2 hours ago

qBittorrent & operating system versions

qBittorrent v5.0.0 (64-bit) Operating system: Archlinux Qt: 6.7.3 Libtorrent: 2.0.10.0 Boost: 1.86.0 OpenSSL: 3.3.2 zlib: 1.3.1

What is the problem?

ipfilter fails to parse blocklist from https://github.com/Naunter/BT_BlockLists

logs show 01/10/2024 15:55 - Successfully parsed the IP filter file. Number of rules applied: 0 01/10/2024 15:55 - 35650 extra IP filter parsing errors occurred. 01/10/2024 15:55 - IP filter line 5 is malformed. 01/10/2024 15:55 - IP filter line 4 is malformed. 01/10/2024 15:55 - IP filter line 3 is malformed. 01/10/2024 15:55 - IP filter line 2 is malformed. 01/10/2024 15:55 - IP filter line 1 is malformed.

Steps to reproduce

  1. download blocklist https://github.com/Naunter/BT_BlockLists/raw/master/bt_blocklists.gz
  2. rename to ipfilter.dat so filterlist can be seen by the blocklist filter file browser
  3. reload blocklist to see if it is running

Additional context

No response

Log(s) & preferences file(s)

qbittorrent.zip

HanabishiRecca commented 2 hours ago

I think the error clearly states it - the file has wrong format. ipfilter.dat files have different syntax. https://wiki.amule.org/wiki/Ipfilter.dat_file

ArielRosenfeld commented 2 hours ago

I think the error clearly states it - the file has wrong format. ipfilter.dat files have different syntax. wiki.amule.org/wiki/Ipfilter.dat_file

renaming it to a p2p file doesnt help. and its correctly parsed by the transmission and deluge torrent clients

ArielRosenfeld commented 1 hour ago

Thanks for the help

HanabishiRecca commented 1 hour ago

renaming it to a p2p file doesnt help.

Works for me as bt_blocklists.p2p.

Successfully parsed the IP filter file. Number of rules applied: 664517