-
Notifications
You must be signed in to change notification settings - Fork 291
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
Custom user agent #156
Comments
I have no way to test it because I do not watch streams that require custom user agent, it did work #79 and nothing was changed since then. |
I put the custom useragent in to the string. Every stream I play fails when
I did a packet sniff while playing a stream I noticed the useragent was far
from what I changed it to
…On Sep 29, 2017 3:31 AM, "Valdas Vaitiekaitis" ***@***.***> wrote:
I have no way to test it because I do not watch streams that require
custom user agent, it did work #79
<#79> and nothing was
changed since then.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#156 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ATx1i2AaEA0I4opqdyNRMMzO2Z8qny8yks5snMccgaJpZM4PmvNJ>
.
|
Let me know if you need it m3u the test with now I will gladly give you one
…On Sep 29, 2017 3:20 PM, ***@***.*** wrote:
I put the custom useragent in to the string. Every stream I play fails
when I did a packet sniff while playing a stream I noticed the useragent
was far from what I changed it to
On Sep 29, 2017 3:31 AM, "Valdas Vaitiekaitis" ***@***.***>
wrote:
> I have no way to test it because I do not watch streams that require
> custom user agent, it did work #79
> <#79> and nothing was
> changed since then.
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <#156 (comment)>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/ATx1i2AaEA0I4opqdyNRMMzO2Z8qny8yks5snMccgaJpZM4PmvNJ>
> .
>
|
Yes, I need a sample stream, but I am quite busy and am not sure when I'll be able to check it. Also I need You to teach me how to check that user agent. |
It's quite simple all you need is a packet capture application installed on
the target device and capture the request being sent
…On Oct 3, 2017 4:39 AM, "Valdas Vaitiekaitis" ***@***.***> wrote:
Yes, I need a sample stream, but I am quite busy and am not sure when I'll
be able to check it.
Also I need You to teach me how to check that user agent.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#156 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ATx1i01KFUZYvixcQ7e52OP6WTN6uEnHks5sohz-gaJpZM4PmvNJ>
.
|
I packaged sniff Plex trying to play a stream
…On Oct 3, 2017 11:13 AM, "Chum lee" ***@***.***> wrote:
It's quite simple all you need is a packet capture application installed
on the target device and capture the request being sent
On Oct 3, 2017 4:39 AM, "Valdas Vaitiekaitis" ***@***.***>
wrote:
> Yes, I need a sample stream, but I am quite busy and am not sure when
> I'll be able to check it.
>
> Also I need You to teach me how to check that user agent.
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <#156 (comment)>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/ATx1i01KFUZYvixcQ7e52OP6WTN6uEnHks5sohz-gaJpZM4PmvNJ>
> .
>
|
I still have no sample stream and no idea how to check if custom user agent works or not. According to documentation page 70 this is the way to set a custom user agent:
So my plug-in sets this every time Play button is clicked (lines 274-276 in
If You want You can remove this |
send me an email at daveftw84@gmail.com
and ill send you a m3u and the correct user agent.
anyway i can send requestss thro a proxy to hide/forge the useragent?
…On Mon, Oct 9, 2017 at 5:24 AM, Valdas Vaitiekaitis < ***@***.***> wrote:
I still have no sample stream and no idea how to check if custom user
agent works or not.
According to documentation
<https://us.v-cdn.net/6025034/uploads/editor/rg/jxvpxxxt63r6.pdf> page 70
this is the way to set a custom user agent:
HTTP.Headers[’User-Agent’] = ’My Plug-in’
So my plug-in sets this every time Play button is clicked (lines 274-276
<https://github.com/Cigaras/IPTV.bundle/blob/master/Contents/Code/__init__.py#L274-L276>
in __init__.py file):
# Custom User-Agent string
if Prefs['user_agent']:
HTTP.Headers['User-Agent'] = Prefs['user_agent']
If You want You can remove this if statement and replace it with a
hard-coded declaration like mentioned above, but I doubt it will have any
effect, and there is nothing else I can suggest...
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#156 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ATx1i4Mop6vMRws3VHA8mhdkOCcGO8Uxks5sqhCGgaJpZM4PmvNJ>
.
|
m scared to post it on here. its a paid service
…On Mon, Oct 9, 2017 at 9:36 AM, Chum lee ***@***.***> wrote:
send me an email at ***@***.***
and ill send you a m3u and the correct user agent.
anyway i can send requestss thro a proxy to hide/forge the useragent?
On Mon, Oct 9, 2017 at 5:24 AM, Valdas Vaitiekaitis <
***@***.***> wrote:
> I still have no sample stream and no idea how to check if custom user
> agent works or not.
>
> According to documentation
> <https://us.v-cdn.net/6025034/uploads/editor/rg/jxvpxxxt63r6.pdf> page
> 70 this is the way to set a custom user agent:
>
> HTTP.Headers[’User-Agent’] = ’My Plug-in’
>
> So my plug-in sets this every time Play button is clicked (lines 274-276
> <https://github.com/Cigaras/IPTV.bundle/blob/master/Contents/Code/__init__.py#L274-L276>
> in __init__.py file):
>
> # Custom User-Agent string
> if Prefs['user_agent']:
> HTTP.Headers['User-Agent'] = Prefs['user_agent']
>
> If You want You can remove this if statement and replace it with a
> hard-coded declaration like mentioned above, but I doubt it will have any
> effect, and there is nothing else I can suggest...
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <#156 (comment)>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/ATx1i4Mop6vMRws3VHA8mhdkOCcGO8Uxks5sqhCGgaJpZM4PmvNJ>
> .
>
|
Work when adding
to init.py in def Start(): |
[image: Inline image 1]
…On Thu, Dec 7, 2017 at 9:49 AM, Lunaden ***@***.***> wrote:
Work when adding
ObjectContainer.user_agent = 'my-agent'
to *init.py* in def Start():
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#156 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ATx1i72hyhxVxIGys184COY3jtqBSkKnks5s-CUugaJpZM4PmvNJ>
.
|
i got it, sweet. thanks
…On Thu, Dec 7, 2017 at 6:22 PM, Chum lee ***@***.***> wrote:
On Thu, Dec 7, 2017 at 5:35 PM, Chum lee ***@***.***> wrote:
> [image: Inline image 1]
>
> On Thu, Dec 7, 2017 at 9:49 AM, Lunaden ***@***.***> wrote:
>
>> Work when adding
>>
>> ObjectContainer.user_agent = 'my-agent'
>>
>> to *init.py* in def Start():
>>
>> —
>> You are receiving this because you authored the thread.
>> Reply to this email directly, view it on GitHub
>> <#156 (comment)>,
>> or mute the thread
>> <https://github.com/notifications/unsubscribe-auth/ATx1i72hyhxVxIGys184COY3jtqBSkKnks5s-CUugaJpZM4PmvNJ>
>> .
>>
>
>
|
Just committed a new version that uses both methods to set the user agent string – the In addition to that it is now possible to specify user agent string for every stream individually using M3U attribute However I do not have a way to test it properly, that's why I did not make a release version of it jet, please test it and report Your findings. |
it works |
please add new line in your code per http-referrer i need add user agent and referrer per ini channel its posibol? |
Referer added in version 2.1.9 |
It's not working for me using the latest version I added the useragent and after a sniff I noticed it's not applying it
The text was updated successfully, but these errors were encountered: