{ "info": { "author": "Sandeep.C.R", "author_email": "sandeepcr2@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "===============================================\nTitley - A python script to download subtitles.\n===============================================\n\nThe problem -\n=============\n\nYou download a foreign language movie. You look for a subtitle in one of the subtitle sites. But you can't find the subtitle with exact name of the copy of the movie you have. So you blindly download one subtitle, extract it and start the movie with it. But the timings are not in sync. Frustrated, you download another subtitle, only to find that it is the same subtitle as the first one. If the site has 30 subtitles for the movie, you ll have to download and check each of those manually before you find the exact one or give up in frustration.\n\nHow titley helps-\n=================\n\nTitley helps you in this situation by.\n\n1. You call titley with an IMDB id or a part of the movie name (In which case it will search OMDB database for the matching movies and you will be able to select the movie from the list shown).\n1. One the right movie is selected, it will go and fetch all available subtitles for a movie from a subtitle site.\n2. Extract all of them and search for a medium length and non-repeating dialog among subtitles. It will then list all the retrieved subtitles with the time that particular dialog appear in each of them. You can play your movie and find the time that dialog plays. Once you find the approximate time, you can select the subtitle with the closest time.\n\nPlease see the sample run where subtitles for the movie 'Ferris Bueller's Day Off' is being downloaded.\n\nSample run\n============\n::\n \n >titley --name=ferris \n INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): www.omdbapi.com\n \n The following movies were found matching your search key 'ferris'\n \n 1) Ferris Bueller's Day Off (1986), IMDB: tt0091042\n 2) Ferris Bueller (19901991), IMDB: tt0098795\n 3) The Night Ferris Bueller Died (1999), IMDB: tt0240760\n 4) Ferris Wheels & Funky Breath (2013), IMDB: tt2223660\n 5) The Ferris Wheel (1977), IMDB: tt0743732\n 6) The Black Ferris (1990), IMDB: tt0683206\n 7) Inside Story: Ferris Bueller's Day Off (2011), IMDB: tt2150301\n 8) Ferris Bueller's Day Off (2010), IMDB: tt1877452\n 9) The Ferris Wheel (1958), IMDB: tt0910758\n 10) Pam Ferris (1991), IMDB: tt0721863\n \n Select the correct one. Enter a number between 1 and 10. Enter \"x\" to exit\n 1\n INFO:titley:Downloading subtitles for movie 'Ferris Bueller's Day Off'(1986), IMDB:tt0091042\n INFO:titley:Fetching http://www.opensubtitles.org/en/search/sublanguageid-all/imdbid-tt0091042/offset-0/xml\n INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): www.opensubtitles.org\n INFO:titley:Fetching http://www.opensubtitles.org/en/search/sublanguageid-all/imdbid-tt0091042/offset-40/xml\n INFO:titley:Fetching http://www.opensubtitles.org/en/search/sublanguageid-all/imdbid-tt0091042/offset-80/xml\n INFO:titley:Fetching http://www.opensubtitles.org/en/search/sublanguageid-all/imdbid-tt0091042/offset-120/xml\n INFO:titley:Downloading 17 subtitles\n INFO:titley:Getting subs from http://dl.opensubtitles.org/en/download/sub/3212297\n INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): dl.opensubtitles.org\n INFO:titley:Getting subs from http://dl.opensubtitles.org/en/download/sub/66485\n INFO:titley:Getting subs from http://dl.opensubtitles.org/en/download/sub/4458597\n INFO:titley:Getting subs from http://dl.opensubtitles.org/en/download/sub/3659099\n INFO:titley:Getting subs from http://dl.opensubtitles.org/en/download/sub/3557846\n INFO:titley:Getting subs from http://dl.opensubtitles.org/en/download/sub/3523972\n INFO:titley:Getting subs from http://dl.opensubtitles.org/en/download/sub/3438100\n INFO:titley:Getting subs from http://dl.opensubtitles.org/en/download/sub/3215718\n INFO:titley:Getting subs from http://dl.opensubtitles.org/en/download/sub/3603116\n INFO:titley:Getting subs from http://dl.opensubtitles.org/en/download/sub/5456752\n INFO:titley:Getting subs from http://dl.opensubtitles.org/en/download/sub/4801531\n INFO:titley:Getting subs from http://dl.opensubtitles.org/en/download/sub/66484\n INFO:titley:Getting subs from http://dl.opensubtitles.org/en/download/sub/5116427\n INFO:titley:Getting subs from http://dl.opensubtitles.org/en/download/sub/4617238\n INFO:titley:Getting subs from http://dl.opensubtitles.org/en/download/sub/5249775\n INFO:titley:Getting subs from http://dl.opensubtitles.org/en/download/sub/4801528\n INFO:titley:Getting subs from http://dl.opensubtitles.org/en/download/sub/3490076\n INFO:titley:writing file ferris-bueller-s-day-off-1986\\10\\extraction__2\\Ferris.Bueller's.Day.Off.1986.720p.BluRay.x264-ESiR [PublicHD].srt\n INFO:titley:writing file ferris-bueller-s-day-off-1986\\11\\extraction__3\\Ferris Bueller's Day Off.Eng (SDH).srt\n INFO:titley:writing file ferris-bueller-s-day-off-1986\\12\\extraction__4\\Ferris Bueller's Day Off (ENG) (Director's Commentary).srt\n INFO:titley:writing file ferris-bueller-s-day-off-1986\\12\\extraction__4\\Ferris Bueller's Day Off CD1 (ENG) (Director's commentary).srt\n INFO:titley:writing file ferris-bueller-s-day-off-1986\\12\\extraction__4\\Ferris Bueller's Day Off CD2 (ENG) (Director's Commentary).srt\n INFO:titley:writing file ferris-bueller-s-day-off-1986\\13\\extraction__5\\Ferris Bueller's Day Off.srt\n INFO:titley:writing file ferris-bueller-s-day-off-1986\\15\\extraction__7\\fbdo-cg.srt\n INFO:titley:writing file ferris-bueller-s-day-off-1986\\16\\extraction__8\\Ferris Bueller's Day Off.srt\n INFO:titley:writing file ferris-bueller-s-day-off-1986\\17\\extraction__9\\Ferris.Buellers.Day.Off.srt\n INFO:titley:writing file ferris-bueller-s-day-off-1986\\2\\extraction__10\\Ferris Bueller's Day Off (ENG) (Hearing Impaired).srt\n INFO:titley:writing file ferris-bueller-s-day-off-1986\\2\\extraction__10\\Ferris Bueller's Day Off CD1 (ENG) (Hearing Impaired).srt\n INFO:titley:writing file ferris-bueller-s-day-off-1986\\2\\extraction__10\\Ferris Bueller's Day Off CD2 (ENG) (Hearing Impaired).srt\n INFO:titley:writing file ferris-bueller-s-day-off-1986\\3\\extraction__11\\Ferris.Bueller's.Day.Off.1986.576p.BDRip.x264.AC3-gx.en.srt\n INFO:titley:writing file ferris-bueller-s-day-off-1986\\5\\extraction__13\\Ferris.Buellers.Day.Off.1986.1080p.BluRay.x264-CiNEFiLE.ENG.srt\n INFO:titley:writing file ferris-bueller-s-day-off-1986\\6\\extraction__14\\Ferris.Bueller's.Day.Off.1986.720P.BDRip.X264-TLF.srt\n INFO:titley:writing file ferris-bueller-s-day-off-1986\\7\\extraction__15\\Ferris Bueller's Day Off Eng.srt\n INFO:titley:writing file ferris-bueller-s-day-off-1986\\9\\extraction__17\\Ferris Bueller's Day Off_BDrip_aviM1280_en.srt\n ====================\n \n 13 Subtitles found/retrived. You can use the following dialogue and the time it appears to find the matching subtitle.\n -------------------\n \n \"Whatever miles we put on,we'll take off.\"\n \n 00:26:45,800 | ferris-bueller-s-day-off-1986\\7\\extraction__15\n 00:27:58,718 | ferris-bueller-s-day-off-1986\\15\\extraction__7\n 00:27:57,842 | ferris-bueller-s-day-off-1986\\11\\extraction__3\n 00:27:57,843 | ferris-bueller-s-day-off-1986\\5\\extraction__13\n 00:27:57,840 | ferris-bueller-s-day-off-1986\\10\\extraction__2\n 00:26:48,000 | ferris-bueller-s-day-off-1986\\12\\extraction__4\n 00:27:58,194 | ferris-bueller-s-day-off-1986\\6\\extraction__14\n 00:26:48,484 | ferris-bueller-s-day-off-1986\\13\\extraction__5\n 00:26:48,440 | ferris-bueller-s-day-off-1986\\2\\extraction__10\n 00:27:57,842 | ferris-bueller-s-day-off-1986\\16\\extraction__8\n 00:27:57,842 | ferris-bueller-s-day-off-1986\\3\\extraction__11\n 00:27:58,194 | ferris-bueller-s-day-off-1986\\9\\extraction__17\n 00:26:33,484 | ferris-bueller-s-day-off-1986\\17\\extraction__9\n -------------------\n\n============\nInstallation\n============\n\nYou can install Titley using pip.\n\n$pip install titley\n$titley --name ferris\nor\n$titley --name ferris --langauge=french\n\n=============================================\nUsing Titley for already downloaded subtitles\n=============================================\nYou can use Titley if you have already downloaded some subtitle files as zips. Just run titley with the --source\noption and specify the directory in which to look for subtitles. Titley will extract the srt files from them and will\nshow the report so that you can select the right one.\n\n$titley --source=/home/mysubs/ferris\n", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://bitbucket.org/sras/titley", "keywords": null, "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "Titley", "package_url": "https://pypi.org/project/Titley/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/Titley/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://bitbucket.org/sras/titley" }, "release_url": "https://pypi.org/project/Titley/1.7/", "requires_dist": null, "requires_python": null, "summary": "To download and find matching subtitle for a movie.", "version": "1.7" }, "last_serial": 1678628, "releases": { "1.4": [ { "comment_text": "", "digests": { "md5": "a0ad8848c60e2eae697316723b7d6cba", "sha256": "89b44d093b99230277b9f2322f48376df3fcd5b9ab35cce5d4c2694d847abdd1" }, "downloads": -1, "filename": "Titley-1.4.zip", "has_sig": false, "md5_digest": "a0ad8848c60e2eae697316723b7d6cba", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14530, "upload_time": "2015-03-09T07:33:00", "url": "https://files.pythonhosted.org/packages/de/d4/c590a8e3e04a103ce9bca149d40fbe580e381aebcc93556309ef841cc999/Titley-1.4.zip" } ], "1.5": [ { "comment_text": "", "digests": { "md5": "1634a274f1907468204cc93442bac6dc", "sha256": "dbf719e3b47a229fd4b77b8902ea945101f02e8248262612cd2fb79e3578a89a" }, "downloads": -1, "filename": "Titley-1.5.zip", "has_sig": false, "md5_digest": "1634a274f1907468204cc93442bac6dc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14737, "upload_time": "2015-03-09T07:42:49", "url": "https://files.pythonhosted.org/packages/db/e8/00bc6035f2f2ae4d2a1c68d78ed6c7c5a68f43c1e4618a8f0165e55c1c6b/Titley-1.5.zip" } ], "1.6": [ { "comment_text": "", "digests": { "md5": "2e8f8f10f8357c14238dba962c0dbe9f", "sha256": "f6741c52941b0af75313b1cda8adbe054d9a84f42017815232c8748980d46357" }, "downloads": -1, "filename": "Titley-1.6.zip", "has_sig": false, "md5_digest": "2e8f8f10f8357c14238dba962c0dbe9f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14865, "upload_time": "2015-03-13T03:59:16", "url": "https://files.pythonhosted.org/packages/14/23/c0f29595277d6c168b80177c8f8db7a103fd90c9531b8ff7c8f8d678c072/Titley-1.6.zip" } ], "1.7": [ { "comment_text": "", "digests": { "md5": "2b38d4fb2e75acb9ce8cfcf05a158bb9", "sha256": "602d74ee9fd770adacb982864ecd0bf02752a9b3434f992ffbb9080666277da4" }, "downloads": -1, "filename": "Titley-1.7.tar.gz", "has_sig": false, "md5_digest": "2b38d4fb2e75acb9ce8cfcf05a158bb9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10503, "upload_time": "2015-08-15T11:07:33", "url": "https://files.pythonhosted.org/packages/4c/bb/d45a8e5e9f237b0c20f52c05d783a27b3e8b265dd36cd89d94f8f8950d2a/Titley-1.7.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "2b38d4fb2e75acb9ce8cfcf05a158bb9", "sha256": "602d74ee9fd770adacb982864ecd0bf02752a9b3434f992ffbb9080666277da4" }, "downloads": -1, "filename": "Titley-1.7.tar.gz", "has_sig": false, "md5_digest": "2b38d4fb2e75acb9ce8cfcf05a158bb9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10503, "upload_time": "2015-08-15T11:07:33", "url": "https://files.pythonhosted.org/packages/4c/bb/d45a8e5e9f237b0c20f52c05d783a27b3e8b265dd36cd89d94f8f8950d2a/Titley-1.7.tar.gz" } ] }