mirror of
https://github.com/soxoj/maigret.git
synced 2026-05-07 06:24:35 +00:00
disable yandex music + set utf8 encoding (#562)
* Update report.py * Update data.json * Update data.json
This commit is contained in:
+1
-1
@@ -67,7 +67,7 @@ def save_txt_report(filename: str, username: str, results: dict):
|
|||||||
def save_html_report(filename: str, context: dict):
|
def save_html_report(filename: str, context: dict):
|
||||||
template, _ = generate_report_template(is_pdf=False)
|
template, _ = generate_report_template(is_pdf=False)
|
||||||
filled_template = template.render(**context)
|
filled_template = template.render(**context)
|
||||||
with open(filename, "w") as f:
|
with open(filename, "w", encoding="utf-8") as f:
|
||||||
f.write(filled_template)
|
f.write(filled_template)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -18182,7 +18182,6 @@
|
|||||||
"headers": {
|
"headers": {
|
||||||
"Referer": "https://music.yandex.ru/users/test/playlists"
|
"Referer": "https://music.yandex.ru/users/test/playlists"
|
||||||
},
|
},
|
||||||
"urlProbe": "https://music.yandex.ru/handlers/library.jsx?owner={username}",
|
|
||||||
"checkType": "status_code",
|
"checkType": "status_code",
|
||||||
"alexaRank": 50,
|
"alexaRank": 50,
|
||||||
"urlMain": "https://music.yandex.ru/",
|
"urlMain": "https://music.yandex.ru/",
|
||||||
|
|||||||
Reference in New Issue
Block a user