Comments (9)
Note: Work on this program has been halted in favor of its successor HappypandaX (bugs and such won't be fixed)
Unfortunately that is the current state. In not quite sure with @pewpews, but You may contact @Evolution0 who have another latest fork version of happypanda,and he may provide another patch for your issue . (or ask someone on gitter.im, but that has the least possibility to succeed)
At the current state happypanda only support certain archive and image in folder. Another alternative you can use is to put your image in a folder, and let happypanda scan it.
from happypanda.
I did try adding the path in order for Happypanda to scan it but sadly it still can't add JPEG images
from happypanda.
@YukiSakuma .jpeg
files are already supported.
Your files might've been mistagged. Try going through your log.
Also, for nhentai support, you'd have to wait for happypandax
from happypanda.
15-02 07:59 INFO gallerydb Recevied gallery: b'J:/COMIC EROS'
15-02 07:59 INFO gallerydialog Sent gallery to model
15-02 07:59 INFO executors Generating thumbnail
15-02 07:59 INFO executors Generating thumbnail
15-02 07:59 INFO utils Getting image from folder
15-02 07:59 INFO app Populating DB from directory/archive
15-02 07:59 INFO fetch Gallery folder is not empty
15-02 07:59 INFO fetch Received 6 paths
15-02 07:59 INFO fetch Treating each subfolder as gallery
15-02 07:59 WARNING fetch Unsupported file: b'J:/COMIC EROS\0002_002.jpg'
15-02 07:59 WARNING fetch Unsupported file: b'J:/COMIC EROS\0003_003.jpg'
15-02 07:59 WARNING fetch Unsupported file: b'J:/COMIC EROS\0004_004.jpg'
15-02 07:59 WARNING fetch Unsupported file: b'J:/COMIC EROS\0005_005.jpg'
15-02 07:59 WARNING fetch Unsupported file: b'J:/COMIC EROS\0006_006.jpg'
15-02 07:59 INFO fetch Local search: OK
15-02 07:59 INFO fetch Created 0 items
15-02 07:59 ERROR app Populating DB from gallery folder: Nothing was added!
This is the log
I am using Happypanda v1.0
from happypanda.
shrug
here's a couple things you can do:
- test if the files are corrupted
- test if the files really are
.jpg
and not mistagged.png
's or something else (though I'm sure this shouldn't be an issue for HP)
from happypanda.
I downloaded the archive from panda.chaika.moe (I could send you the archive link if you want to test) and the images in the archive are in JPEG format but it finally worked when I changed the file extension to PNG but TRID says the image files (even the renamed to PNG) are still JPEG
I have another folder which contains JPEG images and Happypanda is able to add them though
I also downloaded from Nhentai but Happypanda couldn't add all of them that folder is a mix of PNG (but TRID says JPEG) and JPEG files
Update: Apparently the problem was Happypanda couldn't add the downloaded archive if using the Populate from directory option. Add a new gallery option works. It now added the Nhentai folder too
Is populate from directory a bug?
from happypanda.
Hm.. after some testing I am finding the populate function to be strangely inconsistent, Took a random manga archive, extracted it, and attempted to add it with the populate function; Unsupported file. Tried the archive itself and.. worked perfectly fine. Tried this with a few others and got the same result, populating from a directory is broken.
Seems create_gallery in fetch.py might be a bit wonky, I'll see if I can figure out why. Must be something before except NotADirectoryError:
as archive handling seems to work fine.
Edit: On further examination the problem might just be in local
, populating using a directory as a source is treating every individual file as a separate path. Sticking some logs in the try/except at the top seems to confirm this, it generates a list of "directories" (but its actually filenames) rather than simply using the chosen populate directory name as the path. If the populate function isn't meant to be used to create a gallery from a single folder some checks are probably in order to prevent accidentally doing so
Edit 2: Putting the extracted folder into another folder seems to fix this, which makes sense as its meant to populate the db with multiple galleries (folders with images) correct? Definitely some checks needed as it can be misleading (possibly check to see if there is at least one subdirectory?)
@YukiSakuma Can you be more clear on what you did? Did you attempt to populate from the archive? Was the archive in a folder? Was the archive extracted?
Also send me the link either on Gitter or email (On my profile)
from happypanda.
@Evolution0 Sorry, I meant the archive was already extracted to a folder when I tried to use the Populate from directory option. I messaged the download link on Gitter
from happypanda.
Yeah looks like the same issue I ran into, the function does not seem to be meant to be used on a single directory like that but multiple subdirectories. A quick check and redirection to the add new function would be best In this case I think.
from happypanda.
Related Issues (20)
- Gallery Downloader Python AttributeError HOT 1
- Gallery Downloader "Gallery could not be added!" HOT 1
- Adding network directories HOT 2
- Sort by number of pages
- File location detection. HOT 2
- Include and exclude in metadata search HOT 1
- Metadata not working? HOT 4
- Start over HOT 32
- ImportError: No module named 'PyQt5' on Mac HOT 3
- 'It was too big' failure when import large galleries, and foldernames with " ' "9 HOT 5
- Unable to save to db - table series has no artist column HOT 4
- Changing path of monitored folders? HOT 8
- A critical error has been encountered. HOT 12
- How to set which site to check first when auto fetching metadata? HOT 5
- SyntaxError HOT 2
- Critical Error when importing database HOT 4
- Question regarding happypanda.db reading on SQLStudio HOT 2
- Metadata won't work since e-hentai re-modeled their site HOT 2
- Plz archive this HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from happypanda.