👽️ Updated Revanced API (#353)

This commit is contained in:
Nikhil Badyal
2023-08-29 14:30:09 +05:30
committed by GitHub
parent 6f33001963
commit 55bffcf84e
4 changed files with 16 additions and 9 deletions
+2 -2
View File
@@ -13,7 +13,7 @@ from requests import Response
from src.config import RevancedConfig
from src.downloader.sources import APK_MIRROR_APK_CHECK
from src.downloader.utils import status_code_200
from src.exceptions import DownloadError
from src.exceptions import ScrapingError
default_build = [
"youtube",
@@ -115,7 +115,7 @@ def handle_request_response(response: Response, url: str) -> None:
response_code = response.status_code
if response_code != status_code_200:
msg = f"Unable to downloaded assets. Reason - {response.text}"
raise DownloadError(msg, url=url)
raise ScrapingError(msg, url=url)
def slugify(string: str) -> str: