Skip to content

Commit

Permalink
pass indexer type & remove Upper ingo hash finding
Browse files Browse the repository at this point in the history
  • Loading branch information
mhdzumair committed Nov 1, 2024
1 parent d81839a commit 17f3dab
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions streaming_providers/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,6 @@ async def fetch_stream_or_404(info_hash):
if stream:
return stream

# TODO: added for backwards compatibility, remove in the future
stream = await crud.get_stream_by_info_hash(info_hash.upper())
if stream:
return stream

raise HTTPException(status_code=400, detail="Stream not found.")


Expand Down Expand Up @@ -115,6 +110,9 @@ async def get_or_create_video_url(
stream=stream,
torrent_name=stream.torrent_name,
background_tasks=background_tasks,
indexer_type=(
"public" if stream.indexer_flags in [[], ["freeleech"]] else "private"
),
)

if asyncio.iscoroutinefunction(get_video_url):
Expand Down

0 comments on commit 17f3dab

Please sign in to comment.