Skip to content
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

(Done): Goodgame plugin for NEW site goodgame.ru #1518

Open
psihkakihmalo opened this issue Oct 17, 2016 · 27 comments
Open

(Done): Goodgame plugin for NEW site goodgame.ru #1518

psihkakihmalo opened this issue Oct 17, 2016 · 27 comments

Comments

@psihkakihmalo
Copy link

psihkakihmalo commented Oct 17, 2016

I'm not a programmer. But, I think, I did it... unexpectedly... at random ) ...and it works )

NOTE: It works only with http links. With https links - not. Just get rid of "s" if you see https://goodgame.ru/...

goodgame.py:
http://www42.zippyshare.com/v/iM5QeDIS/file.html
https://www.dropbox.com/s/ikd3q1o2qiu2wt9/goodgame.py?dl=0

@flijloku
Copy link

Fine!
goodgame.ru/channel/... works too!

@psihkakihmalo
Copy link
Author

they again changed the site (
...now only https ...I am here helpless ...need python-programmer
I get an error: 'socket.error' Errno 10054

@flijloku
Copy link

I have created a working plugin using it: #1160, but it is quite raw and some channels do not work (at least https://goodgame.ru/channel/Miker/):
https://yadi.sk/d/-MA5GdyrxbmN7

@psihkakihmalo
Copy link
Author

psihkakihmalo commented Oct 25, 2016

flijloku, unfortunately your plugin not works... all streams don't run... I do not know why

By the way, to run (Miker, Pomi / and others) need parse stream-page and search "objPid"

Miker: view-source:https://goodgame.ru/channel/Miker/#autoplay
Run: livestreamer hls://http://hls.goodgame.ru/hls/6.m3u8 best
alt text

Pomi: view-source:https://goodgame.ru/channel/Pomi/#autoplay
Run: livestreamer hls://http://hls.goodgame.ru/hls/pomi.m3u8 best
alt text

...: view-source:https://goodgame.ru/channel/.../#autoplay
Run: livestreamer hls://http://hls.goodgame.ru/hls/....m3u8 best
alt text

@flijloku
Copy link

flijloku commented Oct 25, 2016

Works, but with interruptions. Perhaps triggered by DDoS protection. I forgot to warn: only "best" quality. @psihkakihmalo use https://yadi.sk/d/-MA5GdyrxbmN7 (not #1160)

@intact
Copy link
Contributor

intact commented Oct 25, 2016

You can try #1527

@flijloku
Copy link

@intact 'socket.error' Errno 10054

@psihkakihmalo
Copy link
Author

flijloku, with this plugin (https://yadi.sk/d/-MA5GdyrxbmN7) (with "best" or another) I was not able to run any streams...

@flijloku
Copy link

@psihkakihmalo можешь выложить скрин команды и ошибки?

@psihkakihmalo
Copy link
Author

со всеми стримами одно и тоже
alt text

alt text

короче для себя я нашел решение (не слишком изящное правда) - напишу себе на delphi прогу-стартер для лайвстримера, она за место плугина сама будет парсить гудгейм (попробовал - работает) и генерить конечную ссылку hls://........m3u8 , а потом уже запускать лайвстример с этой прямой ссылкой. ..как запилю прогу, выложу её тут в Issues, может кому тоже пригодится

@intact
Copy link
Contributor

intact commented Oct 26, 2016

Can you watch stream through browser?

@flijloku
Copy link

flijloku commented Oct 26, 2016

@intact Yes of course!
@psihkakihmalo жаль, что не идет :( .Я смену качества прикрутил.

@psihkakihmalo
Copy link
Author

намучился с этим питоном, нифига мне в нём не понятно как что там можно исправить... зато вот delphi с библиотеками Synapse открывает и парсит защищенные https-страницы только так... на днях займусь, сделаю утилиту, чтоб goodgame.py вообще был не нужен, а всё делалось в обход него...

@intact
Copy link
Contributor

intact commented Oct 26, 2016

@flijloku can you try plugin with restored DDOS cookie support?

https://gist.github.com/intact/20e9dcc4a8580c33febf5e8a446ded4f

@flijloku
Copy link

flijloku commented Oct 26, 2016

@intact get the same:
111
And my plugin works for you? Try please(https://yadi.sk/d/-MA5GdyrxbmN7)

@intact
Copy link
Contributor

intact commented Oct 26, 2016

@flijloku Different https sites works with livestreamer? (eg. Twitch)

@flijloku
Copy link

@intact yes:
222

@flijloku
Copy link

flijloku commented Oct 26, 2016

Probably it would have helped authentication, as was done in the Twitch plugin(#1483). This is stated in https://github.com/GoodGame/API/blob/master/Streams/v2/authentication.md (unfortunately only in Russian)
Page register a new application (personal profile):
333

@intact
Copy link
Contributor

intact commented Oct 26, 2016

works for me without authentication

livestreamer https://goodgame.ru/channel/Pomi/#autoplay best
[cli][info] Found matching plugin goodgame for URL https://goodgame.ru/channel/Pomi/#autoplay
[cli][info] Available streams: 240p (worst), 480p, 720p, 1080p (best)
[cli][info] Opening stream: 1080p (hls)
[cli][info] Starting player: ffplay
[cli][info] Player closed
[cli][info] Stream ended

@flijloku
Copy link

@intact it is your plugin?How about my?

@intact
Copy link
Contributor

intact commented Oct 26, 2016

@flijloku with your plugin:

livestreamer https://goodgame.ru/channel/Pomi/#autoplay best
[cli][info] Found matching plugin goodgame for URL https://goodgame.ru/channel/Pomi/#autoplay
match <_sre.SRE_Match object; span=(0, 32), match='https://goodgame.ru/channel/Pomi'>
id Pomi
url http://api2.goodgame.ru/streams/Pomi
res <Response [200]>
match <_sre.SRE_Match object; span=(354, 376), match='"gg_player_src":"pomi"'>
[cli][info] Available streams: 240p (worst), 480p, 720p, 1080p (best)
[cli][info] Opening stream: 1080p (hls)
[cli][info] Starting player: ffplay
[cli][info] Player closed
[cli][info] Stream ended

@flijloku
Copy link

flijloku commented Oct 26, 2016

@intact it works?Yea!

@intact
Copy link
Contributor

intact commented Oct 26, 2016

@flijloku Yes

For some reason, you cannot acces web page through livestreamer. Maybe some protection?. Maybe they changed DDOS cookie name?

@flijloku
Copy link

@intact Unfortunately I do not understand this, so I can not help :(

@flijloku
Copy link

flijloku commented Oct 26, 2016

@intact I tried both your plugins on Linux(via Oracle VM VirtualBox) and it works! But on windows not work even through vpn(CyberGhost 5)

@flijloku
Copy link

flijloku commented Oct 29, 2016

@intact I am using for Windows a version "livestreamer-v1.12.2-win32-setup". Our plugins (my, your and psihkakihmalo(corrected)) work for livestreamer on Linux and for https://github.com/streamlink/streamlink/releases (streamlink-0.0.2.exe) on Windows. Now I think the problem is an error (bug or something similar) in the version of the Python library this old livestreamer build. Can you create a pull request for streamlink (maybe leaving unchanged the part relating to DDoS, to avoid problems if inclusion of protection against DDoS on site)?
Plugins that I have used (if needed): https://yadi.sk/d/IXmPIBEHxnCZf

@intact
Copy link
Contributor

intact commented Oct 29, 2016

@flijloku Goodgame accept only TLS https connections (and Python embeded with Windows livestreamer version supports only SSL).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants