openzim / youtube

Create a ZIM file from a Youtube channel/username/playlist
GNU General Public License v3.0
43 stars 26 forks source link

Fixed #130: removed retrieval of now deprecaed banner image fom API #131

Closed rgaudin closed 3 years ago

rgaudin commented 3 years ago

Youtube has deprecated the brandingSettings.image dict in channel info:

Unfortunately, there's no apparent way to retrieve this information anymore. Given channels without a banner don't display a default banner background anymore, it may indicate a transition to removing banners completely in the future…

youtube-dl doesn't have access to banners neither. Banner url is only part of inline CSS rule in the youtube page.

This fixes the crash and replace all banners with a default banner.