Coder Social home page Coder Social logo

vagabondhustler / subsearch Goto Github PK

View Code? Open in Web Editor NEW
34.0 1.0 3.0 8.69 MB

Download subtitles for movies and shows, automatically with one easy mouse click.

Home Page: https://pypi.org/project/subsearch/

License: MIT License

Python 93.07% Tcl 5.32% JavaScript 1.61%
subtitles srt-subtitles subtitle-downloader tv-subtitle movie-subtitle search-subtitles subscene exe opensubtitles yifysubtitles

subsearch's Introduction

Tests Tags GitHub commit activity License

downloads-total) downloads-latest)

Readme Table of Contents

FAQ Table of Contents

Misc Table of Contents

About

Key Features

  • Initiate a search for subtitles by simply right-clicking on a media file.
  • Search for subtitles in 70 different languages
  • Some of the subtitle filters are HI, non-HI, foreign parts only.
  • User-friendly GUI for easy customization and configuration
  • Available as a compiled executable, source code via GitHub and PyPI
  • The setup process is straightforward.

Details

Subsearch is an automated subtitle downloader and extractor with support for many languages. It allows users to search and download subtitles for movies and TV shows with a single click from the context menu. The application features a graphical user interface for configuring options, such as selecting which websites to search on, choosing the subtitle language, applying filters for hearing-impaired, among other options.

Preview

prtsc_example

Screenshots of the interface

prtsc_language

prtsc_search

prtsc_settings

prtsc_download

Installation and usage

Install from pypi:

Requires Python 3.10+

  • Install Subsearch by running pip install subsearch in the command prompt.
  • Launch the app by running subsearch in the command prompt.

Clone from github

Requires Python *3.10+

  • Clone the Subsearch repository by running git clone https://github.com/vagabondHustler/subsearch.git.
  • Install Subsearch by running pip install -e . or *pip install -e .[build,lint,tests,tools,type] for optional dependencies.
  • Build the executable and MSI installer by running python -m tools.cx_freeze_build bdist_msi.

Important

If you are using Python 3.12+ and cx_Freeze, please refer to this issue.

Windows installer

Requires windows 10/11, probably works on 8.

  • Download the windows installer "Subsearch-x.x.x-win64.msi" from here.
  • Run the installer.
  • If you receive a PUA message, click "More info" โ†’ "Run anyway".
  • Run Subsearch at least once for all the context menu options to appear

Note

Development builds can be located in the release action job, within the generated artifacts.
Screenshots of PUA message

prtsc_moreinfo

prtsc_runanyway


More about potentially unwanted applications (PUA) can be found here on Microsoft's support page.

Acknowledgements

I would like to express my gratitude to the following repositories for providing templates, scripts, inspiration, themes, and solutions to similar problems:

subsearch's People

Contributors

dependabot[bot] avatar github-actions[bot] avatar vagabondhustler avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

subsearch's Issues

[REQUEST] Delete empty sub folder

a great tool, i used to use subliminal as a command in the context menu on windows, but this tool is newer and better.

however is it possible to avoid the creation of the sub folder, or delete it if empty. not sure for what it is needed.

launch error

when I run executable, I get this error:
Traceback (most recent call last):
File "subsearch_main_.py ", line 3, in
File "subsearch_init_.py ", line 114, in main
File "subsearch_init_.py ", line 19, in init
File "subsearch_subsearch_.py ", line 82, in init
File "subsearch\utils\raw_registry.py ", line 131, in add_context_menu
File "subsearch\utils\raw_registry.py ", line 20, in write_keys
FileNotFoundError: [WinError 2] The specified file cannot be found

[REQUEST] - Foreign Only Option

Is your feature request related to a problem? Please describe.
Ability to download only the subtitles that are foreign only
Describe the solution you'd like
Adding a search option to allow for only downloading Foreign only (I know subscene.com has this option as a valid filter)

Describe alternatives you've considered
Downloading the foreign only manually one at a time

Additional context
Add any other context or screenshots about the feature request here.

Implement foreign language-only filter

Originally suggested in Issue #422

Adding a search option to allow for only downloading Foreign only (I know subscene.com has this option as a valid filter)

  • #433
  • #486
  • Implement a foreign language-only filter for yifysubtitles.vip (If possible)

[BUG] FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\mertc\\AppData\\Local\\Subsearch\\config.toml'

Traceback (most recent call last):
  File "C:\Users\mertc\miniconda3\lib\runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "C:\Users\mertc\miniconda3\lib\runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "C:\Users\mertc\miniconda3\Scripts\subsearch.exe\__main__.py", line 7, in <module>
  File "C:\Users\mertc\miniconda3\lib\site-packages\subsearch\utils\decorators.py", line 31, in inner
    return func(*args, **kwargs)
  File "C:\Users\mertc\miniconda3\lib\site-packages\subsearch\__init__.py", line 65, in main
    app = Subsearch()
  File "C:\Users\mertc\miniconda3\lib\site-packages\subsearch\__init__.py", line 20, in __init__
    self.subsearch_core = core.SubsearchCore(PREF_COUNTER)
  File "C:\Users\mertc\miniconda3\lib\site-packages\subsearch\core.py", line 85, in __init__
    Initializer.__init__(self, pref_counter)
  File "C:\Users\mertc\miniconda3\lib\site-packages\subsearch\core.py", line 23, in __init__
    self.setup_file_system()
  File "C:\Users\mertc\miniconda3\lib\site-packages\subsearch\core.py", line 65, in setup_file_system
    io_toml.resolve_on_integrity_failure()
  File "C:\Users\mertc\miniconda3\lib\site-packages\subsearch\utils\io_toml.py", line 77, in resolve_on_integrity_failure
    dump_toml_data(FILE_PATHS.config, DEFAULT_CONFIG)
  File "C:\Users\mertc\miniconda3\lib\site-packages\subsearch\utils\io_toml.py", line 24, in dump_toml_data
    with open(toml_file_path, "w") as f:
FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\mertc\\AppData\\Local\\Subsearch\\config.toml'

how to use the python script as module?

hey, i'm trying to write a python script and would really like to use your script in it,
how to use your script as module and what are the arguments i can pass?

add option to disable `subsearch.log`

Hi, thank you for making this amazing tool

can we have an option to allow user to disable writing logs to a file subsearch.log in every directory?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.