Fixed YouTube (#717)

This commit is contained in:
Soxoj
2022-10-17 01:17:09 +03:00
committed by GitHub
parent f03a4c81a5
commit 026fd98304
3 changed files with 37 additions and 12 deletions
+26 -2
View File
@@ -18355,17 +18355,41 @@
},
"YouTube": {
"tags": [
"us",
"video"
],
"regexCheck": "^[^\\/]+$",
"checkType": "message",
"presenseStrs": [
"href=\"/feed/channel"
],
"absenceStrs": [
"Not Found"
"Error - Invidious",
"This channel does not exist"
],
"alexaRank": 2,
"urlMain": "https://www.youtube.com/",
"url": "https://www.youtube.com/{username}",
"urlProbe": "https://invidious.slipfox.xyz/c/{username}",
"usernameClaimed": "test",
"usernameUnclaimed": "noonewouldeverusethis7"
},
"YouTube User": {
"tags": [
"video"
],
"regexCheck": "^[^\\/]+$",
"checkType": "message",
"presenseStrs": [
"href=\"/feed/channel"
],
"absenceStrs": [
"Error - Invidious",
"This channel does not exist"
],
"alexaRank": 2,
"urlMain": "https://www.youtube.com/",
"url": "https://www.youtube.com/{username}",
"urlProbe": "https://invidious.slipfox.xyz/user/{username}",
"usernameClaimed": "blue",
"usernameUnclaimed": "noonewouldeverusethis7"
},
+1 -1
View File
@@ -465,7 +465,7 @@ class MaigretDatabase:
status_checks_perc = round(100*status_checks/enabled_count, 2)
output += f"Status code checks: {status_checks}/{enabled_count} = {status_checks_perc}% (false positive risks)\n\n"
output += f"False positive risk (total): {checks_perc+status_checks_perc}%\n\n"
output += f"False positive risk (total): {checks_perc+status_checks_perc:.2f}%\n\n"
top_urls_count = 20
output += f"Top {top_urls_count} profile URLs:\n"