forked from seia-soto/ohys-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
readme.txt
67 lines (52 loc) · 1.62 KB
/
readme.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
Ohys-API
========
The package refining the Ohys-Raws distribution data.
I implemented the code in TypeScript and ES module for better community
adoption of newer technologies. Supporting CommonJS module or legacies
will not be supported in any way.
[Install]
You can install the package via NPM.
$ npm i ohys-api
[API]
We removed all APIs rather than title parsing method for smaller package
footprint. Almost everyone use their own HTTP requesting package, so it's
reasonable to take over the package selection to the user world.
> parser.parse(title: string): { ... }
```javascript
import { parser } from 'ohys-api'
parser('[PROVIDER] Title 2nd season - 2 END (CH 1920x1080 x264 AAC)')
/*
{
title: {
original: 'Title',
seasonal: 'Title 2nd season',
series: '',
},
file: {
name: '[PROVIDER] Title 2nd season - 2 END (CH 1920x1080 x264 AAC)',
resolution: '1920x1080',
codec: {
video: 'x264',
audio: 'AAC',
},
},
provider: {
channel: 'CH',
},
episodes: [2],
seasons: [2],
}
*/
```
We also bundle some development only method for dynamic use of this
package, but don't use development only methods in production code. Even
in minor version changes, the development only methods can be changed at
any time.
Please, see test directory for the use of development only method.
[LICENSE]
All code rights goes to HoJeong Go <[email protected]>, the owner.
All code distributed in ISC license for free use of the code.
Don't abuse the names in this package.
Don't hide the credit of this package if you used or transformed the code
in this package.
Don't hate others by any specific reason.