Stremio / stremio-addon-sdk

πŸ§™ A Node.js SDK for creating and publishing Stremio add-ons
https://www.stremio.com/addon-sdk
MIT License
656 stars 175 forks source link

Submit infoHash when play-stream is executed instead on defineStreamHandler() #262

Open svetlozardraganov opened 7 months ago

svetlozardraganov commented 7 months ago

I'm working on addon that provides the ability to videos from torrent files.

The defineStreamHandler() function expects to receive infoHash information but the extraction of this information is time consuming, especially when involving multiple streams.

Is there a way to submit everything but the infoHash information to defineSteamHandler() function and only when the play-stream is executed to download and submit the infoHash information for the respective stream? This will save a lot of time to pre-download all infoHash-es.

Hris828 commented 7 months ago

Π—Π΄Ρ€Π°Π²Π΅ΠΉΡ‚Π΅, Π½Π΅ Π΅ ΠΏΠΎ Ρ‚Π΅ΠΌΠ°Ρ‚Π°, Π½ΠΎ ΠΊΠ°ΠΊΠ²ΠΈ са Π²ΡŠΠ·ΠΌΠΎΠΆΠ½ΠΎΡΡ‚ΠΈΡ‚Π΅ Π΄Π° сС ΡΡŠΠ·Π΄Π°Π΄Π°Ρ‚ Π΄ΠΎΠ±Π°Π²ΠΊΠΈ към Π±ΡŠΠ»Π³Π°Ρ€ΡΠΊΠΈΡ‚Π΅ сайтовС Π·Π° субтитри? Някой ΠΏΡ€ΠΎΠ±Π²Π°Π» Π»ΠΈ Π΅?

На ср, 21.02.2024β€―Π³. Π² 0:05 Svetlozar Draganov @.***> написа:

I'm working on addon that provides the ability to videos from torrent files.

The defineStreamHandler() function expects to receive infoHash information but the extraction of this information is time consuming, especially when involving multiple streams.

Is there a way to submit everything but the infoHash information to defineSteamHandler() function and only when the play-stream is executed to download and submit the infoHash information for the respective stream? This will save a lot of time to pre-download all infoHash-es.

β€” Reply to this email directly, view it on GitHub https://github.com/Stremio/stremio-addon-sdk/issues/262, or unsubscribe https://github.com/notifications/unsubscribe-auth/BEVOV56MHJ3WSM5423MRSQ3YUUMZVAVCNFSM6AAAAABDR53N4KVHI2DSMVQWIX3LMV43ASLTON2WKOZSGE2DKMZWHE3TIMY . You are receiving this because you are subscribed to this thread.Message ID: @.***>

svetlozardraganov commented 7 months ago

Not sure if this is allowed but I will answer the question below:

Π—Π΄Ρ€Π°Π²Π΅ΠΉΡ‚Π΅, Π½Π΅ Π΅ ΠΏΠΎ Ρ‚Π΅ΠΌΠ°Ρ‚Π°, Π½ΠΎ ΠΊΠ°ΠΊΠ²ΠΈ са Π²ΡŠΠ·ΠΌΠΎΠΆΠ½ΠΎΡΡ‚ΠΈΡ‚Π΅ Π΄Π° сС ΡΡŠΠ·Π΄Π°Π΄Π°Ρ‚ Π΄ΠΎΠ±Π°Π²ΠΊΠΈ към Π±ΡŠΠ»Π³Π°Ρ€ΡΠΊΠΈΡ‚Π΅ сайтовС Π·Π° субтитри? Някой ΠΏΡ€ΠΎΠ±Π²Π°Π» Π»ΠΈ Π΅?

Π”ΠΎΠΊΠΎΠ»ΠΊΠΎΡ‚ΠΎ Π²ΠΈΠΆΠ΄Π°ΠΌ ΠΌΠΎΠ³Π°Ρ‚ Π΄Π° сС направят всякакви Π΄ΠΎΠ±Π°Π²ΠΊΠΈ Π²ΠΊΠ»ΡŽΡ‡ΠΈΡ‚Π΅Π»Π½ΠΎ ΠΈ Π·Π° субтитри.

Hris828 commented 7 months ago

Π‘Ρ‚Ρ€Π°Ρ…ΠΎΡ‚Π½ΠΎ. Π—Π° съТалСниС Π½ΠΈΡ‰ΠΎ Π½Π΅ Ρ€Π°Π·Π±ΠΈΡ€Π°ΠΌ ΠΎΡ‚ ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΈΡ€Π°Π½Π΅, Π½ΠΎ Ρ‰Π΅ бъдС ΠΌΠ½ΠΎΠ³ΠΎ Π΄ΠΎΠ±Ρ€Π΅ Π°ΠΊΠΎ сС появят Π΄ΠΎΠ±Π°Π²ΠΊΠΈ към subs.sab.bz , subunacs.net & yavka.net.

На Ρ‡Ρ‚, 22.02.2024 Π³., 00:19 Ρ‡. Svetlozar Draganov @.***> написа:

Not sure if this is allowed but I will answer the question below:

Π—Π΄Ρ€Π°Π²Π΅ΠΉΡ‚Π΅, Π½Π΅ Π΅ ΠΏΠΎ Ρ‚Π΅ΠΌΠ°Ρ‚Π°, Π½ΠΎ ΠΊΠ°ΠΊΠ²ΠΈ са Π²ΡŠΠ·ΠΌΠΎΠΆΠ½ΠΎΡΡ‚ΠΈΡ‚Π΅ Π΄Π° сС ΡΡŠΠ·Π΄Π°Π΄Π°Ρ‚ Π΄ΠΎΠ±Π°Π²ΠΊΠΈ към Π±ΡŠΠ»Π³Π°Ρ€ΡΠΊΠΈΡ‚Π΅ сайтовС Π·Π° субтитри? Някой ΠΏΡ€ΠΎΠ±Π²Π°Π» Π»ΠΈ Π΅?

Π”ΠΎΠΊΠΎΠ»ΠΊΠΎΡ‚ΠΎ Π²ΠΈΠΆΠ΄Π°ΠΌ ΠΌΠΎΠ³Π°Ρ‚ Π΄Π° сС направят всякакви Π΄ΠΎΠ±Π°Π²ΠΊΠΈ Π²ΠΊΠ»ΡŽΡ‡ΠΈΡ‚Π΅Π»Π½ΠΎ ΠΈ Π·Π° субтитри. Π’ ΠΌΠΎΠΌΠ΅Π½Ρ‚Π° Ρ‚ΠΎΡ‡Π½ΠΎ Π²ΡŠΡ€Ρ…Ρƒ Ρ‚ΠΎΠ²Π° работя.

β€” Reply to this email directly, view it on GitHub https://github.com/Stremio/stremio-addon-sdk/issues/262#issuecomment-1958123763, or unsubscribe https://github.com/notifications/unsubscribe-auth/BEVOV5YKFUV7HB7YCLDM5C3YUZXH3AVCNFSM6AAAAABDR53N4KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNJYGEZDGNZWGM . You are receiving this because you commented.Message ID: @.***>

svetlozardraganov commented 7 months ago

Бъс сигурност, Π½Π΅ съм сигурСн ΠΎΠ±Π°Ρ‡Π΅ Π΄Π°Π»ΠΈ Ρ‚ΠΎΠ²Π° Π±ΠΈ Π±ΠΈΠ»ΠΎ Π² интСрСс Π½Π° Stremio.