def index_manga
      count_before = Mangdown::DB::Manga.count

      Mangdown.adapters.each do |name, adapters|
        adapters.manga_list.each do |manga|
          Mangdown::DB::Manga.find_or_create(
            adapter: name.to_s,
            url: manga.url,
            name: manga.name
          )
        end
      end

      count_after = Mangdown::DB::Manga.count

      logger.info("#{count_after} manga, #{count_after - count_before} new")
    end
def index_manga
      count_before = Mangdown::DB::Manga.count

      Mangdown.adapters.each do |name, adapters|
        adapters.manga_list.each do |manga|
          Mangdown::DB::Manga.find_or_create(
            adapter: name.to_s,
            url: manga.url,
            name: manga.name
          )
        end
      end

      count_after = Mangdown::DB::Manga.count

      logger.info("#{count_after} manga, #{count_after - count_before} new")
    end
rubocop:disable Metrics/MethodLength
 load manga into sqlite db