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

cat-catch在firefox中无法正常工作,在edge和chrome可以正常工作 #624

Open
2 tasks done
Aurora2624 opened this issue Feb 5, 2025 · 9 comments
Open
2 tasks done

Comments

@Aurora2624
Copy link

扩展版本号 extension version

No response

浏览器 browser

Firefox

浏览器版本号 browser version

135.0

涉及网址 related URL

No response

Checklist

  • 我已在 issues 通过搜索, 未找到解决办法。 The issue observed is not already reported by searching on Github under issues
  • 我已查看 FAQ 未找到解决办法。 I've checked the FAQ but couldn't find a solution.

请详细描述问题 What actually happened?

firefox中显示
Image
edge和chrome中:

Image

@xifangczy
Copy link
Owner

测试下来没有问题。

是所有网站都会吗?偶尔出现还是一直存在?尝试重启扩展了吗?

@Seaward233
Copy link

Seaward233 commented Mar 6, 2025

猫抓 v2.5.9
Firefox v135

遇到了同样的问题,重启拓展无效,所有网站是这样。

@Seaward233
Copy link

猫抓 v2.5.9 Firefox v135

遇到了同样的问题,重启拓展无效,所有网站是这样。

重置猫抓所有设置后问题解决,再次尝试导入Edge浏览器里猫抓的设置后问题再次出现,我再试试手动设置有没有问题。

@xifangczy
Copy link
Owner

重置猫抓所有设置后问题解决,再次尝试导入Edge浏览器里猫抓的设置后问题再次出现,我再试试手动设置有没有问题。

请把设置导出来 发出来看看

@xifangczy
Copy link
Owner

xifangczy commented Mar 7, 2025

firefox会比较麻烦一点。
首先打开猫抓设置 会打开一个页面
地址例如:
moz-extension://xxxxxxxx/options.html

然后把 options.html 改成 popup.html 打开页面

moz-extension://xxxxxxxx/popup.html F12 控制台 查看错误信息。把错误信息告诉我。

xxxxxxxxx 是uuid每个用户不一致 所以需要这样操作

@xifangczy
Copy link
Owner

重置猫抓所有设置后问题解决,再次尝试导入Edge浏览器里猫抓的设置后问题再次出现,我再试试手动设置有没有问题。

edge浏览器 对扩展页面右键 检查 然后切换到控制台面板 看看有没有错误信息。或者留下你的联系方式 远程看看。
https://cat-catch.bmmmd.com/issues

@Seaward233
Copy link

Seaward233 commented Mar 8, 2025

edge导出设置控制台没有输出,火狐导入设置时控制台输出错误

TypeError: items.Type is null [init.js:201:30](moz-extension://3c274977-7549-4d20-9d4a-13e2e0f66465/js/init.js)

popup.html 报错与警告

TypeError: items.Type is null [init.js:201:30](moz-extension://3c274977-7549-4d20-9d4a-13e2e0f66465/js/init.js)

源映射错误:NetworkError when attempting to fetch resource.
源 URL:moz-extension://3c274977-7549-4d20-9d4a-13e2e0f66465/lib/hls.min.js
源映射 URL:hls.min.js.map

错误指向这里 init.js:201:30

    // 读取sync配置数据 交给全局变量G
    chrome.storage.sync.get(G.OptionLists, function (items) {
        if (chrome.runtime.lastError) {
            items = G.OptionLists;
        }
        // Ext的Array转为Map类型
        items.Ext = new Map(items.Ext.map(item => [item.ext, item]));
        // Type的Array转为Map类型
----->  items.Type = new Map(items.Type.map(item => [item.type, { size: item.size, state: item.state }]));
        // 预编译正则匹配
        items.Regex = items.Regex.map(item => {
            let reg = undefined;
            try { reg = new RegExp(item.regex, item.type) } catch (e) { item.state = false; }
            return { regex: reg, ext: item.ext, blackList: item.blackList, state: item.state }
        });
        // 预编译屏蔽通配符
        items.blockUrl = items.blockUrl.map(item => {
            return { url: wildcardToRegex(item.url), state: item.state }
        });

edge导出的设置

下载.txt

eyJFeHQiOlt7ImV4dCI6ImZsdiIsInNpemUiOjAsInN0YXRlIjp0cnVlfSx7ImV4dCI6ImhsdiIsInNpemUiOjAsInN0YXRlIjp0cnVlfSx7ImV4dCI6ImY0diIsInNpemUiOjAsInN0YXRlIjp0cnVlfSx7ImV4dCI6Im1wNCIsInNpemUiOjAsInN0YXRlIjp0cnVlfSx7ImV4dCI6Im1wMyIsInNpemUiOjAsInN0YXRlIjp0cnVlfSx7ImV4dCI6IndtYSIsInNpemUiOjAsInN0YXRlIjp0cnVlfSx7ImV4dCI6IndhdiIsInN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WRvbmUgZm9ybWF0PW1rdjprZWVwPXRydWUgIC0tZG93bmxvYWQtcmV0cnktY291bnQgNiAke3JlZmVyZXJ8ZXhpc3RzOictSCBcIlJlZmVyZXI6KlwiJ30gJHtjb29raWV8ZXhpc3RzOictSCBcIkNvb2tpZToqXCInfSAke3VzZXJBZ2VudHxleGlzdHM6Jy1IIFwiVXNlci1BZ2VudDoqXCInfSIsInBvcHVwSGVpZ2h0Ijo3MjIsInBvcHVwTGVmdCI6MTEzMiwicG9wdXBUb3AiOjI4NSwicG9wdXBXaWR0aCI6MTI4MX0=

base64转换出来是这样的

{
    "Ext": [
        {
            "ext": "flv",
            "size": 0,
            "state": true
        },
        {
            "ext": "hlv",
            "size": 0,
            "state": true
        },
        {
            "ext": "f4v",
            "size": 0,
            "state": true
        },
        {
            "ext": "mp4",
            "size": 0,
            "state": true
        },
        {
            "ext": "mp3",
            "size": 0,
            "state": true
        },
        {
            "ext": "wma",
            "size": 0,
            "state": true
        },
        {
            "ext": "wav",
            "size": 0,
            "state": true
        },
        {
            "ext": "m4a",
            "size": 0,
            "state": true
        },
        {
            "ext": "ts",
            "size": 0,
            "state": false
        },
        {
            "ext": "webm",
            "size": 0,
            "state": true
        },
        {
            "ext": "ogg",
            "size": 0,
            "state": true
        },
        {
            "ext": "ogv",
            "size": 0,
            "state": true
        },
        {
            "ext": "acc",
            "size": 0,
            "state": true
        },
        {
            "ext": "mov",
            "size": 0,
            "state": true
        },
        {
            "ext": "mkv",
            "size": 0,
            "state": true
        },
        {
            "ext": "m4s",
            "size": 0,
            "state": true
        },
        {
            "ext": "m3u8",
            "size": 0,
            "state": true
        },
        {
            "ext": "m3u",
            "size": 0,
            "state": true
        },
        {
            "ext": "mpeg",
            "size": 0,
            "state": true
        },
        {
            "ext": "avi",
            "size": 0,
            "state": true
        },
        {
            "ext": "wmv",
            "size": 0,
            "state": true
        },
        {
            "ext": "asf",
            "size": 0,
            "state": true
        },
        {
            "ext": "movie",
            "size": 0,
            "state": true
        },
        {
            "ext": "divx",
            "size": 0,
            "state": true
        },
        {
            "ext": "mpeg4",
            "size": 0,
            "state": true
        },
        {
            "ext": "vid",
            "size": 0,
            "state": true
        },
        {
            "ext": "aac",
            "size": 0,
            "state": true
        },
        {
            "ext": "mpd",
            "size": 0,
            "state": true
        }
    ],
    "M3u8Ffmpeg": false,
    "M3u8StreamSaver": true,
    "Player": "mpvd:\"${url}\" ${userAgent|exists:'--user-agent=\"*\"'} ${cookie|exists:'--cookies=yes'} --http-header-fields=${cookie|exists:'\"Cookie: *\"'} ${referer|exists:'--referrer=\"*\"'}",
    "Regex": [
        {
            "blackList": false,
            "ext": "json",
            "regex": "https://cache\\.video\\.[a-z]*\\.com/dash\\?tvid=.*",
            "state": false,
            "type": "ig"
        },
        {
            "blackList": true,
            "ext": "",
            "regex": ".*\\.bilivideo\\.(com|cn).*\\/live-bvc\\/.*m4s",
            "state": true,
            "type": "ig"
        }
    ],
    "aria2Rpc": "http://localhost:16801/jsonrpc",
    "aria2RpcToken": "fsdLw1n3GOhg",
    "copyM3U8": "while true; N_m3u8DL-RE \"${url}\" --ui-language zh-CN --tmp-dir \"/tmp/m3u8dl\" --save-dir \"/mnt/pool/rule/m3u8dl\" --save-name \"${title}_${now}\" --live-real-time-merge --live-keep-segments false --mux-after-done format=mkv:keep=true  --download-retry-count 6 ${referer|exists:'-H \"Referer:*\"'} ${cookie|exists:'-H \"Cookie:*\"'} ${userAgent|exists:'-H \"User-Agent:*\"'}; echo -e '\\a'; sleep 20; end",
    "copyOther": "${url}",
    "downStream": true,
    "enable": true,
    "enableAria2Rpc": true,
    "invoke": false,
    "invokeText": "m3u8dlre:\"${url}\" --tmp-dir \"G:\\TEMP\\m3u8dl\" --save-dir \"Y:\\m3u8dl\" --save-name \"${title}_${now}\" --live-real-time-merge --live-keep-segments false --mux-after-done format=mkv:keep=true  --download-retry-count 6 ${referer|exists:'-H \"Referer:*\"'} ${cookie|exists:'-H \"Cookie:*\"'} ${userAgent|exists:'-H \"User-Agent:*\"'}",
    "m3u8dl": 2,
    "m3u8dlArg": "\"${url|replace:\"https:\",\"https%3A\"}\" --tmp-dir \"G:\\TEMP\\m3u8dl\" --save-dir \"Y:\\m3u8dl\" --save-name \"${title}_${now}\" --live-real-time-merge --live-keep-segments false --mux-after-done format=mkv:keep=true  --download-retry-count 6 ${referer|exists:'-H \"Referer:*\"'} ${cookie|exists:'-H \"Cookie:*\"'} ${userAgent|exists:'-H \"User-Agent:*\"'}",
    "popupHeight": 722,
    "popupLeft": 1132,
    "popupTop": 285,
    "popupWidth": 1281
}

@Seaward233
Copy link

火狐重置猫抓后手动设置没问题,但导出设置再导入设置,问题又出现了

@xifangczy
Copy link
Owner

火狐重置猫抓后手动设置没问题,但导出设置再导入设置,问题又出现了

非常感谢
chrome.storage.sync.get chrome和firefox 期望有点不一致导致的 已经修复。。会尽快安排下一个版本。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants