Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No cover when using local manga #932

Closed
diksm8 opened this issue Aug 14, 2017 · 25 comments
Closed

No cover when using local manga #932

diksm8 opened this issue Aug 14, 2017 · 25 comments
Labels

Comments

@diksm8
Copy link

diksm8 commented Aug 14, 2017

No cover when using local manga. Changing the cover using the edit button updates the cover.png file but the cover does not update. Tried rebooting phone and using the app for a while but it still does not show.

Version: 0.6.1
OxygenOS 4.5.8 Android 7.1.1

@averms
Copy link

averms commented Sep 13, 2017

I had the same problem, same OS. Reinstalling the app fixed it for me.

@Basha0
Copy link

Basha0 commented Sep 28, 2017

U can fix that by choosing the Manga with no cover, go then to info and refresh the info, the the cover gets updated and it will be shown.

@arkon
Copy link
Member

arkon commented Mar 9, 2020

As mentioned in #2681:

  1. Unbookmark the manga / remove it from your library (Optionally move the manga out of the local manga folder.
  2. Clear Database in advanced settings
  3. Re-add the manga from local manga

This would be a method to fully remove the manga from the internal database so it can be added with a fresh cover.

@arkon arkon added this to the 0.9.0 milestone Mar 9, 2020
@arkon
Copy link
Member

arkon commented Mar 9, 2020

Related PR: #1669

@arkon arkon removed this from the 0.9.0 milestone Apr 26, 2020
@Neshura87
Copy link

Local Manga Cover not showing up in Library, cover.jpg is inside the manga directory, path is Phone/Tachiyomi/local/Manga/cover.jpg so I hope that is the correct one.
Followed the Trouble Shooting steps but this did not solve the issue

@scb261
Copy link
Member

scb261 commented Oct 2, 2020

There was PR with attempt to fix it (and was closed for some reason) so I'm not sure if the source of the problem was found, but here are steps to reproduce the issue:

  1. Create folder /Tachiyomi/local/Manga.
  2. Leave the folder empty or create wrong structure that Tachiyomi doesn't understand (for example add pages directly in the manga folder without chapter folders). Don't add any cover.jpg.
  3. Go to Local source and see blank cover (since there isn't any cover.jpg and the app doesn't see any chapters to take cover from it).
  4. Now fix the manga folder: add cover.jpg and/or add chapter folders with images
  5. Go back to the manga in the app. You can also try to reopen the app hoping that will reload covers.

Expected behavior: the app loads cover from cover.jpg or from first chapter.

Actual behavior: the cover stays blank and you need to clear database to fix it.

@naxil
Copy link

naxil commented Jan 14, 2021

Fix for me the "refresh manga cover" on advanced settings

@sQVe
Copy link

sQVe commented Sep 10, 2021

I saw this issue as and had to downgrade to 0.11.1 for it to work again and generate the proper covers.

@arkon arkon mentioned this issue Oct 1, 2021
7 tasks
@raniesantos
Copy link

So this is a bug where the cause of it is just unknown???????

@Nonamow
Copy link

Nonamow commented Oct 3, 2021

I cleaned the database(after removing bookmarks), but this error remained.

@Nonamow
Copy link

Nonamow commented Oct 3, 2021

Well... I tried to create a new totally clean emulator. It still doesn't work.

image
image

@Nonamow
Copy link

Nonamow commented Oct 3, 2021

Ok. I manually created cover and then clicked "refresh library manga covers" (actually the manga wasn't in the library). It works. Win? I don't think so.

@Nonamow
Copy link

Nonamow commented Oct 3, 2021

Or maybe you should use both refresh lib and clear db after manually creating the cover.

@it0na72
Copy link

it0na72 commented Oct 18, 2021

Tried everything in this page that was suggested - including the guidelines on the website and still didn't work. What worked was downloading the preview version, clicking on a random picture and "set as cover" inside the app. However, it only worked for 1 manga, then stopped working. Any info on this?

@Nonamow
Copy link

Nonamow commented Oct 18, 2021

Ok. Maybe you make some little mistakes. So for repeat and sum up. This works for me:

  1. (Manga not at the library)
  2. Create correct cover file.
  3. Clear db and refresh lib's covers from the same menu.
  4. Now you can see your cover.
  5. And then if you need:
    Use set as cover
    Refresh covers from menu or restart app

@sQVe
Copy link

sQVe commented Oct 18, 2021

@it0na72 I've been struggling for this for quite some time and, for me, there's no real good work-around. The only thing that consistently works for me it to use the version listed here: #932 (comment)

@it0na72
Copy link

it0na72 commented Oct 18, 2021

@Nonamow yea that worked, however that only worked when I downgraded to the version @sQVe mentioned. Everything seems to be sorted now. Hopefully this gets fixed eventually in the next versions. Thanks guys.

@Nonamow
Copy link

Nonamow commented Oct 18, 2021

This situation...
I must automatized my solution! Run this python script at "Tachiyomi/local" and it will copy cover from "default cover" (you should create it) to all folder without cover.jpg (only jpg?! not ok. But just for now):

import os
import shutil

def default_cover_error(err_code):
    print(err_code)
    
def main():
    if os.path.isdir("default cover"):
        if os.path.isfile("default cover/cover.jpg"):
            for obj in os.listdir():
                if (os.path.isdir(obj) and not (obj == "default cover") and not (os.path.isfile(obj+"/cover.jpg"))):
                    shutil.copy("default cover/cover.jpg", obj+"/cover.jpg")
                    
        else:
            default_cover_error("cover")
    else:
        default_cover_error("dir")
    
if __name__ == "__main__":
    main()

@Nonamow
Copy link

Nonamow commented Oct 18, 2021

And you still should manually do 3-5.

@Nonamow
Copy link

Nonamow commented Oct 18, 2021

So if I create an android app that can copy really cover, not just default, it will make it easier. And then it turns out that there is a bug in my application... So someone will create app to fix bug...

@pea-ppod
Copy link

I installed 0.10.12 (from 0.12.3) and it works just fine, covers and all

@arkon
Copy link
Member

arkon commented Oct 30, 2021

Potentially fixed by #6127. Please open another issue (if there isn't one) if the issue still persists in the next preview/stable build.

@arkon arkon closed this as completed Oct 30, 2021
@sQVe
Copy link

sQVe commented Oct 30, 2021

@arkon Great news 🎉

How do I know if this fix is included in a preview releases? 🤔

@arkon
Copy link
Member

arkon commented Oct 30, 2021

It's in the most recent release: https://github.com/tachiyomiorg/tachiyomi-preview/releases/tag/r3931

@sQVe
Copy link

sQVe commented Oct 31, 2021

@arkon Covers are working fine for me on latest preview after nuking cache etc! 🥳

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 2, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests