Josh5 / TVH-IPTV-Config

Apache License 2.0
22 stars 5 forks source link

[Bug]: Images are unable to be downloaded from some sites due to missing user-agents #14

Closed Josh5 closed 2 months ago

Josh5 commented 2 months ago

Describe the Bug

Eg:

2024-06-28 23:10:28,555:ERROR:werkzeug.channels: An error occurred while updating channel image: 403 Client Error: Forbidden. Please comply with the User-Agent policy: https://meta.wikimedia.org/wiki/User-Agent_policy for url: https://upload.wikimedia.org/wikipedia/commons/thumb/3/38/FS2_logo_2015.svg/192px-FS2_logo_2015.svg.png

Steps to Reproduce

No response

Expected Behavior

No response

Screenshots

No response

Relevant Settings

No response

Version

latest

Relevant log output

No response

P-yiush07 commented 2 months ago

can you tell the steps to reproduce it ?

Josh5 commented 2 months ago

Add an image from a site like above. https://upload.wikimedia.org/wikipedia/commons/thumb/3/38/FS2_logo_2015.svg/192px-FS2_logo_2015.svg.png

Add this as a channel logo

Josh5 commented 2 months ago

This will be fixed in a few mins. Just re-writing the functions that handle this download

P-yiush07 commented 2 months ago

heyy i want to do some open source contributions, will you let me do a contribution ?

Josh5 commented 2 months ago

heyy i want to do some open source contributions, will you let me do a contribution ?

Absolutely! Join me on Discord and we can have a chat:

https://streamingtech.co.nz/discord

Message me (Josh.5) on the "tvh-iptv-config" channel