• 1
  • 6
  • 7
  • 8(current)
  • 9
  • 10
  • 13
NBC Peacock Addon Request
The extractor allows you to retrieve the cookie from a Mac but that may not mean the add-on will play on a Mac.
That's my understanding anyway.

Sorry, can't edit original post.
Reply
after exporting header , how do i save as file so i can login on kodi ?
Reply
(2023-03-18, 14:39)papzy Wrote: https://github.com/Paco8/SkyExtractCookie

downloaded the macversion
after unning it 
it quickly opens a chrome window and it shuts automatically 

and says this 
An error occurred:
Handshake status 403 Forbidden
Traceback (most recent call last):
  File "SkyExtractCookie.py", line 68, in __init__
  File "SkyExtractCookie.py", line 88, in operations
  File "SkyExtractCookie.py", line 135, in get_browser_debug_endpoint
  File "websocket/_core.py", line 594, in create_connection
  File "websocket/_core.py", line 253, in connect
  File "websocket/_handshake.py", line 79, in handshake
  File "websocket/_handshake.py", line 165, in _get_resp_headers
websocket._exceptions.WebSocketBadStatusException: Handshake status 403 Forbidden

Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.

[Process completed]

It works for me fine in MacOS 10.15 (although I'm using the Brave Browser instead of Chrome). Just in case try changing the debug-port in settings.json.
Reply
(2023-03-18, 17:57)Paco8 Wrote:
(2023-03-18, 14:39)papzy Wrote: https://github.com/Paco8/SkyExtractCookie

downloaded the macversion
after unning it 
it quickly opens a chrome window and it shuts automatically 

and says this 
An error occurred:
Handshake status 403 Forbidden
Traceback (most recent call last):
  File "SkyExtractCookie.py", line 68, in __init__
  File "SkyExtractCookie.py", line 88, in operations
  File "SkyExtractCookie.py", line 135, in get_browser_debug_endpoint
  File "websocket/_core.py", line 594, in create_connection
  File "websocket/_core.py", line 253, in connect
  File "websocket/_handshake.py", line 79, in handshake
  File "websocket/_handshake.py", line 165, in _get_resp_headers
websocket._exceptions.WebSocketBadStatusException: Handshake status 403 Forbidden

Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.

[Process completed]

It works for me fine in MacOS 10.15 (although I'm using the Brave Browser instead of Chrome). Just in case try changing the debug-port in settings.json.
how do it please ?
Reply
The zip file of SkyExtractCookie includes the settings.json file. Edit it with a text editor. It's possible to change there the debug port and the browser path, in case it's not found.
Reply
@Paco8

since the headers needed are being generated by the javascript on peacock i wonder if something like this could be used - https://github.com/PiotrDabkowski/Js2Py

-----

.... otherwise im trying to narrow down where the code lives in the javascript

assuming the correct file doing the generation can be found, i did some minor research and going to www.peacocktv.com/start and entering your email it sets a cookie which is used to login on the following sign-in page

the postdata went to rango.id.peacocktv.com/signin/flex/service/international with a single payload [email protected] and that's the page that set the cookie

it returned some json with another url using userIdentifier= but it just hangs when i try to load it

the cookie set is then used during the actual sign-in at /signin

-----
EDIT:

i found the header name used, when loading /start it loads peacock_common.js?seed= and at the end of that string there is the header value "name" needed, the one you had posted before ak4ytpe4w0-a

it just changes every load, so progress at least

and then running peacock common through https://deobfuscate.io yields something interesting that looks like maybe webassembly...
Reply
(2023-03-18, 19:00)Paco8 Wrote: The zip file of SkyExtractCookie includes the settings.json file. Edit it with a text editor. It's possible to change there the debug port and the browser path, in case it's not found.

tried the brave browser didn't work 
how can can i login?  any other method , chnaged to a different port at .jason file , still got the previous feedback
want to login on firestick
was trying to generate login filekey from my mac and use it on firestick
Reply
If SkyExtractCookie doesn't work then you need to extract the cookie manually:
- In Chrome open the development tools (Ctrl + Shift + I)
- Select the Network tab
- In the field in the top left (the filter) type watch/home
- Now open https://www.peacocktv.com/watch/home
- When it gets loaded you'll see the file "home" in the development tools. Click on it
- Select the the headers tab on the right panel
- Scroll down until you see the request header, you'll find the cookie there
- Right click on it and select "copy value"
- Paste the cookie in a text editor and save the file with the name "cookie.conf"
- Copy the file in the folder userdata/addon_data/plugin.video.skyott/peacocktv in Kodi (the full path may be something like /Android/data/org.xbmc.kodi/files/.kodi/userdata/addon_data/plugin.video.skyott/peacocktv)
Reply
(2023-03-19, 00:34)Paco8 Wrote: If SkyExtractCookie doesn't work then you need to extract the cookie manually:
- In Chrome open the development tools (Ctrl + Shift + I)
- Select the Network tab
- In the field in the top left (the filter) type watch/home
- Now open https://www.peacocktv.com/watch/home
- When it gets loaded you'll see the file "home" in the development tools. Click on it
- Select the the headers tab on the right panel
- Scroll down until you see the request header, you'll find the cookie there
- Right click on it and select "copy value"
- Paste the cookie in a text editor and save the file with the name "cookie.conf"
- Copy the file in the folder userdata/addon_data/plugin.video.skyott/peacocktv in Kodi (the full path may be something like /Android/data/org.xbmc.kodi/files/.kodi/userdata/addon_data/plugin.video.skyott/peacocktv)
Great advice, thanks

Can I ask how often you need to re-do the cookie activation? Is it a case once logged in thats you?

Also, is it possible in the LIve & Upcoming section to show what is currently live, and what time other events due to start?

Thanks
Reply
(2023-03-19, 14:11)markeymark Wrote: Can I ask how often you need to re-do the cookie activation? Is it a case once logged in thats you?

I actually don't know how long the cookie last. What we do know is that if you log out of the browser where you got the cookie from, it stops working.
(2023-03-19, 14:11)markeymark Wrote: Also, is it possible in the LIve & Upcoming section to show what is currently live, and what time other events due to start?

I'll try to add it soon.
Reply
Linux still does not work
Reply
(2023-03-19, 19:02)27hectormanuel Wrote: Linux still does not work

Not supposed to
Reply
@markeymark youre going to find out along with everyone how long a cookie lasts

mine is a bit older than yours so when mine breaks ill give you a heads up and you can update yours before yours breaks too lol
Reply
(2023-03-19, 00:34)Paco8 Wrote: If SkyExtractCookie doesn't work then you need to extract the cookie manually:
- In Chrome open the development tools (Ctrl + Shift + I)
- Select the Network tab
- In the field in the top left (the filter) type watch/home
- Now open https://www.peacocktv.com/watch/home
- When it gets loaded you'll see the file "home" in the development tools. Click on it
- Select the the headers tab on the right panel
- Scroll down until you see the request header, you'll find the cookie there
- Right click on it and select "copy value"
- Paste the cookie in a text editor and save the file with the name "cookie.conf"
- Copy the file in the folder userdata/addon_data/plugin.video.skyott/peacocktv in Kodi (the full path may be something like /Android/data/org.xbmc.kodi/files/.kodi/userdata/addon_data/plugin.video.skyott/peacocktv)

created the cookie.conf file on my mac book 
how do i use it on kodi on my firestick ?
Reply
you have to copy it to your cube with whatever you usually use to copy files to cube....

i use: adb push cookie.conf /sdcard/Android/data/org.xbmc.kodi/files/.kodi/userdata/addon_data/plugin.video.skyott/peacocktv/
Reply
  • 1
  • 6
  • 7
  • 8(current)
  • 9
  • 10
  • 13

Logout Mark Read Team Forum Stats Members Help
NBC Peacock Addon Request0