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

Use Token for SchedulesDirect Images and Image Index #8609

Merged
merged 2 commits into from Oct 23, 2022
Merged

Use Token for SchedulesDirect Images and Image Index #8609

merged 2 commits into from Oct 23, 2022

Conversation

anthonylavado
Copy link
Member

I have not worked on the server in a long time. Please provide guidance on how I can improve this solution.

Changes
As per the API changes on October 1st (and possibly earlier), SchedulesDirect requires the token to be used to get the available image artwork index, and for image requests. This is part of an effort by them to curb abuse of the program artwork from their data provider.

References:
https://www.schedulesdirect.org/news/056/SD-JSON-images-now-require-tokens

Issues
Likely fixes #7528, may be related to #8502.

Followup
As per the changes to the API page, the token can either be provided as a header, or as a query parameter. I didn't know how to add it as a header for the image downloads themselves, so I added it as a query.

@anthonylavado anthonylavado changed the title Use Token for SchedulesDirect Images and Use Token for SchedulesDirect Images and Image Index Oct 22, 2022
@anthonylavado anthonylavado added the stable backport Backport into the next stable release label Oct 22, 2022
@cvium
Copy link
Member

cvium commented Oct 22, 2022

I didn't know how to add it as a header for the image downloads themselves, so I added it as a query.

I think that requires that we cache the image locally and use our own API to serve it.

@anthonylavado
Copy link
Member Author

I think that requires that we cache the image locally and use our own API to serve it.

I believe we do, actually. At least during my testing, a bunch of poster.bin got saved into the Live TV cache, but yeah - if this works, it works.

@anthonylavado anthonylavado merged commit a6740bf into jellyfin:release-10.8.z Oct 23, 2022
jellyfin-bot pushed a commit that referenced this pull request Oct 29, 2022
Use Token for SchedulesDirect Images and Image Index

Original-merge: a6740bf

Merged-by: Anthony Lavado <anthonylavado@me.com>

Backported-by: Joshua M. Boniface <joshua@boniface.me>
@jellyfin-bot jellyfin-bot removed the stable backport Backport into the next stable release label Oct 29, 2022
@aniel300
Copy link

has this issue been fixed, am experiencing it

@anthonylavado
Copy link
Member Author

@aniel300 Only partially. We need to fix it further.

@aniel300
Copy link

@anthonylavado ahh gotcha, i wish i could help in terms of coding but other than that do u have an eta for a potential fix?

@aniel300

This comment was marked as spam.

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.

None yet

6 participants