AlexandreSenpai / Enma

Enma is a Python library designed to fetch and download manga and doujinshi data from many sources including Manganato and NHentai.
MIT License
80 stars 16 forks source link

Tags feature is not working #48

Closed boredhero closed 9 months ago

boredhero commented 9 months ago

the genres (which I presume would be representative of tags) for NHentai, is returning an empty list always. This makes it impossible to filter results by tags.

boredhero commented 9 months ago

Also noticed author is always returning null.

AlexandreSenpai commented 9 months ago

This is the new representation example of a Manga from Enma's NHentai Source:

Manga(id=184536,
      created_at=datetime.datetime(2023, 10, 4, 1, 49, 20, 886944),
      updated_at=datetime.datetime(2023, 10, 4, 1, 49, 20, 886950),
      title=Title(english='(C91) [sagejoh (sage joh)] Chichimonogatari '
                          '(Bakemonogatari) [English] [EYEPOP]',
                  japanese='(C91) [サゲジョー (sage・ジョー)] 乳物語 (化物語) [英訳]',
                  other='Chichimonogatari'),
      authors=['sage joh'],
      genres=[Genre(name='ffm threesome', id=15348),
              Genre(name='group', id=8010),
              Genre(name='big breasts', id=2937),
              Genre(name='defloration', id=20525),
              Genre(name='glasses', id=8378),
              Genre(name='schoolgirl uniform', id=10314),
              Genre(name='sole male', id=35763)],
      chapters=[Chapter(id=0,
                        pages=[Image(uri='https://i.nhentai.net/galleries/1017086/1.jpg',
                                     width=1276,
                                     height=1800),
                               Image(uri='https://i.nhentai.net/galleries/1017086/2.jpg',
                                     width=419,
                                     height=600),
                               Image(uri='https://i.nhentai.net/galleries/1017086/3.jpg',
                                     width=1242,
                                     height=1800)])],
      chapters_count=1,
      cover=Image(uri='https://t.nhentai.net/galleries/1017086/cover.jpg',
                  width=350,
                  height=494),
      thumbnail=Image(uri='https://t.nhentai.net/galleries/1017086/thumb.jpg',
                      width=250,
                      height=353))

Manganato follows the same recipe. In the future i'm going to implement genre/tag filter at doujin search for NHentai source.

Thank you for opening this issue and for using Enma. (*  ̄︿ ̄)

AlexandreSenpai commented 9 months ago

You can upgrade enma to v2.1.2 using

pip install --upgrade enma
boredhero commented 9 months ago

You can upgrade enma to v2.1.2 using

pip install --upgrade enma

You're a real G, thanks.