From 20746a0fc3293760f3f14b2e720ef65c9de4ee47 Mon Sep 17 00:00:00 2001 From: fen0s <37670363+fen0s@users.noreply.github.com> Date: Tue, 26 Jul 2022 02:37:26 +0300 Subject: [PATCH] disable yandex music + set utf8 encoding (#562) * Update report.py * Update data.json * Update data.json --- maigret/report.py | 2 +- maigret/resources/data.json | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/maigret/report.py b/maigret/report.py index b747839..222d2c0 100644 --- a/maigret/report.py +++ b/maigret/report.py @@ -67,7 +67,7 @@ def save_txt_report(filename: str, username: str, results: dict): def save_html_report(filename: str, context: dict): template, _ = generate_report_template(is_pdf=False) filled_template = template.render(**context) - with open(filename, "w") as f: + with open(filename, "w", encoding="utf-8") as f: f.write(filled_template) diff --git a/maigret/resources/data.json b/maigret/resources/data.json index a456ecd..106f39c 100644 --- a/maigret/resources/data.json +++ b/maigret/resources/data.json @@ -18182,7 +18182,6 @@ "headers": { "Referer": "https://music.yandex.ru/users/test/playlists" }, - "urlProbe": "https://music.yandex.ru/handlers/library.jsx?owner={username}", "checkType": "status_code", "alexaRank": 50, "urlMain": "https://music.yandex.ru/",