Skip to content
This repository has been archived by the owner on Nov 26, 2024. It is now read-only.

Commit

Permalink
Merge pull request #51 from LimeDrive:develop
Browse files Browse the repository at this point in the history
Refactor file selection logic in RealDebrid class and update version
  • Loading branch information
LimeDrive authored Sep 29, 2024
2 parents 67642ef + b234dcb commit a94b17f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "stream-fusion"
version = "2.0.4"
version = "2.0.5"
description = "StreamFusion is an advanced plugin for Stremio that significantly enhances its streaming capabilities with debrid service."
authors = ["LimeDrive <[email protected]>"]
readme = "README.md"
Expand Down
4 changes: 3 additions & 1 deletion stream_fusion/utils/debrid/realdebrid.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from urllib.parse import unquote

from fastapi import HTTPException
import requests

from stream_fusion.constants import NO_CACHE_VIDEO_URL
from stream_fusion.services.rd_conn.token_manager import RDTokenManager
Expand Down Expand Up @@ -64,7 +65,8 @@ def select_files(self, torrent_id, file_id):
self._torrent_rate_limit()
url = f"{self.base_url}/rest/1.0/torrents/selectFiles/{torrent_id}"
data = {"files": str(file_id)}
self.__session.post(url, headers=self.get_headers(), data=data)
requests.post(url, headers=self.get_headers(), data=data)
# Do not touch that requests.post, it is not a mistake. The requests.post is used to have the same ip than token owner.

def unrestrict_link(self, link):
url = f"{self.base_url}/rest/1.0/unrestrict/link"
Expand Down

0 comments on commit a94b17f

Please sign in to comment.