StupidBot Fix untuk Error No Ingredients Scraped 10 Juli 2021

Jul 9, 2021 error stupidbot fix

Buka file ini:

stupidbot > engine > recipe > content_script.js

Cek baris ke-78 sampai ke-84:

    $("li.ingredient").each(function (i) {
        var ingredient = {};
        ingredient.quantity = $(this)
            .find(".ingredient__quantity")
            .text()
            .trim();
        $(this).find(".ingredient__quantity").remove();

Ganti menjadi:

    $("li.leading-tight").each(function (i) {
        var ingredient = {};
        ingredient.quantity = $(this)
            .find(".font-semibold")
            .text()
            .trim();
        $(this).find(".font-semibold").remove();

Bisa lihat gambar jika kurang jelas.

Sebelum:

before

Sesudah:

after

Semoga membantu. :)