2016-02-05 20:29:22 +01:00
2016-02-05 20:29:22 +01:00
2016-02-05 20:29:22 +01:00
2015-07-16 01:01:38 +02:00
2015-07-16 01:01:38 +02:00
2015-12-29 21:19:20 +01:00
2015-10-30 17:23:48 +01:00
2016-01-04 12:01:07 +01:00
2015-07-16 01:01:38 +02:00
2013-10-29 12:22:21 +01:00
2016-02-02 22:32:15 +01:00
2015-07-16 01:01:38 +02:00
2015-12-29 21:19:20 +01:00
2015-08-27 18:49:58 +02:00

Subliminal
==========
Subtitles, faster than your thoughts.

.. image:: https://img.shields.io/pypi/v/subliminal.svg
    :target: https://pypi.python.org/pypi/subliminal
    :alt: Latest Version

.. image:: https://travis-ci.org/Diaoul/subliminal.svg?branch=develop
   :target: https://travis-ci.org/Diaoul/subliminal
   :alt: Travis CI build status

.. image:: https://readthedocs.org/projects/subliminal/badge/?version=latest
   :target: https://subliminal.readthedocs.org/
   :alt: Documentation Status

.. image:: https://coveralls.io/repos/Diaoul/subliminal/badge.svg?branch=develop&service=github
   :target: https://coveralls.io/github/Diaoul/subliminal?branch=develop
   :alt: Code coverage

.. image:: https://img.shields.io/github/license/Diaoul/subliminal.svg
   :target: https://github.com/Diaoul/subliminal/blob/master/LICENSE
   :alt: License

.. image:: https://img.shields.io/badge/gitter-join%20chat-1dce73.svg
   :alt: Join the chat at https://gitter.im/Diaoul/subliminal
   :target: https://gitter.im/Diaoul/subliminal


:Project page: https://github.com/Diaoul/subliminal
:Documentation: https://subliminal.readthedocs.org/


Usage
-----
CLI
^^^
Download English subtitles::

    $ subliminal download -l en The.Big.Bang.Theory.S05E18.HDTV.x264-LOL.mp4
    Collecting videos  [####################################]  100%
    1 video collected / 0 video ignored / 0 error
    Downloading subtitles  [####################################]  100%
    Downloaded 1 subtitle

Library
^^^^^^^
Download best subtitles in French and English for videos less than two weeks old in a video folder:

.. code:: python

    from datetime import timedelta

    from babelfish import Language
    from subliminal import download_best_subtitles, region, save_subtitles, scan_videos

    # configure the cache
    region.configure('dogpile.cache.dbm', arguments={'filename': 'cachefile.dbm'})

    # scan for videos newer than 2 weeks and their existing subtitles in a folder
    videos = scan_videos('/video/folder', age=timedelta(weeks=2))

    # download best subtitles
    subtitles = download_best_subtitles(videos, {Language('eng'), Language('fra')})

    # save them to disk, next to the video
    for v in videos:
        save_subtitles(v, subtitles[v])


Installation
------------
Subliminal can be installed as a regular python module by running::

   $ [sudo] pip install subliminal

For a better isolation with your system you should use a dedicated virtualenv or install for your user only using
the ``--user`` flag.

Nautilus/Nemo integration
-------------------------
See the dedicated `project page <https://github.com/Diaoul/nautilus-subliminal>`_ for more information.
S
Description
Subtitles for Plex, as good you would expect them to be.
Readme MIT 50 MiB
Languages
Python 99.5%
C 0.4%