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

About the difference between api and telegram-bot search results #70

Closed
luguoguo opened this issue May 2, 2021 · 1 comment
Closed

Comments

@luguoguo
Copy link

luguoguo commented May 2, 2021

Why is the result of searching through api different from the result of searching through telegram bot, and the result of searching through telegram bot is accurate?

The pictrue url : https://i.imgur.com/KcCauwr.gif

GET https://trace.moe/api/search?url=https://i.imgur.com/KcCauwr.gif

Result:

{
"RawDocsCount": 7411114,
"CacheHit": false,
"trial": 1,
"limit": 10,
"limit_ttl": 60,
"quota": 1000,
"quota_ttl": 86400,
"RawDocsSearchTime": 0,
"ReRankSearchTime": 0,
"docs": [
{
"filename": "[Sumisora][Munto][TV][DVDRip][05][GB][X264_AAC].mp4",
"episode": 5,
"from": 433.17,
"to": 436.5,
"similarity": 0.8496170303306185,
"anilist_id": 5702,
"anime": "仰望天空的少女瞳中的世界",
"at": 434.83500000000004,
"is_adult": false,
"mal_id": 5702,
"season": "",
"synonyms": [
"Munto TV",
"The World Reflected in the Eyes of a Girl Looking Up at the Heavens"
],
"synonyms_chinese": [],
"title": "空を見上げる少女の瞳に映る世界",
"title_chinese": "仰望天空的少女瞳中的世界",
"title_english": null,
"title_native": "空を見上げる少女の瞳に映る世界",
"title_romaji": "Sora wo Miageru Shoujo no Hitomi ni Utsuru Sekai",
"tokenthumb": "1Eim73z5aeDlRrBMOZqBvCaEU"
},
{
"filename": "[Ohys-Raws] To Love-Ru Trouble - Multiplication - Mae kara Ushiro kara (DVD 1024x576 x264 AAC).mp4",
"episode": null,
"from": 667.33,
"to": 667.33,
"similarity": 0.8439356096668302,
"anilist_id": 100659,
"anime": "To LOVE-Ru Multiplication",
"at": 667.33,
"is_adult": false,
"mal_id": 35000,
"season": "",
"synonyms": [
"To LOVE-Ru (2017)",
"To Love ru: Trouble - Multiplication",
" From the Front",
" from Behind"
],
"synonyms_chinese": [],
"title": "To LOVEる -とらぶる- Multiplication ~前から後ろから~",
"title_chinese": "To LOVE-Ru Multiplication",
"title_english": null,
"title_native": "To LOVEる -とらぶる- Multiplication ~前から後ろから~",
"title_romaji": "To LOVE-Ru: Multiplication - Mae kara Ushiro kara",
"tokenthumb": "wlMaVVBoGoHACjxmwq8XFUjs"
},
{
"filename": "To Love-Ru Trouble - Multiplication - Mae kara Ushiro kara (DVD 1024x576 x264 AAC).mp4",
"episode": null,
"from": 667.25,
"to": 667.25,
"similarity": 0.8403405786159281,
"anilist_id": 21853,
"anime": "To LOVE-Ru Darkness 2nd OVA",
"at": 667.25,
"is_adult": false,
"mal_id": 31380,
"season": "",
"synonyms": [
"To Love Ru Darkness 2nd OVA"
],
"synonyms_chinese": [
"出包王女 DARKNESS 第二季 OVA",
"茶煲情緣To LOVEるDARKNESS 第二季 OVA",
"戀愛大麻煩 DARKNESS 第二季 OVA"
],
"title": "To LOVEる -とらぶる- ダークネス2nd",
"title_chinese": "To LOVE-Ru Darkness 2nd OVA",
"title_english": null,
"title_native": "To LOVEる -とらぶる- ダークネス2nd",
"title_romaji": "To LOVE-Ru Darkness 2nd OVA",
"tokenthumb": "d6MYP2emJAa4jXz3R0MkbiHVA"
},
{
"filename": "[Ohys-Raws] Aikatsu Friends! - 20 (TX 1280x720 x264 AAC).mp4",
"episode": 20,
"from": 448,
"to": 448.25,
"similarity": 0.8285430726510286,
"anilist_id": 101043,
"anime": "星夢學園 Friends!",
"at": 448.125,
"is_adult": false,
"mal_id": 37204,
"season": "",
"synonyms": [],
"synonyms_chinese": [
"偶像活動 Friends!",
"偶像學園 Friends!"
],
"title": "アイカツフレンズ!",
"title_chinese": "星夢學園 Friends!",
"title_english": null,
"title_native": "アイカツフレンズ!",
"title_romaji": "Aikatsu Friends!",
"tokenthumb": "lRQjn3eudml6TCftmF9h57d26RY"
},
{
"filename": "[Ohys-Raws] Arte - 04 (MX 1280x720 x264 AAC).mp4",
"episode": 4,
"from": 350.58,
"to": 351.08,
"similarity": 0.8282755500520972,
"anilist_id": 110547,
"anime": "Arte",
"at": 350.83,
"is_adult": false,
"mal_id": 40128,
"season": "",
"synonyms": [],
"synonyms_chinese": [
"阿爾蒂"
],
"title": "アルテ",
"title_chinese": "Arte",
"title_english": "Arte",
"title_native": "アルテ",
"title_romaji": "Arte",
"tokenthumb": "TEcOiv6DumsJUkzFGHVNyIviA7g"
},
{
"filename": "[DMG&DHR][DATE A LIVE][01][BIG5][720P][AVC_AAC].mp4",
"episode": 1,
"from": 271.33,
"to": 271.33,
"similarity": 0.8275798090128962,
"anilist_id": 15583,
"anime": "Date A Live",
"at": 271.33,
"is_adult": false,
"mal_id": 15583,
"season": "",
"synonyms": [],
"synonyms_chinese": [
"約會大作戰"
],
"title": "デート・ア・ライブ",
"title_chinese": "Date A Live",
"title_english": "Date A Live",
"title_native": "デート・ア・ライブ",
"title_romaji": "Date A Live",
"tokenthumb": "eXVq2gBayT4DMlhFcPfHcsh2yVM"
},
{
"filename": "(btpig)_Nabari_No_Ou_19.mp4",
"episode": 19,
"from": 569,
"to": 569,
"similarity": 0.827397542383693,
"anilist_id": 3655,
"anime": "隱之王",
"at": 569,
"is_adult": false,
"mal_id": 3655,
"season": "",
"synonyms": [
"Nabari no Oh",
"King of Nabari"
],
"synonyms_chinese": [
"隱王"
],
"title": "隠の王",
"title_chinese": "隱之王",
"title_english": null,
"title_native": "隠の王",
"title_romaji": "Nabari no Ou",
"tokenthumb": "5m1Rae3ovyCP3tWoHBeNIOeYRo"
},
{
"filename": "(18禁アニメ) After... THE ANIMATION 第1章 (PS3アプコン DVD 960x720 x264 AAC).mp4",
"episode": null,
"from": 304.25,
"to": 304.25,
"similarity": 0.8271225839954585,
"anilist_id": 3711,
"anime": "After... The Animation",
"at": 304.25,
"is_adult": true,
"mal_id": 3711,
"season": "",
"synonyms": [],
"synonyms_chinese": [],
"title": null,
"title_chinese": "After... The Animation",
"title_english": "After... The Animation",
"title_native": null,
"title_romaji": "After... The Animation",
"tokenthumb": "mqSH1n2YAAZGComs4rCesMRXMI"
},
{
"filename": "[dmhy][ARIA_The_ORIGINATION][07][DVDRIP][x264_AAC].mp4",
"episode": 7,
"from": 9.75,
"to": 10.25,
"similarity": 0.8270611019371625,
"anilist_id": 3297,
"anime": "ARIA The ORIGINATION",
"at": 10,
"is_adult": false,
"mal_id": 3297,
"season": "",
"synonyms": [
"アリア ジ オリジネーション"
],
"synonyms_chinese": [
"水星領航員 第三季"
],
"title": "ARIA The ORIGINATION",
"title_chinese": "ARIA The ORIGINATION",
"title_english": "ARIA The ORIGINATION",
"title_native": "ARIA The ORIGINATION",
"title_romaji": "ARIA The ORIGINATION",
"tokenthumb": "cgpQQi0dgnXeugZZQXMPosIlznU"
},
{
"filename": "[Ohys-Raws] ID Invaded - 08 (BS11 1280x720 x264 AAC).mp4",
"episode": 8,
"from": 820.42,
"to": 823.5,
"similarity": 0.8264555913161169,
"anilist_id": 110350,
"anime": "ID: INVADED",
"at": 821.96,
"is_adult": false,
"mal_id": 40046,
"season": "",
"synonyms": [
"异度侵入 ID:INVADED"
],
"synonyms_chinese": [],
"title": "イド:インヴェイデッド",
"title_chinese": "ID: INVADED",
"title_english": "ID: INVADED",
"title_native": "イド:インヴェイデッド",
"title_romaji": "ID: INVADED",
"tokenthumb": "cro2tedGKGJbgE6kxS89SM4p4c"
}
]
}

The Telegram-Bot result:

Selection_069

Telegram-bot gives the only correct answer, the result given by api is completely wrong.

@luguoguo luguoguo changed the title About the difference between api and telegram search results About the difference between api and telegram-bot search results May 2, 2021
@soruly
Copy link
Owner

soruly commented May 2, 2021

Maybe your gif sent via Telegram bot is different from the one on imgur.
I tried sending your image url to the telegram bot, it gives the same (wrong) result as the API.
image

I tried again using your screencap (as a still image) and it's giving correct result.
Note that when sending GIFs, the search engine will only use the first frame of GIF for searching. Different frames from the same GIF file may return different results.

@soruly soruly closed this as completed May 8, 2021
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

2 participants