Coder Social home page Coder Social logo

Related Manga Section about mangadb HOT 16 CLOSED

nilfoer avatar nilfoer commented on July 18, 2024
Related Manga Section

from mangadb.

Comments (16)

nilfoer avatar nilfoer commented on July 18, 2024

You can use collections for that. All the collections a manga belongs to will be displayed on the book page with all the thumbnail covers.

Or do you need more than that functionality?

from mangadb.

toprak avatar toprak commented on July 18, 2024

Ah totally I forgot them, For example I could have done to create a collection that called naruto and put naruto and its sequels. My bad. To be honest it would be more nice there were related manga section while looking book's detail but it is cool too. Thanks for your reply.

from mangadb.

toprak avatar toprak commented on July 18, 2024

Collection's are nice but it is not that functional because if a manga has too many prequel and sequel it would really big trouble to keep track it, collection tag does sort mangas with their names so it would be mess and user probably lose its read order, sorry. There is no hurry, you could add this as add feature request.

from mangadb.

nilfoer avatar nilfoer commented on July 18, 2024

Could you describe what functionality you're missing exactly? I could make it so you can assign a collection index or whatever that collections use for ordering, if that helps.

from mangadb.

toprak avatar toprak commented on July 18, 2024

I am missing related series true order while adding them to collection, like there are 5 series that starts with the first one starts with p and the last one start with a, collection does add the last one as first. Giving number to collection series would work I think like 1,2,3. I am really sleep derived because of my exams I could not make any proper sentence if you did not understand I will write there again when I wake up, sorry.

from mangadb.

toprak avatar toprak commented on July 18, 2024

I think you could add, put in order mangas that on a particular collection by dragging.

from mangadb.

toprak avatar toprak commented on July 18, 2024

Well, I guess most quick solution is writing reading order to collection's name.

from mangadb.

nilfoer avatar nilfoer commented on July 18, 2024

The new version now has a page to edit the internal order of a collection and to rename the collection itself.

from mangadb.

toprak avatar toprak commented on July 18, 2024

Works like a charm! thanks for your hardworking.

from mangadb.

toprak avatar toprak commented on July 18, 2024

I get error while trying to change collections name after ordering mangas, guess it is minor bug

07:03:38 - WARNING - Could not rename collection 'Goblin Slayer Side Story: Year
 One' to 'Goblin Slayer' since the new name already exists

from mangadb.

nilfoer avatar nilfoer commented on July 18, 2024

The collection names are unique. So you have to either add the books to the already existing 'Goblin Slayer' or rename that to sth. else by going to /edit-collection/Goblin Slayer (or /edit-collection/Goblin%20Slayer) and then rename the other one. (I really should've added a way to delete a collection)

from mangadb.

toprak avatar toprak commented on July 18, 2024

tried with http://localhost:7578/book/edit-collection/Goblin%20Slayer http://localhost:7578/book/edit-collection/Goblin Slayer
I just got

 07:19:24 - ERROR - Exception on /book/edit-collection/Goblin Slayer [GET]
Traceback (most recent call last):
  File "flask\app.py", line 2292, in wsgi_app
  File "flask\app.py", line 1815, in full_dispatch_request
  File "flask\app.py", line 1718, in handle_user_exception
  File "flask\_compat.py", line 35, in reraise
  File "flask\app.py", line 1813, in full_dispatch_request
  File "flask\app.py", line 1799, in dispatch_request
  File "manga_db\webGUI\webGUI.py", line 779, in show_edit_collection
  File "flask\templating.py", line 134, in render_template
  File "flask\templating.py", line 117, in _render
  File "jinja2\environment.py", line 1090, in render
  File "jinja2\environment.py", line 832, in handle_exception
  File "jinja2\_compat.py", line 28, in reraise
  File "C:\Users\fuchi\mangadb\manga_db\webGUI\templates\edit_collection.html",
line 1, in top-level template code
    {% extends "layout.html" %}
  File "C:\Users\fuchi\mangadb\manga_db\webGUI\templates\layout.html", line 210,
 in top-level template code
    {% block body %}{% endblock %}
  File "C:\Users\fuchi\mangadb\manga_db\webGUI\templates\edit_collection.html",
line 50, in block "body"
    <div class="books-collection-grid" id="collection{{ collection_name.capitali
ze() }}">
  File "jinja2\environment.py", line 471, in getattr
jinja2.exceptions.UndefinedError: 'collection_name' is undefined
07:19:48 - INFO - 127.0.0.1 - - [08/Feb/2021 07:19:48] "←[35m←[1mGET /book/edit-
collection/Goblin%20Slayer HTTP/1.1←[0m" 500 -
07:19:48 - ERROR - Exception on /book/edit-collection/Goblin Slayer [GET]
Traceback (most recent call last):
  File "flask\app.py", line 2292, in wsgi_app
  File "flask\app.py", line 1815, in full_dispatch_request
  File "flask\app.py", line 1718, in handle_user_exception
  File "flask\_compat.py", line 35, in reraise
  File "flask\app.py", line 1813, in full_dispatch_request
  File "flask\app.py", line 1799, in dispatch_request
  File "manga_db\webGUI\webGUI.py", line 779, in show_edit_collection
  File "flask\templating.py", line 134, in render_template
  File "flask\templating.py", line 117, in _render
  File "jinja2\environment.py", line 1090, in render
  File "jinja2\environment.py", line 832, in handle_exception
  File "jinja2\_compat.py", line 28, in reraise
  File "C:\Users\fuchi\mangadb\manga_db\webGUI\templates\edit_collection.html",
line 1, in top-level template code
    {% extends "layout.html" %}
  File "C:\Users\fuchi\mangadb\manga_db\webGUI\templates\layout.html", line 210,
 in top-level template code
    {% block body %}{% endblock %}
  File "C:\Users\fuchi\mangadb\manga_db\webGUI\templates\edit_collection.html",
line 50, in block "body"
    <div class="books-collection-grid" id="collection{{ collection_name.capitali
ze() }}">
  File "jinja2\environment.py", line 471, in getattr
jinja2.exceptions.UndefinedError: 'collection_name' is undefined
07:19:48 - INFO - 127.0.0.1 - - [08/Feb/2021 07:19:48] "←[35m←[1mGET /book/edit-
collection/Goblin%20Slayer HTTP/1.1←[0m" 500 -

from mangadb.

nilfoer avatar nilfoer commented on July 18, 2024

Okay that means there are no books in that collection. The alternative way should still work, while I work on the fix.

from mangadb.

toprak avatar toprak commented on July 18, 2024

Okay good luck!

from mangadb.

nilfoer avatar nilfoer commented on July 18, 2024

In v0.24.0 it should now show you an error message in the webGUI if the name isn't unique and it should include a link to the collection that's blocking the rename. I also added a button to delete the collection and a page where all collections are listed (so you can delete collections without any books in them).

from mangadb.

toprak avatar toprak commented on July 18, 2024

It seems everythings works now, thanks for your working. If something would occur I wil let you know

from mangadb.

Related Issues (13)

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.