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

Fix various ways of album cover download #31

Merged
merged 3 commits into from
Dec 17, 2023
Merged

Fix various ways of album cover download #31

merged 3 commits into from
Dec 17, 2023

Conversation

dcaliste
Copy link
Collaborator

@dcaliste dcaliste commented Dec 7, 2023

Close #30

katastrofos.net is now using secure HTTP, replying with a 301 moved permanently when polled on HTTP only. This issue was making the album cover download not working.

Ensure that the cache directory for covers exists. This issue, introduced by #21, was making impossible to see downloaded covers and choose one, for an artist for instance.

@Olf0
Copy link
Contributor

Olf0 commented Dec 7, 2023

Wow, thank you very much, you are quick!

This is looking very good.
I only have a single (maybe dumb) question WRT extant (i.e. CepiPerez's) code, see above.
Plus two minor ones WRT your code changes, see below.

@Olf0 Olf0 changed the title Fixes for the different cover download possibilities Fixes for various ways of album cover download Dec 7, 2023
@Olf0 Olf0 changed the title Fixes for various ways of album cover download Fix various ways of album cover download Dec 7, 2023
When listing albums, it's always for one unique artist,
so artistcount is always 1 in this context.
Ensure that the cache directory for covers
exists.

Also, properly reload the artist image in artist
list when a cover is associated to an artist.

Rewrite the text position on cover with a direct
calculation of the Y position, the anchors solution
with alternating undefined values seems not to work
properly, when a cover is associated to an artist
for instance.
katastrofos.net is now using secure HTTP, replying
with a 301 moved permanently when polled on HTTP only.

Avoid HTML parsing on the result by using the query.php
method instead of the HTML frontend provided by index.php.
@dcaliste
Copy link
Collaborator Author

Rebased on latest devel branch.

@Olf0 Olf0 merged commit 0b6bddd into devel Dec 17, 2023
1 check passed
@Olf0 Olf0 deleted the covers branch December 17, 2023 17:38
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.

[Bug] Can't download artist or album covers
2 participants