1.0.9 • Published 7 months ago

anime-file-parser v1.0.9

Weekly downloads
-
License
ISC
Repository
github
Last release
7 months ago

AnimeParser

Parses the filename of Japanese anime video into JavaScript object or an array of tagged names, which can be beautifully displayed.

解析日本动画视频的文件名为 JavaScript Object 或可标签化显示的数组。

Usage

import parseFileName from 'index.js'

parseFileName('[MingY&LavaAnimeSub] Onii-chan wa Oshimai! [11][1080p][CHS&JPN].mp4')
// Result:

{
  animeTitle: 'Onii chan wa Oshimai!',
  animeYear: null,
  episode: 11,
  extensionName: {
    result: 'MP4视频',
    type: 'video',
    raw: 'mp4',
    trueName: '[MingY&LavaAnimeSub] Onii-chan wa Oshimai! [11][1080p][CHS&JPN]'
  },
  fileName: '[MingY&LavaAnimeSub] Onii-chan wa Oshimai! [11][1080p][CHS&JPN].mp4',
  groups: [
    { result: 'MingYSub', raw: 'MingY', type: 'group' },
    { result: '熔岩动画Sub', raw: 'LavaAnimeSub', type: 'group' }
  ],
  videoSource: [],
  videoQuality: [ { result: '1080P', raw: '1080p', type: 'quality' } ],
  videoSubtitle: [],
  otherInfo: [],
  tagedName: [
    { result: 'MingYSub', raw: 'MingY', type: 'group' },
    { result: '熔岩动画Sub', raw: 'LavaAnimeSub', type: 'group' },
    'Onii',
    'chan',
    'wa',
    'Oshimai!',
    '11',
    { result: '1080P', raw: '1080p', type: 'quality' },
    { result: '简日双语', raw: 'CHS&JPN', type: 'subtitle' }
  ],
  noBrowser: false
}
1.0.9

7 months ago

1.0.8

10 months ago

1.0.7

10 months ago

1.0.6

11 months ago

1.0.5

11 months ago

1.0.4

12 months ago

1.0.3

12 months ago

1.0.2

12 months ago

1.0.1

12 months ago

1.0.0

12 months ago