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

[DEV Question] List of URLs #272

Open
Typhonragewind opened this issue Jun 13, 2023 · 2 comments
Open

[DEV Question] List of URLs #272

Typhonragewind opened this issue Jun 13, 2023 · 2 comments
Labels

Comments

@Typhonragewind
Copy link
Contributor

In multi image comic classes, is there any way to retrieve the list of gathered image urls (something like self.image_urls in comic.py) from the "self" variable at the custom namer level?

@TobiX TobiX added the question label Jun 13, 2023
@TobiX
Copy link
Member

TobiX commented Jun 13, 2023

Not really... But there are already some modules which work around this limitation, for example:

def extract_image_urls(self, url, data):
# Save link order for position-based filenames
self._cached_image_urls = super().extract_image_urls(url, data)
return self._cached_image_urls

So it would probably be a good idea to extend the standard API with these properties...

@Typhonragewind
Copy link
Contributor Author

That looks exactly like what I needed, thanks!

Do you know of other examples I could refer to? I doesn't seem to work for me, so I might be doing something wrong and want to compare to others

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

No branches or pull requests

2 participants