mirror of
https://github.com/Rafostar/clapper.git
synced 2025-08-30 07:42:23 +02:00
YT: set the same user agent as in player client
This commit is contained in:
@@ -25,6 +25,9 @@ var YouTubeClient = GObject.registerClass({
|
|||||||
{
|
{
|
||||||
super._init({
|
super._init({
|
||||||
timeout: 5,
|
timeout: 5,
|
||||||
|
max_conns_per_host: 1,
|
||||||
|
/* TODO: share this with GstClapper lib (define only once) */
|
||||||
|
user_agent: 'Mozilla/5.0 (X11; Linux x86_64; rv:86.0) Gecko/20100101 Firefox/86.0',
|
||||||
});
|
});
|
||||||
this.initAsyncState = InitAsyncState.NONE;
|
this.initAsyncState = InitAsyncState.NONE;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user