mirror of
https://github.com/Viren070/MediaFusion.git
synced 2025-12-01 23:21:11 +01:00
Fix media playback with filename containing slashes by using quote_plus instead of quote for URL encoding.
This commit is contained in:
+2
-2
@@ -6,7 +6,7 @@ import math
|
||||
import re
|
||||
from datetime import datetime, timezone
|
||||
from typing import Optional, List, Any
|
||||
from urllib.parse import quote
|
||||
from urllib.parse import quote_plus
|
||||
|
||||
from thefuzz import fuzz
|
||||
|
||||
@@ -341,7 +341,7 @@ async def parse_stream_data(
|
||||
if episode_data:
|
||||
stream_details["url"] += f"/{season}/{episode}"
|
||||
if file_name:
|
||||
stream_details["url"] += f"/{quote(file_name)}"
|
||||
stream_details["url"] += f"/{quote_plus(file_name)}"
|
||||
stream_details["behaviorHints"]["notWebReady"] = True
|
||||
else:
|
||||
stream_details["infoHash"] = stream_data.id
|
||||
|
||||
Reference in New Issue
Block a user