Question about the title language #2
-
Hey, I have a question about the titles. If I call an Object like: client = phub.Client() title = video.title then the title is sometimes in french. I guess this is because some videos are translated in multiple languages. I wanted to ask, if it is possible to specify English as the language for fetching the title. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hello. phub.consts.HEADERS['Accept-Language'] = 'en,en-US' This will override the default requests language value ( |
Beta Was this translation helpful? Give feedback.
Implemented with 63ef9d2 :)
The default language is now english but you can change that while initialising the client:
All objects created with this client will inherit that language.