MCPcopy Create free account

hub / github.com/emericg/OpenSubtitlesDownload / functions

Functions30 in github.com/emericg/OpenSubtitlesDownload

↓ 15 callersFunctionsuperPrint
Print messages through terminal, zenity or kdialog
OpenSubtitlesDownload.py:276
↓ 5 callersFunctionescapeGUI_zenity
(string)
OpenSubtitlesDownload.py:252
↓ 5 callersFunctionurllib_request_Request
Drop-in replacement for urllib.request.Request with OpenSubtitles rate limiting
OpenSubtitlesDownload.py:950
↓ 5 callersFunctionurllib_request_urlopen
Drop-in replacement for urllib.request.urlopen with rate limiting
OpenSubtitlesDownload.py:954
↓ 4 callersMethodRequest
Rate-limited replacement for urllib.request.Request with 429 handling Returns the actual response object, not just a Request object
OpenSubtitlesDownload.py:885
↓ 3 callersFunctioncheckFileValidity
Check mimetype and/or file extension to detect valid video file
OpenSubtitlesDownload.py:155
↓ 3 callersFunctioncheckSubtitlesExists
Check if a subtitles already exists for the current file
OpenSubtitlesDownload.py:179
↓ 3 callersFunctionsearchSubtitles
(**kwargs)
OpenSubtitlesDownload.py:662
↓ 2 callersMethod_parse_rate_limit_headers
Parse OpenSubtitles rate limit headers
OpenSubtitlesDownload.py:757
↓ 2 callersFunctionescapePath_wget
(string)
OpenSubtitlesDownload.py:266
↓ 1 callersMethod_handle_429_retry
Handle 429 responses with proper retry logic
OpenSubtitlesDownload.py:821
↓ 1 callersMethod_should_wait_for_api_limits
Check if we should wait based on API-provided rate limit info
OpenSubtitlesDownload.py:774
↓ 1 callersMethod_wait_if_needed
Implement rate limiting logic with API feedback
OpenSubtitlesDownload.py:785
↓ 1 callersFunctiondependencyChecker
Check the availability of tools used as dependencies
OpenSubtitlesDownload.py:598
↓ 1 callersFunctiondownloadSubtitles
(USER_TOKEN, subURL, subPath)
OpenSubtitlesDownload.py:709
↓ 1 callersFunctionescapeGUI_kdialog
(string)
OpenSubtitlesDownload.py:260
↓ 1 callersFunctionescapeGUI_title
(string)
OpenSubtitlesDownload.py:247
↓ 1 callersFunctiongetSubtitlesInfo
(USER_TOKEN, file_id)
OpenSubtitlesDownload.py:683
↓ 1 callersFunctiongetUserToken
(username, password)
OpenSubtitlesDownload.py:610
↓ 1 callersFunctionhashFile
Produce a hash for a video file: size + 64bit chksum of the first and last 64k (even if they overlap because the file is smaller than 128k)
OpenSubtitlesDownload.py:206
↓ 1 callersFunctionpythonChecker
Check the availability of Python 3.6 interpreter
OpenSubtitlesDownload.py:591
↓ 1 callersFunctionrate_limited_urlopen
Rate-limited replacement for urllib.request.urlopen
OpenSubtitlesDownload.py:928
↓ 1 callersFunctionselectionAuto
Automatic subtitles selection using filename match
OpenSubtitlesDownload.py:559
↓ 1 callersFunctionselectionCLI
Command Line Interface, subtitles selection inside your current terminal
OpenSubtitlesDownload.py:467
↓ 1 callersFunctionselectionGnome
GNOME subtitles selection window using zenity
OpenSubtitlesDownload.py:308
↓ 1 callersFunctionselectionKDE
KDE subtitles selection window using kdialog
OpenSubtitlesDownload.py:404
MethodRequest
Drop-in replacement for urllib.request.Request This returns a Request object like the original, but the actual HTTP call happ
OpenSubtitlesDownload.py:907
Method__init__
Rate-limited wrapper for urllib.request with OpenSubtitles 429 handling
OpenSubtitlesDownload.py:736
Method__init__
(self, max_requests=10, time_window=60, min_delay=0.1, max_retries=1)
OpenSubtitlesDownload.py:904
FunctiondestroyUserToken
(USER_TOKEN)
OpenSubtitlesDownload.py:640