2014-01-13, 05:38
Is there a fix for login? (was working now suddenly stopped)
--- a/plugin/YouTubeLogin.py
+++ b/plugin/YouTubeLogin.py
@@ -188,7 +188,7 @@ class YouTubeLogin():
fetch_options = False
# Check if we are logged in.
- nick = self.common.parseDOM(ret["content"], "p", attrs={"class": "masthead-expanded-acct-sw-id2"})
+ nick = self.common.parseDOM(ret["content"], "span", attrs={"id": "yt-masthead-user-displayname"})
CurlFile::Open(0x7f0bf83a25d0) http://www.youtube.com/api/manifest/hls_playlist/id/0rrzPh1Ys5Y.1/itag/96/source/yt_live_broadcast/ratebypass/yes/live/1/cmbypass/yes/newshard/yes/hls_chunk_host/www.youtube.com/gir/yes/dg_shard/0rrzPh1Ys5Y.1_96/cp/U0hXTlZOTl9FT0NON19OSFJKOkRRUzM1aE1XMzVG/maudio/1/playlist_type/LIVE/pmbypass/yes/sver/3/upn/XHV-w4HztuM/fexp/903903,911429,914093,916623,936118,938630,936910,936913,907231,907240,921090/ip/124.170.95.47/ipbits/8/expire/1389630905/sparams/ip,ipbits,expire,id,itag,source,ratebypass,live,cmbypa
20:47:47 T:139688842815232 WARNING: FillBuffer: curl failed with code 22
(2014-01-13, 12:57)enigma83 Wrote: This fixes login for me.
Code:--- a/plugin/YouTubeLogin.py
+++ b/plugin/YouTubeLogin.py
@@ -188,7 +188,7 @@ class YouTubeLogin():
fetch_options = False
# Check if we are logged in.
- nick = self.common.parseDOM(ret["content"], "p", attrs={"class": "masthead-expanded-acct-sw-id2"})
+ nick = self.common.parseDOM(ret["content"], "span", attrs={"id": "yt-masthead-user-displayname"})
I can't get live streams to work though.
Code:CurlFile::Open(0x7f0bf83a25d0) http://www.youtube.com/api/manifest/hls_playlist/id/0rrzPh1Ys5Y.1/itag/96/source/yt_live_broadcast/ratebypass/yes/live/1/cmbypass/yes/newshard/yes/hls_chunk_host/www.youtube.com/gir/yes/dg_shard/0rrzPh1Ys5Y.1_96/cp/U0hXTlZOTl9FT0NON19OSFJKOkRRUzM1aE1XMzVG/maudio/1/playlist_type/LIVE/pmbypass/yes/sver/3/upn/XHV-w4HztuM/fexp/903903,911429,914093,916623,936118,938630,936910,936913,907231,907240,921090/ip/124.170.95.47/ipbits/8/expire/1389630905/sparams/ip,ipbits,expire,id,itag,source,ratebypass,live,cmbypa
20:47:47 T:139688842815232 WARNING: FillBuffer: curl failed with code 22
Error 22 in curl means 403, so not sure how well logins are working. I do know that my subscriptions show up, so it seems like it works.
(2014-01-13, 16:03)Pablo Martin Wrote:(2014-01-13, 12:57)enigma83 Wrote: This fixes login for me.
Code:--- a/plugin/YouTubeLogin.py
+++ b/plugin/YouTubeLogin.py
@@ -188,7 +188,7 @@ class YouTubeLogin():
fetch_options = False
# Check if we are logged in.
- nick = self.common.parseDOM(ret["content"], "p", attrs={"class": "masthead-expanded-acct-sw-id2"})
+ nick = self.common.parseDOM(ret["content"], "span", attrs={"id": "yt-masthead-user-displayname"})
I can't get live streams to work though.
Code:CurlFile::Open(0x7f0bf83a25d0) http://www.youtube.com/api/manifest/hls_playlist/id/0rrzPh1Ys5Y.1/itag/96/source/yt_live_broadcast/ratebypass/yes/live/1/cmbypass/yes/newshard/yes/hls_chunk_host/www.youtube.com/gir/yes/dg_shard/0rrzPh1Ys5Y.1_96/cp/U0hXTlZOTl9FT0NON19OSFJKOkRRUzM1aE1XMzVG/maudio/1/playlist_type/LIVE/pmbypass/yes/sver/3/upn/XHV-w4HztuM/fexp/903903,911429,914093,916623,936118,938630,936910,936913,907231,907240,921090/ip/124.170.95.47/ipbits/8/expire/1389630905/sparams/ip,ipbits,expire,id,itag,source,ratebypass,live,cmbypa
20:47:47 T:139688842815232 WARNING: FillBuffer: curl failed with code 22
Error 22 in curl means 403, so not sure how well logins are working. I do know that my subscriptions show up, so it seems like it works.
This works for me!!!!!!!!!!!!!!!!!!! After a lot of days!!!
(2014-01-13, 12:57)enigma83 Wrote: This fixes login for me.
Code:--- a/plugin/YouTubeLogin.py
+++ b/plugin/YouTubeLogin.py
@@ -188,7 +188,7 @@ class YouTubeLogin():
fetch_options = False
# Check if we are logged in.
- nick = self.common.parseDOM(ret["content"], "p", attrs={"class": "masthead-expanded-acct-sw-id2"})
+ nick = self.common.parseDOM(ret["content"], "span", attrs={"id": "yt-masthead-user-displayname"})
I can't get live streams to work though.
Code:CurlFile::Open(0x7f0bf83a25d0) http://www.youtube.com/api/manifest/hls_playlist/id/0rrzPh1Ys5Y.1/itag/96/source/yt_live_broadcast/ratebypass/yes/live/1/cmbypass/yes/newshard/yes/hls_chunk_host/www.youtube.com/gir/yes/dg_shard/0rrzPh1Ys5Y.1_96/cp/U0hXTlZOTl9FT0NON19OSFJKOkRRUzM1aE1XMzVG/maudio/1/playlist_type/LIVE/pmbypass/yes/sver/3/upn/XHV-w4HztuM/fexp/903903,911429,914093,916623,936118,938630,936910,936913,907231,907240,921090/ip/124.170.95.47/ipbits/8/expire/1389630905/sparams/ip,ipbits,expire,id,itag,source,ratebypass,live,cmbypa
20:47:47 T:139688842815232 WARNING: FillBuffer: curl failed with code 22
Error 22 in curl means 403, so not sure how well logins are working. I do know that my subscriptions show up, so it seems like it works.
(2014-01-13, 16:03)Pablo Martin Wrote:(2014-01-13, 12:57)enigma83 Wrote: This fixes login for me.
Code:--- a/plugin/YouTubeLogin.py
+++ b/plugin/YouTubeLogin.py
@@ -188,7 +188,7 @@ class YouTubeLogin():
fetch_options = False
# Check if we are logged in.
- nick = self.common.parseDOM(ret["content"], "p", attrs={"class": "masthead-expanded-acct-sw-id2"})
+ nick = self.common.parseDOM(ret["content"], "span", attrs={"id": "yt-masthead-user-displayname"})
I can't get live streams to work though.
Code:CurlFile::Open(0x7f0bf83a25d0) http://www.youtube.com/api/manifest/hls_playlist/id/0rrzPh1Ys5Y.1/itag/96/source/yt_live_broadcast/ratebypass/yes/live/1/cmbypass/yes/newshard/yes/hls_chunk_host/www.youtube.com/gir/yes/dg_shard/0rrzPh1Ys5Y.1_96/cp/U0hXTlZOTl9FT0NON19OSFJKOkRRUzM1aE1XMzVG/maudio/1/playlist_type/LIVE/pmbypass/yes/sver/3/upn/XHV-w4HztuM/fexp/903903,911429,914093,916623,936118,938630,936910,936913,907231,907240,921090/ip/124.170.95.47/ipbits/8/expire/1389630905/sparams/ip,ipbits,expire,id,itag,source,ratebypass,live,cmbypa
20:47:47 T:139688842815232 WARNING: FillBuffer: curl failed with code 22
Error 22 in curl means 403, so not sure how well logins are working. I do know that my subscriptions show up, so it seems like it works.
This works for me!!!!!!!!!!!!!!!!!!! After a lot of days!!!
Quote:
20:07:52 T:139684985935808 ERROR: GetDirectory - Error getting plugin://plugin.video.youtube/?action=settings&path=%2froot%2flogin
20:07:52 T:139684985935808 ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.youtube/?action=settings&path=%2froot%2flogin) failed
(2014-01-13, 16:03)Pablo Martin Wrote: This works for me!!!!!!!!!!!!!!!!!!! After a lot of days!!!
(2014-01-13, 12:57)enigma83 Wrote: This fixes login for me.
Code:--- a/plugin/YouTubeLogin.py
+++ b/plugin/YouTubeLogin.py
@@ -188,7 +188,7 @@ class YouTubeLogin():
fetch_options = False
# Check if we are logged in.
- nick = self.common.parseDOM(ret["content"], "p", attrs={"class": "masthead-expanded-acct-sw-id2"})
+ nick = self.common.parseDOM(ret["content"], "span", attrs={"id": "yt-masthead-user-displayname"})
I can't get live streams to work though.
Code:CurlFile::Open(0x7f0bf83a25d0) http://www.youtube.com/api/manifest/hls_playlist/id/0rrzPh1Ys5Y.1/itag/96/source/yt_live_broadcast/ratebypass/yes/live/1/cmbypass/yes/newshard/yes/hls_chunk_host/www.youtube.com/gir/yes/dg_shard/0rrzPh1Ys5Y.1_96/cp/U0hXTlZOTl9FT0NON19OSFJKOkRRUzM1aE1XMzVG/maudio/1/playlist_type/LIVE/pmbypass/yes/sver/3/upn/XHV-w4HztuM/fexp/903903,911429,914093,916623,936118,938630,936910,936913,907231,907240,921090/ip/124.170.95.47/ipbits/8/expire/1389630905/sparams/ip,ipbits,expire,id,itag,source,ratebypass,live,cmbypa
20:47:47 T:139688842815232 WARNING: FillBuffer: curl failed with code 22
Error 22 in curl means 403, so not sure how well logins are working. I do know that my subscriptions show up, so it seems like it works.
(2014-01-14, 15:55)sukkubus Wrote: Could someone pls have a little mercy and explain how to apply the fix from enigma83 ?
Thx alot
Nicole
(2014-01-14, 18:07)digzz Wrote:(2014-01-14, 15:55)sukkubus Wrote: Could someone pls have a little mercy and explain how to apply the fix from enigma83 ?
Thx alot
Nicole
Me too .....All I see is code but ain't got a clue what to do.