diff options
author | Michał Klichowicz <emkael@tlen.pl> | 2023-10-06 02:54:56 +0200 |
---|---|---|
committer | Michał Klichowicz <emkael@tlen.pl> | 2023-10-06 02:54:56 +0200 |
commit | 1c2497c7d0a2d9d5f58ea1d872bde496f048ffd6 (patch) | |
tree | 38f3ed4a61c2d7be624c650ead2403f1663c2d94 /src | |
parent | eb9c5653fc243f41eb353413ad059e53a7516879 (diff) |
Ability to force PBN encodingv0.3.1
Diffstat (limited to 'src')
-rw-r--r-- | src/main.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main.py b/src/main.py index 11ad472..8953571 100644 --- a/src/main.py +++ b/src/main.py @@ -39,6 +39,7 @@ def get_pbn_source(config): r = requests.get(config['url'], auth=request_auth, headers=request_headers) r.raise_for_status() + r.encoding = config.get('encoding', 'utf8') remote_content = r.text logging.info('Fetched %d bytes', len(remote_content)) |