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

Go through images sequentially? #15

Open
BharatBlade opened this issue Sep 8, 2020 · 1 comment
Open

Go through images sequentially? #15

BharatBlade opened this issue Sep 8, 2020 · 1 comment

Comments

@BharatBlade
Copy link

I love your addon. I made something similar using javascript in the styling of cards. The problem with JS is that it can't save information between cards, so I was forced to pick images randomly.

However you made an addon in python that does the same thing. I was wondering if it was possible to go through a folder of images sequentially with your addon. I tried digging around your code and found ways to modify your code to change how the images are displayed (I use personal image sets that need to be resized to fit the screen without losing resolution, thanks for writing neat code).

However I'm not a python programmer (I do Java/JS/AutoIT), and I couldn't find where you actually pick which image is displayed (I probably was just looking in the wrong files or something). Could you give me a direction of where I could find the code that selects the image? I could probably have the addon read a text file for a counter or something, and then have it rewrite the file with the new counter value.

The main reason this would really help me is to optimize my current method of displaying ordered/sequential manga and anime vids. Right now I use JS and nodejs/npm to display the next page of manga at the bottom of each anki card's answer. I have also split anime mp4s into 1MB files (about 5-10sec) and the same can be applied to these videos. All this is done in simple JS and HTML. Since you display the image in HTML, I can apply the same code there, as long as I can make the addon pick files incrementally. Please let me know if you can help me out and I would be happy to share any of my code for viewing manga/anime if interested. Thanks again for sharing this addon!

@lovac42
Copy link
Owner

lovac42 commented Nov 4, 2020

It's been some time since I touched the code, but it should be this line here: https://github.com/lovac42/Fanfare/blob/master/src/fanfare/loots.py#L78

I understand your method, but I don't use manga/anime as they are too long and distracting. I import small comics like Peanuts and Garfield into Anki, then use it with randomization. It comes out to about 1 comic per 30 reviews. This also helps me apply SRS to these small life-lessons with the IM set to 400%.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants