Skip to content

Commit

Permalink
Fix BEP34 bad parsing (#296)
Browse files Browse the repository at this point in the history
Dns record content is being wrapped in quotes
  • Loading branch information
ismaarino authored Sep 29, 2024
1 parent c8e8656 commit 6cba561
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion newTrackon/scraper.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ def get_bep_34(hostname):
try:
txt_info = resolver.resolve(hostname, "TXT").response.answer[0]
for record in txt_info:
record_text = str(record)
record_text = str(record).strip('\"')
if record_text.startswith("BITTORRENT"):
return True, process_txt_prefs(record_text)
except DNSException:
Expand Down

0 comments on commit 6cba561

Please sign in to comment.