Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Start downloading subtitles before download finishes #12

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

hauxir
Copy link
Owner

@hauxir hauxir commented Nov 6, 2019

To speed up the process, the goal of this PR is to start the download of subtitles from OpenSubtitles before the torrent file download finishes.

To accomplish this we need to prioritize the front and back of the file so that the opensubtitle hash function can be called on the file. We need 64bits from the beginning and end of the file.

For reference:
https://trac.opensubtitles.org/projects/opensubtitles/wiki/HashSourceCodes

This also helps pave the way for instant streaming in future releases, making it possible to start streaming a file before the torrent download finishes.

@hauxir hauxir added enhancement New feature or request help wanted Extra attention is needed labels Nov 6, 2019
@hauxir hauxir changed the title Start downloading subtitles before download finishes [WIP] Start downloading subtitles before download finishes Nov 6, 2019
@hauxir hauxir force-pushed the start-download-subtitles-before-download-finishes branch from 0f168d4 to 453e997 Compare November 13, 2020 16:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant