Skip to content

Commit

Permalink
Use piped.video instead of main piped instance (#2172)
Browse files Browse the repository at this point in the history
Co-authored-by: kuba <[email protected]>
fix  #2171
  • Loading branch information
j3bx authored Sep 2, 2024
1 parent fee3859 commit 4d9d8d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spotdl/providers/audio/piped.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def get_results(self, search_term: str, **kwargs) -> List[Result]:
params["filter"] = "music_videos"

response = self.session.get(
"https://pipedapi.kavin.rocks/search",
"https://piped.video/search",
params=params,
headers=HEADERS,
timeout=20,
Expand Down Expand Up @@ -162,7 +162,7 @@ def get_download_metadata(self, url: str, download: bool = False) -> Dict:

url_id = url.split("?v=")[1]
piped_response = requests.get(
f"https://pipedapi.kavin.rocks/streams/{url_id}",
f"https://piped.video/streams/{url_id}",
timeout=10,
proxies=GlobalConfig.get_parameter("proxies"),
)
Expand Down

0 comments on commit 4d9d8d2

Please sign in to comment.