Identify videos files from opensubtitle webservice
Project description
[![Latest Version](https://pypip.in/version/osdbinfos/badge.svg)](https://pypi.python.org/pypi/osdbinfos/)
[![Supported Python versions](https://pypip.in/py_versions/osdbinfos/badge.svg)](https://pypi.python.org/pypi/osdbinfos/)
[![Wheel Status](https://pypip.in/wheel/osdbinfos/badge.svg)](https://pypi.python.org/pypi/osdbinfos/)
[![License](https://pypip.in/license/osdbinfos/badge.svg)](https://pypi.python.org/pypi/osdbinfos/)
# About
osdbinfos let you identify a local video file based on its content and the help of the [opensubtitles](http://www.opensubtitles.org/) [API](trac.opensubtitles.org/projects/opensubtitles/wiki/XMLRPC)
This module just provide video file identification; It does not download any subtitle;
# Example usage :
## As a module
from osdbinfos import OpenSutitles
path = "Pioneer One/Pioneer.One.S01E01.REDUX.720p.x264-VODO/Pioneer.One.S01E01.REDUX.720p.x264-VODO.mkv"
osdb = OpenSutitles()
print(osdb.get_files_infos([path, ]))
{'Pioneer One/Pioneer.One.S01E01.REDUX.720p.x264-VODO/Pioneer.One.S01E01.REDUX.720p.x264-VODO.mkv': {u'kind': 'episode', u'movie_hash': 'e1c675becea90705', u'serie_title': u'Pioneer One', u'imdb_id': 'tt1834084', u'episode_title': u'Earthfall', u'episode_number': 1, u'season_number': 1}}
## From CLI :
~: osdbinfos-example "Pioneer One/Pioneer.One.S01E02.720p.x264-VODO/Pioneer.One.S01E02.720p.x264-VODO.mkv" | python -m json.tool
{
"Pioneer One/Pioneer.One.S01E02.720p.x264-VODO/Pioneer.One.S01E02.720p.x264-VODO.mkv": {
"episode_number": 2,
"episode_title": "The Man from Mars",
"imdb_id": "tt1835555",
"kind": "episode",
"movie_hash": "19b48b9a2f464caa",
"season_number": 1,
"serie_title": "Pioneer One"
}
}
In this example, files used are the first and second episode of "Pioneer One" freely available on [Vodo.net](http://vodo.net/joshbernhard/pioneerone/)
[![Supported Python versions](https://pypip.in/py_versions/osdbinfos/badge.svg)](https://pypi.python.org/pypi/osdbinfos/)
[![Wheel Status](https://pypip.in/wheel/osdbinfos/badge.svg)](https://pypi.python.org/pypi/osdbinfos/)
[![License](https://pypip.in/license/osdbinfos/badge.svg)](https://pypi.python.org/pypi/osdbinfos/)
# About
osdbinfos let you identify a local video file based on its content and the help of the [opensubtitles](http://www.opensubtitles.org/) [API](trac.opensubtitles.org/projects/opensubtitles/wiki/XMLRPC)
This module just provide video file identification; It does not download any subtitle;
# Example usage :
## As a module
from osdbinfos import OpenSutitles
path = "Pioneer One/Pioneer.One.S01E01.REDUX.720p.x264-VODO/Pioneer.One.S01E01.REDUX.720p.x264-VODO.mkv"
osdb = OpenSutitles()
print(osdb.get_files_infos([path, ]))
{'Pioneer One/Pioneer.One.S01E01.REDUX.720p.x264-VODO/Pioneer.One.S01E01.REDUX.720p.x264-VODO.mkv': {u'kind': 'episode', u'movie_hash': 'e1c675becea90705', u'serie_title': u'Pioneer One', u'imdb_id': 'tt1834084', u'episode_title': u'Earthfall', u'episode_number': 1, u'season_number': 1}}
## From CLI :
~: osdbinfos-example "Pioneer One/Pioneer.One.S01E02.720p.x264-VODO/Pioneer.One.S01E02.720p.x264-VODO.mkv" | python -m json.tool
{
"Pioneer One/Pioneer.One.S01E02.720p.x264-VODO/Pioneer.One.S01E02.720p.x264-VODO.mkv": {
"episode_number": 2,
"episode_title": "The Man from Mars",
"imdb_id": "tt1835555",
"kind": "episode",
"movie_hash": "19b48b9a2f464caa",
"season_number": 1,
"serie_title": "Pioneer One"
}
}
In this example, files used are the first and second episode of "Pioneer One" freely available on [Vodo.net](http://vodo.net/joshbernhard/pioneerone/)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
osdbinfos-0.0.9.tar.gz
(5.3 kB
view hashes)
Built Distributions
osdbinfos-0.0.9-py2.7.egg
(11.1 kB
view hashes)
Close
Hashes for osdbinfos-0.0.9-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 39140bd2a6123da81bee06ceaf846e1d9d7dd84d41a7a22f45daa675e5a35a00 |
|
MD5 | 721db78bdb155c9391fd0032e74136f7 |
|
BLAKE2b-256 | d8671d003aea38a18c739f7d0aa3a3dbb2530937bbc53a055d84e6828ff10ea7 |