Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

添加弹幕适配源映射 #49

Open
truewhile opened this issue Nov 22, 2024 · 2 comments
Open

添加弹幕适配源映射 #49

truewhile opened this issue Nov 22, 2024 · 2 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@truewhile
Copy link

现在适配里面默认的是弹弹play的源,我看搜索出来有弹弹play的也有B站的,能不能做一个配置,让用户选择默认的弹幕源。弹弹的源好多都是旧弹幕或者是没有弹幕,b站的弹幕有些比弹弹的多还新,能不能把标题映射那块增强一下,让用户选映射的标题的时候选择一下默认源,如果不选默认源就以弹弹play为默认,现在是有些视频弹弹没弹幕b站有弹幕,然后默认用的弹弹的,还要每切一级手动适配一下b站的弹幕,最好把标题映射也做个菜单,让用户可以随时的修改映射和默认源选项

@truewhile
Copy link
Author

分享一下我现在用的xiaoya和alist的识别规则,大佬可以看一下放到哪里给别人用,基本能匹配个七七八八

{
  "name": "xiaoya",
  "policy": {
    "episode": {
      "regex": [
        ""
      ],
      "selector": [
        ""
      ]
    },
    "episodeTitle": {
      "regex": [
        ""
      ],
      "selector": [
        ""
      ]
    },
    "season": {
      "regex": [
        ""
      ],
      "selector": [
        ""
      ]
    },
    "title": {
      "regex": [
        "^\\(?<subgroup>[^\\]]+)\\ TV(?<episode>\\d+) \\[.*",
        "^\\(?<subgroup>[^\\]]+)\\ OVA (?<episode>\\d+) \\[.*",
        "^\\[(?<subgroup>[^\\]]+)\\] (?<title>[^\\]]+?) \\[(?<episode>\\d+)\\]",
        "(?<title>[^\\]]+?) -(?<episode>\\d+)",
        "\\[(?<subgroup>[^\\]]+)].+【(?<title>[^】]+).+ - (?<episode>\\d+) \\[",
        "^\\(?<subgroup>[^\\]]+)\\ - (?<episode>\\d+) \\[.*",
        "^\\[(?<subgroup>[^\\]]+)(?<title>[^\\]]+?) - (?<episode>\\d+)",
        "(?<title>.+?) -S(?<season>\\d+)E(?<episode>\\d+)",
        "]\\[(?<title>.+?)]\\[(?<episode>\\d+)]",
        "\\[(?<subgroup>.+?)]\\[(?<title>.+?)]\\[(?<episode>\\d+)\\]"
      ],
      "selector": [
        "//*[@id=\"root\"]/div[2]/div/nav/ol/li[6]/span",
        "//*[@id=\"root\"]/div[2]/div/nav/ol/li[5]/span",
        "//*[@id=\"root\"]/div[2]/div/nav/ol/li[4]/span",
        "//*[@id=\"root\"]/div[2]/div/nav/ol/li[3]/span",
        "//*[@id=\"root\"]/div[2]/div/nav/ol/li[7]/span",
        "//*[@id=\"root\"]/div[2]/div/nav/ol/li[8]/span",
        "//*[@id=\"root\"]/div[2]/div/nav/ol/li[9]/span"
      ]
    },
    "titleOnly": true
  }
}

@Mr-Quin Mr-Quin self-assigned this Nov 22, 2024
@Mr-Quin Mr-Quin added the enhancement New feature or request label Nov 22, 2024
@Mr-Quin
Copy link
Owner

Mr-Quin commented Nov 22, 2024

都是好建议,但是这段时间忙还得再等一两个月才有空来做这些功能了

@Mr-Quin Mr-Quin modified the milestones: 0.17.0, 0.18.0 Jan 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants