Metadata-Version: 2.4
Name: anime-episode-parser
Version: 0.0.14
Summary: A library to parse episode info from anime title
Keywords: anime
Author-email: Trim21 <trim21.me@gmail.com>, RicterZ <ricterzheng@gmail.com>
Requires-Python: >=3.9,<4
Description-Content-Type: text/markdown
License-Expression: MIT
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Other Audience
Classifier: Natural Language :: Chinese (Traditional)
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
License-File: LICENSE
Project-URL: homepage, https://github.com/BGmi/anime-episode-parser
Project-URL: repository, https://github.com/BGmi/anime-episode-parser

# anime-episode-parser

try parse episode info from title

```bash
poetry add anime_episode_parser
```

```python
from anime_episode_parser import parse_episode

title = '[YMDR][哥布林殺手][Goblin Slayer][2018][05][1080p][AVC][JAP][BIG5][MP4-AAC][繁中]'
assert (5, 1) == parse_episode(title)

# 5 for episode start
# 1 for episodes count

title = '[从零开始的异世界生活 第二季_Re Zero S2][34-35][繁体][720P][MP4]'
assert (34, 2) == parse_episode(title)

# 34 for episode start
# 2 for episodes count

title = "something can't parse"
assert (None, None) == parse_episode(title)
```

