Giter VIP home page Giter VIP logo

Comments (12)

Zekfad avatar Zekfad commented on May 30, 2024

As part of this I'll probably incorporate fetch_client to increase browser compatibility, do you have any requests for API changes for stable 1.0.0 release?

from nhentai_dart.

WeebNetsu avatar WeebNetsu commented on May 30, 2024

Allowing us to search / filter by language and author would also be great!

While we're here, I've also noticed that search responds with API Exception: does not exist whenever you search for some terms (such as furry, baka and dragon ball)

from nhentai_dart.

Zekfad avatar Zekfad commented on May 30, 2024

You can already do that.

  const tag = nh.Tag(
    id: 0,
    type: nh.TagType.language,
    name: 'english',
    count: 0,
    url: '',
  );

  final q = '${const nh.SearchQueryTag(tag)}';
  final res = await api.search(q).first;

But I admit, it's not so nice with this approach, I'll address it.

As for terms, that is a known API limitation, see Zekfad/nhentai-api#19 for more info.
I might add search via site and HTML parsing, but that's out of the scope of this package, I still can do it as a separate package I think.

from nhentai_dart.

WeebNetsu avatar WeebNetsu commented on May 30, 2024

Both of those would be great! Thank you a ton!

from nhentai_dart.

Zekfad avatar Zekfad commented on May 30, 2024

@WeebNetsu I've pushed changes to master, you can use dependency override to point your pubspec to git.

  nhentai:
    git:
      url: https://github.com/Zekfad/nhentai_dart
      ref: master

from nhentai_dart.

WeebNetsu avatar WeebNetsu commented on May 30, 2024

Thank you my friend! :)

from nhentai_dart.

WeebNetsu avatar WeebNetsu commented on May 30, 2024

Is there by any chance a way to do a search, but then to exclude specific tags from the search?

from nhentai_dart.

Zekfad avatar Zekfad commented on May 30, 2024

Sure, just add minus before tag search query. Check info page on site, there is syntax help. Also check tags example on master branch.

from nhentai_dart.

WeebNetsu avatar WeebNetsu commented on May 30, 2024

Ahh, yes, you are correct, thank you!

from nhentai_dart.

WeebNetsu avatar WeebNetsu commented on May 30, 2024

Can we potentially hide or include specific books based on a query search? Such as hide/filter out 177013 and 544301 on a query search? Like how we can do with tags?

from nhentai_dart.

Zekfad avatar Zekfad commented on May 30, 2024

Use stream methods, e.g. where. I don't think there's a way to refine query to exclude particular books.

from nhentai_dart.

WeebNetsu avatar WeebNetsu commented on May 30, 2024

Ahh, damn, I see :')

from nhentai_dart.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.