没有项目描述
tv-series的Python项目详细描述
电视
tv是一个轻量级的cli应用程序,可帮助您管理喜爱的电视剧。
通过使用thetvdb.com的详尽电视剧数据库,客户机允许您管理和分类您最喜爱的电视剧列表,跟踪您看过的电视剧,并查看下一集何时播出。
开始
从pypi安装包:
$ pip install tv-series
运行init
初始化应用程序。系统将要求您提供一个api密钥,您可以在thetvdb.com上生成该密钥。
$ tv init
若要添加第一个序列,请首先使用search
按序列名称查找序列。
$ tv search dexter
79349: Dexter (Ended)
Dexter Morgan is a Miami-based blood splatter expert who doesn't just solve murders; he commits them too. In fact, he's a serial killer -- but he only murders the guilty, so he feels justified with his lifestyle choices. His policewoman sister and his cop co-workers have no idea Dexter lives a double life; however, adoptive father Harry knows his secret, and does, in fact, help Dexter hone his "skills." It's a unique brand of justice for which charming Dexter feels a psychological hunger.
356343: Dexter: Early Cuts (Ended)
Animated web series providing background and depth to Dexter's character and relationships.
使用数字标识add
您要查找的序列。
$ tv add 79349
Looking up series by id 79349
Added series Dexter with default category default
现在您可以使用list
查看您的系列。它显示有96集可供观看。
$ tv list -c default
TVDB ID Series Last seen Available Next on air Status
--------- -------- ----------- ----------------- ------------- --------
79349 Dexter S01E01 (96 total) - Ended
让我们举一个不同的例子。在下面,您可以看到:
- 您已经看过《奥维尔》的第一季,但还有一季有14集可供选择
- 你已经看过《愚弄我们》,但下一集将于6月24日播出。
- 您已完成连线,将不再有任何集
$ tv list -a
TVDB ID Series Last seen Available Next on air Status
--------- ----------------------- ----------- ------------------- ------------------- ----------
328487 The Orville S01E12 S02E01 (14 total) - Continuing
239851 Penn & Teller: Fool Us S06E01 - S06E02 (2019-06-24) Continuing
79126 The Wire S05E10 - - Ended
要了解有关可用功能的更多信息,请尝试tv --help
。
数据和配置
数据和配置分别根据XDG base dir spec存储在$XDG_DATA_HOME
和$XDG_CONFIG_HOME
中。
开发
您需要python 3来处理这个项目。要安装软件包和开发工具,请运行:
$ pip install -e ".[dev]"
测试
目前没有测试套件。如果代码基变得足够大或足够复杂,则可能会添加一个。
代码样式
代码库必须遵循以下格式化程序规则: