Skip to content

檢查更新判斷方式問題 #412

Description

@rickchen16

漫畫櫃 一拳超人ONE-PUNCH MAN
https://tw.manhuagui.com/comic/7580/
的漫畫
單行本 第29卷,單行本 第30卷,單行本 第31卷,單行本 第32卷
發現這4個章節都沒有下載
觸發"檢查更新"也沒顯示有更新
進一步確認後發現

def __contains__(self, ep):
if ep.url in self.url_set:
return True
if ep.title in self.title_set:
return True
return False

這判斷會讓只要title或url有一個是一樣的
就會判斷為已經抓過

而這次遇到的就是漫畫櫃 一拳超人
在之前 url
https://tw.manhuagui.com/comic/7580/769142.html"
對應的是
單行本 重製版31卷① 煉獄無雙爆熱波動炮

但後來原本的
單行本 重製版31卷① 煉獄無雙爆熱波動炮
單行本 重製版31卷② 煉獄無雙爆熱波動炮
被合併為
單行本 第31卷
該url為https://tw.manhuagui.com/comic/7580/789718.html (原本是 單行本 重製版32卷① 祝福)

因為url確實是曾經下載過的
所以就不會再重新下載
也因此後來網頁看到的
單行本 第29卷,單行本 第30卷,單行本 第31卷,單行本 第32卷
都沒有再重新下載

是否應該把判斷方式改為
title和url都一樣才視為已經下載過?

參考資訊:
最開始的pool裡的json資料

    {
        "title": "單行本 重製版31卷① 煉獄無雙爆熱波動炮",
        "url": "https://tw.manhuagui.com/comic/7580/769142.html",
        "current_url": "https://tw.manhuagui.com/comic/7580/769142.html",
        "current_page": 117,
        "skip": false,
        "complete": true,
        "total": 116,
        "image": null
    },
    {
        "title": "單行本 重製版31卷② 煉獄無雙爆熱波動炮",
        "url": "https://tw.manhuagui.com/comic/7580/769143.html",
        "current_url": "https://tw.manhuagui.com/comic/7580/769143.html",
        "current_page": 95,
        "skip": false,
        "complete": true,
        "total": 94,
        "image": null
    },
    {
        "title": "單行本 重製版32卷① 祝福",
        "url": "https://tw.manhuagui.com/comic/7580/789718.html",
        "current_url": "https://tw.manhuagui.com/comic/7580/789718.html",
        "current_page": 91,
        "skip": false,
        "complete": true,
        "total": 90,
        "image": null
    },
    {
        "title": "單行本 重製版32卷② 祝福",
        "url": "https://tw.manhuagui.com/comic/7580/789719.html",
        "current_url": "https://tw.manhuagui.com/comic/7580/789719.html",
        "current_page": 118,
        "skip": false,
        "complete": true,
        "total": 117,
        "image": null
    },

後來的pool裡的json資料

    {
        "title": "單行本 第29卷",
        "url": "https://tw.manhuagui.com/comic/7580/769142.html",
        "current_url": "https://tw.manhuagui.com/comic/7580/769142.html",
        "current_page": 198,
        "skip": false,
        "complete": true,
        "total": 197,
        "image": null
    },
    {
        "title": "單行本 第30卷",
        "url": "https://tw.manhuagui.com/comic/7580/769143.html",
        "current_url": "https://tw.manhuagui.com/comic/7580/769143.html",
        "current_page": 208,
        "skip": false,
        "complete": true,
        "total": 207,
        "image": null
    },
    {
        "title": "單行本 第31卷",
        "url": "https://tw.manhuagui.com/comic/7580/789718.html",
        "current_url": "https://tw.manhuagui.com/comic/7580/789718.html",
        "current_page": 227,
        "skip": false,
        "complete": true,
        "total": 226,
        "image": null
    },
    {
        "title": "單行本 第32卷",
        "url": "https://tw.manhuagui.com/comic/7580/789719.html",
        "current_url": "https://tw.manhuagui.com/comic/7580/789719.html",
        "current_page": 229,
        "skip": false,
        "complete": true,
        "total": 228,
        "image": null
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions