mirror of
https://github.com/Arrowar/StreamingCommunity.git
synced 2025-06-04 02:20:10 +00:00
[BUG] Anime Unity download broken #10
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @FrancescoFiume on 3/16/2025
Tutte le volte che provo a scaricare da anime unity ottengo questo errore:
[downloader.py:183 - MP4_downloader() ] 2025-03-16 04:10:59,163 - ERROR - Unexpected error: 'int' object has no attribute 'set_alpn_protocols' Unexpected Error: 'int' object has no attribute 'set_alpn_protocols'
Investigando il problema ho visto che l'eccezione scaturisce da qui
StreamingCommunity/Lib/Downloader/MP4/downloader.py
in queste righe:
with httpx.Client(transport=transport, timeout=httpx.Timeout(60)) as client: with client.stream("GET", url, headers=headers, timeout=REQUEST_TIMEOUT) as response:
Ho provato ad incollare il link con il token nel browser e da li mi parte il download, allo stesso modo ho provato a rimpiazzare la riga della response con la response di requests e la riga
for chunk in response.iter_bytes(chunk_size=1024):
con l'equivalente di response (response.iter_content) e così riesco a scaricare gli episodi da anime unity.
Non conosco il funzionamento di hhtpx ma interpreta male il token mandandolo in ecezione.
Mi piacerebbe fare due chiacchiere con voi riguardo il funzionamento del progetto e magari prenderne parte più attiva.
Se avete un canale discord o telegram vorrei entrarci.