Skip to content

Add support for images in media search#254

Open
ltctceplrm wants to merge 37 commits into
mProjectsCode:masterfrom
ltctceplrm:image2
Open

Add support for images in media search#254
ltctceplrm wants to merge 37 commits into
mProjectsCode:masterfrom
ltctceplrm:image2

Conversation

@ltctceplrm

Copy link
Copy Markdown
Contributor
  • Auto fetches images with a small delay for rate limits (200ms for most APIs and 400ms for Jikan/MALAPI)
  • If the link to the image fails to load then it uses a placeholder emoticon
  • Also fixed the bug where steamapi doesn't show the year during the selection screen (only afterwards)

UI:
image

To complete FR #248

Used the wrong branch so I had to cherry pick the commits to the origin branch

- Auto fetches images with a small delay for rate limits
- If the link to the image fails to load then it uses a placeholder emoticon
- Also fixed the bug where steamapi doesn't show the year during the selection screen (only afterwards)
@saimdeniz saimdeniz mentioned this pull request Apr 3, 2026
Comment thread src/modals/MediaDbSearchResultModal.ts Outdated
Comment thread src/modals/MediaDbSeasonSelectModal.ts Outdated
@ltctceplrm ltctceplrm marked this pull request as draft June 7, 2026 01:06
@ltctceplrm ltctceplrm marked this pull request as ready for review June 8, 2026 13:13
Comment thread packages/obsidian/src/modals/MediaDbSearchResultModal.ts
Comment thread packages/obsidian/src/modals/MediaDbSearchResultModal.ts Outdated
Comment thread packages/obsidian/src/modals/MediaDbSearchResultModal.ts Outdated
Comment thread packages/obsidian/src/modals/MediaDbSearchResultModal.ts Outdated
Comment thread packages/obsidian/src/modals/MediaItemComponent.ts Outdated
* remove hacky double underscore
* added doc comments annotating functions
* removed unneeded comments
* use .createDiv( instead of createEl('div',
@ltctceplrm

Copy link
Copy Markdown
Contributor Author

Okay I've done the fixes, the image icon does look a lot better than the emoji I used

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

Successfully merging this pull request may close these issues.

2 participants