Skip to content

Parses the filename of Japanese anime video into JavaScript object or an array of tagged names, which can be beautifully displayed. 解析日本动画视频的文件名为 JavaScript Object 或可标签化显示的数组。

Notifications You must be signed in to change notification settings

MagmaBlock/AnimeParser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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
}

About

Parses the filename of Japanese anime video into JavaScript object or an array of tagged names, which can be beautifully displayed. 解析日本动画视频的文件名为 JavaScript Object 或可标签化显示的数组。

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published