{ "info": { "author": "Jeroen F.J. Laros", "author_email": "jlaros@fixedpoint.nl", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "Intended Audience :: Science/Research", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Topic :: Scientific/Engineering" ], "description": "# Command line playlist bookkeeping\nWhen following multiple series, keeping track of which episodes were watched\ncan become a tedious task. This project aims to offload this task to a\ndatabase.\n\n\n## Installation\nVia [PyPI](https://pypi.python.org/pypi/playlistdb):\n\n pip install playlistdb\n\nFrom source:\n\n git clone https://github.com/jfjlaros/playlist.git\n cd playlist\n pip install .\n\n\n## Usage\nThe program `playlist` is used to add and remove files and to set configuration\noptions per directory, i.e., for every directory a new entry is added to the\ndatabase.\n\nThe `add` command can be used to add files, any configuration specific for\nthese files can be added with the `config` subcommand.\n\n playlist add *.mkv\n playlist config '-sid 1'\n\nThis adds all files with extension `.mkv` to the database. The configuration\n`-sid 1`, a command line option for [mplayer](http://www.mplayerhq.hu), is\nadded for the current directory.\n\nAn overview of the database contents for the current directory can be seen with\nthe `show` subcommand.\n\n $ playlist show\n Playlist:\n * 00 - Credits.mkv\n 00 - Intro.mkv\n 01 - Episode 1.mkv\n 02 - Episode 2.mkv\n 03 - Episode 3.mkv\n \n Config: -sid 1\n\nThe `*` marks the current file, this file is next in line to be played. \n\nEntries can be removed by using the `remove` subcommand:\n\n playlist remove '00 - Credits.mkv'\n\nThe current file can be retrieved with the `current` subcommand and set to a\nspecific file with the `set` subcommand. The configuration can be retrieved\nwith `show_config`:\n\n $ playlist current\n 00 - Intro.mkv\n $ playlist set '01 - Episode 1.mkv'\n $ playlist current\n 01 - Episode 1.mkv\n $ playlist show_config\n -sid 1\n\nFinally, the `next` subcommand will show the current file and will set the\ncurrent file to the next entry.\n\n $ playlist next\n 01 - Episode 1.mkv\n $ playlist next\n 02 - Episode 2.mkv\n\nThe output of these commands can be passed to any program. It may be convenient\nto make an alias for particular application, for example:\n\n alias playnext='mplayer $(playlist show_config) \"$(playlist next)\"'\n\n\n## Database\nThe database is stored in `$HOME/.cache/playlist/db.yml`. Since it is stored in\n[YAML](https://en.wikipedia.org/wiki/Yaml) format, it can easily be modified\nusing any text editor.\n\nThe database entry for our example looks as follows:\n\n```yaml\n/media/Show:\n config: -sid 1\n files:\n - 00 - Intro.mkv\n - 01 - Episode 1.mkv\n - 02 - Episode 2.mkv\n - 03 - Episode 3.mkv\n offset: 3\n```\n\nThe top-level key `/media/Show` is also the name of the directory that contains\nthe files to be played, the configuration for this directory is stored in the\n`config` variable, the file list is stored in `files`. The `offset` variable\ncontains the index of the current file. If this index is larger or equal to the\nlength of the list, then the playlist is finished.\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/jfjlaros/playlist", "keywords": "", "license": "MIT License", "maintainer": "", "maintainer_email": "", "name": "playlistdb", "package_url": "https://pypi.org/project/playlistdb/", "platform": "any", "project_url": "https://pypi.org/project/playlistdb/", "project_urls": { "Homepage": "https://github.com/jfjlaros/playlist" }, "release_url": "https://pypi.org/project/playlistdb/0.0.2/", "requires_dist": null, "requires_python": "", "summary": "playlistdb: Keep track of on disk playlists.", "version": "0.0.2" }, "last_serial": 3703499, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "784f5efc013d7f7e57174e8de7e71b4c", "sha256": "7096b329514feda1088346f422278bd53d48ee78eb3a6e59dffbd8a20de4e5fa" }, "downloads": -1, "filename": "playlistdb-0.0.1.tar.gz", "has_sig": false, "md5_digest": "784f5efc013d7f7e57174e8de7e71b4c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3701, "upload_time": "2018-03-25T09:16:51", "url": "https://files.pythonhosted.org/packages/53/7e/33a9926efac16b61f6deadd32572dd1ad903bf074b4086ac1788b6403da0/playlistdb-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "ef8eaeade9648fd3be2fa8793820aa55", "sha256": "b084c782d74e67e7b2991d3dcacfd93bd91496302faf933ad85eac85d100cbb2" }, "downloads": -1, "filename": "playlistdb-0.0.2.tar.gz", "has_sig": false, "md5_digest": "ef8eaeade9648fd3be2fa8793820aa55", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4581, "upload_time": "2018-03-25T13:27:21", "url": "https://files.pythonhosted.org/packages/fe/79/572f2a6bca8e4380787c9539e1b850eb64a43646fc27f032dd4221a2e432/playlistdb-0.0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "ef8eaeade9648fd3be2fa8793820aa55", "sha256": "b084c782d74e67e7b2991d3dcacfd93bd91496302faf933ad85eac85d100cbb2" }, "downloads": -1, "filename": "playlistdb-0.0.2.tar.gz", "has_sig": false, "md5_digest": "ef8eaeade9648fd3be2fa8793820aa55", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4581, "upload_time": "2018-03-25T13:27:21", "url": "https://files.pythonhosted.org/packages/fe/79/572f2a6bca8e4380787c9539e1b850eb64a43646fc27f032dd4221a2e432/playlistdb-0.0.2.tar.gz" } ] }