{ "info": { "author": "Thyrst", "author_email": "thyrst@seznam.cz", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Console", "Intended Audience :: End Users/Desktop", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Programming Language :: Python :: 3.6", "Topic :: Text Processing" ], "description": "srt-timer\n=========\n\nsrt-timer simply converts subtitles from one timing to another one.\n\nUsage example\n-------------\n\nYou downloaded Fear the Walking Dead, episode 03x06, version 720p.WEB-DL-RARBG and\nyou want to have an Italian subtitles. However Italian subtitles are just\nfor the version REPACK.SVA...\n\nNow you can simply use srt-timer for convert the subtitles to the wanted version.\nFirst, you have to download English subtitles in both REPACK.SVA and 720p.WEB-DL-RARBG\nand then you can create repack2webdl.sdiff file with conversion information:\n\n.. code-block:: bash\n\n $ srt_timer make_sdiff --strip-original 11 \\\n > \"Fear the Walking Dead - 03x06 - Red Dirt.REPACK.SVA.English.C.orig.Addic7ed.com.srt\" \\\n > \"Fear the Walking Dead - 03x06 - Red Dirt.WEB-DL RARBG.English.C.orig.Addic7ed.com.srt\" \\\n > --output repack2webdl.sdiff\n\n\n``strip-original`` argument removes the preview subtitles that shouldn't be in the final version.\n\nNow you convert your Italian subtitles to 720p.WEB-DL-RARBG version with the created sdiff file:\n\n.. code-block:: bash\n\n $ srt_timer convert --sdiff repack2webdl.sdiff \\\n > \"Fear the Walking Dead - 03x06 - Red Dirt.REPACK.SVA.Italian.C.orig.Addic7ed.com.srt\" \\\n > --output italian_webdl.srt\n\n\nAnd you're done.\n\nInstallation\n------------\n\nThe package is on Pypi, so you can install it simply with ``pip install srt-timer``\n\nUsage manual\n------------\n\nFor help just type ``srt_timer --help`` or ``srt_timer [command] --help``\n\nFor all commands, the result is printed to the standard output by default.\nIf you define the ``output`` argument, then it's printed to a specified file.\n\nconvert\n^^^^^^^\n\nConvert srt file from one timing to another one.\n\nYou can use it with a sdiff file like in the usage example or you can\nconvert subtitles directly by providing ``original-timing`` and ``new-timing``\narguments instead of ``sdiff`` argument. In the second case you can also\nprovide the ``strip-original`` argument to strip surplus subtitles on the beginning\nof a file.\n\nmake_sdiff\n^^^^^^^^^^\n\nCreate a sdiff file.\n\nIt has two required arguments: srt file with original timing and srt file with wanted timing.\nOptional arguments are ``strip-original`` and ``output``.\n\nThe ``strip-original`` argument should be number of the last subtitle\nin the \"You've seen previously...\" section if it isn't desired in a new subtitle version.\nIf defined, it will trim all subtitles starting before or at the time of the provided subtitle.\n\nreverse_sdiff\n^^^^^^^^^^^^^\n\nCreate a sdiff file for the backwards conversion.\n\nThis command expects just one argument ``input`` - a sdiff file.\nIt will change its information, so it's possible to execute the opposite conversion.\n\n.. code-block:: bash\n\n $ srt_timer reverse_sdiff repack2webdl.sdiff -o webdl2repack.sdiff\n\n\nNeed help?\n----------\n\nIf you have trouble using srt-timer, make a new issue on\n`the GitHub page of the project `_\nor mail me at ``thyrst@seznam.cz``\nChangelog\n=========\n\n0.2 - 2017-07-11\n----------------\n\nAdded\n^^^^^\n\n- ``reverse_sdiff`` command to create a sdiff file for a backwards conversion\n- Simplier entrypoint ``srt_timer`` as an opposite of ``srt_timer.py``\n\n\n0.1 - 2017-07-06\n----------------\n\nAdded\n^^^^^\n\n- ``make_sdiff`` command to create a sdiff file\n- ``convert`` command to convert srt file from one timing to another one\n\n\n", "description_content_type": null, "docs_url": null, "download_url": "https://github.com/Thyrst/srt-timer/archive/0.2.tar.gz", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/Thyrst/srt-timer", "keywords": "srt subtitles timing", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "srt-timer", "package_url": "https://pypi.org/project/srt-timer/", "platform": "", "project_url": "https://pypi.org/project/srt-timer/", "project_urls": { "Download": "https://github.com/Thyrst/srt-timer/archive/0.2.tar.gz", "Homepage": "https://github.com/Thyrst/srt-timer" }, "release_url": "https://pypi.org/project/srt-timer/0.2/", "requires_dist": [ "srt" ], "requires_python": "", "summary": "Simple script for saving difference of two subtitle timings. You can than easily convert subtitle from one timing to another.", "version": "0.2" }, "last_serial": 3014910, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "fd0717d0dc7adec0f035a3afbb38c9af", "sha256": "2a56e3334d7aaaec697fa3ca3c8398ae933a6eff8b1d1988430fdbc3d95cc27e" }, "downloads": -1, "filename": "srt-timer-0.1.tar.gz", "has_sig": false, "md5_digest": "fd0717d0dc7adec0f035a3afbb38c9af", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5751, "upload_time": "2017-07-06T09:37:32", "url": "https://files.pythonhosted.org/packages/7e/c3/3830c4f83f911e2e2c2317b79de1729c4da34a597ed157a2f0f84cf753c2/srt-timer-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "5e7202a66d48c2b2e0fb3b3f6047d6c5", "sha256": "51a75b8122fb577985522d612c6144889907c8de5c16bdba46a5b16679d869a1" }, "downloads": -1, "filename": "srt_timer-0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "5e7202a66d48c2b2e0fb3b3f6047d6c5", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 9027, "upload_time": "2017-07-11T15:09:25", "url": "https://files.pythonhosted.org/packages/84/e0/ee0fa13d8c885098f86784999325013fbd2449ee0ebc5bd477e43735d9bd/srt_timer-0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "16bee46526a0295445e97f8508de4b37", "sha256": "37bceaa09916022b75166ab075b9d5a2a5cbf03e98d5deb9f8f97f58418a07ea" }, "downloads": -1, "filename": "srt-timer-0.2.tar.gz", "has_sig": false, "md5_digest": "16bee46526a0295445e97f8508de4b37", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6268, "upload_time": "2017-07-11T15:09:26", "url": "https://files.pythonhosted.org/packages/04/5f/c2864381d5e649c356d5321bbb240aae8b6ac630e76d9531e34f4b6d45b7/srt-timer-0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "5e7202a66d48c2b2e0fb3b3f6047d6c5", "sha256": "51a75b8122fb577985522d612c6144889907c8de5c16bdba46a5b16679d869a1" }, "downloads": -1, "filename": "srt_timer-0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "5e7202a66d48c2b2e0fb3b3f6047d6c5", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 9027, "upload_time": "2017-07-11T15:09:25", "url": "https://files.pythonhosted.org/packages/84/e0/ee0fa13d8c885098f86784999325013fbd2449ee0ebc5bd477e43735d9bd/srt_timer-0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "16bee46526a0295445e97f8508de4b37", "sha256": "37bceaa09916022b75166ab075b9d5a2a5cbf03e98d5deb9f8f97f58418a07ea" }, "downloads": -1, "filename": "srt-timer-0.2.tar.gz", "has_sig": false, "md5_digest": "16bee46526a0295445e97f8508de4b37", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6268, "upload_time": "2017-07-11T15:09:26", "url": "https://files.pythonhosted.org/packages/04/5f/c2864381d5e649c356d5321bbb240aae8b6ac630e76d9531e34f4b6d45b7/srt-timer-0.2.tar.gz" } ] }