Skip to content

Commit

Permalink
Code quality improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
biskweet committed Jan 12, 2025
1 parent 53f392d commit 99a74fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nova3/engines/piratebay.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
import urllib.request
from urllib.parse import urlencode, unquote

from novaprinter import prettyPrinter
from helpers import getBrowserUserAgent
from novaprinter import prettyPrinter


class piratebay(object):
Expand Down Expand Up @@ -113,7 +113,7 @@ def retrieve_url(self, url):
except urllib.error.HTTPError:
return ""

data: bytes = response.read()
data = response.read()

if data[:2] == b'\x1f\x8b':
# Data is gzip encoded, decode it
Expand Down

0 comments on commit 99a74fe

Please sign in to comment.