Release - [depricated] old YouTube Plugin - XBMC 13.0 Frodo/Gotham only

  Thread Rating:
  • 28 Vote(s) - 4.14 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Thread Closed
binwiederda Offline
Senior Member
Posts: 103
Joined: Nov 2012
Reputation: 4
Post: #2911
(2013-02-14 13:35)Mossy Wrote:  Eden plugin zip: https://www.dropbox.com/l/SrdosdpacjeyvDgd

Thanks Mossy, I can confirm that it works on Eden!

For the paranoid ones, there's nothing bad happening here :-)
Code:
$ md5sum plugin.video.youtube-3.4.1b.zip
880de45802510ddbc1a948ca82c5b705  plugin.video.youtube-3.4.1b.zip

$ diff -r plugin.video.youtube plugin.video.youtube-3.4.1 | grep -v pyc
diff -r plugin.video.youtube/addon.xml plugin.video.youtube-3.4.1/addon.xml
2c2
< <addon id="plugin.video.youtube" name="YouTube" provider-name="TheCollective" version="3.4.1b">
---
> <addon id="plugin.video.youtube" name="YouTube" provider-name="TheCollective" version="3.4.1">
21c21
<     <summary lang="en">YouTube video plugin, with quick fix</summary>
---
>     <summary lang="en">YouTube video plugin</summary>
122c122
< </addon>
---
> </addon>
\ No newline at end of file
diff -r plugin.video.youtube/YouTubePlayer.py plugin.video.youtube-3.4.1/YouTubePlayer.py
22d21
< import re
25a25
>
296,300c296,312
<     
<     pattern = "yt.playerConfig\s*=\s*({.*});"
<     match = re.search(pattern, data)
<     if match is None:
<         return flashvars
---
>         found = False
>
>         for line in data.split("\n"):
>             if line.strip().startswith("var swf = \""):
>                 found = True
>                 p1 = line.find("=")
>                 p2 = line.rfind(";")
>                 if p1 <= 0 or p2 <= 0:
>                     continue
>                 data = line[p1 + 1:p2]
>                 break
>
>         if found:
>             data = json.loads(data)
>             data = data[data.find("flashvars"):]
>             data = data[data.find("\""):]
>             data = data[:1 + data[1:].find("\"")]
302,303c314,315
<     playerconfig =  json.loads(match.group(1))
<     flashvars =  playerconfig['args']
---
>             for k, v in cgi.parse_qs(data).items():
>                 flashvars[k] = v[0]
315d326
<     
319c330
<     for url_desc in flashvars[u"url_encoded_fmt_stream_map"].split(u","):
---
>         for url_desc in flashvars[u"url_encoded_fmt_stream_map"].split(u","):

Fanless Linux HTPC/NAS: Streacom FC10, ASUS P8H77-M PRO, i3-3225, Corsair LP White DDR3-1600, picoPSU-150-XT, 1x SSD 840, 2x HDD WD Red 3TB
Stats: 29W idle, 55W load, CPU 38-43°C idle, CPU 55-60°C load, HDD 42-43°C idle, HDD 47°C load

find
brantje Offline
Member
Posts: 50
Joined: Dec 2007
Reputation: 1
Post: #2912
Thanks for the fix. can finally use the play2xbmc script again Smile
find
kuroukage Offline
Junior Member
Posts: 2
Joined: Feb 2013
Reputation: 0
Post: #2913
Thanks Mossy. Really appreciate it. Smile
find
Novanod Offline
Junior Member
Posts: 3
Joined: Mar 2011
Reputation: 0
Location: Durban, South Africa
Post: #2914
Works fine now - thx for fix - just replaced YouTubePlayer.py with fix from above, for Frodo Rofl
find
jackparsons Offline
Junior Member
Posts: 37
Joined: Jan 2012
Reputation: 0
Post: #2915
(2013-02-14 13:35)Mossy Wrote:  Frodo plugin zip: https://www.dropbox.com/l/axITMmdkQzSpIuDD
Confirm this works on Frodo / Linux Mint 12.
Code:
cd .xbmc/addons/
mv plugin.video.youtube plugin.video.youtube.old
unzip plugin.video.youtube-4.4.1b.zip
find
nir.zamir Offline
Junior Member
Posts: 6
Joined: Feb 2013
Reputation: 0
Post: #2916
Hi.
Thanks for the fix.

Anyone encountered a 'script failed' error when clicking 'Search'? I ran it once and got an error, and now I can't even type the keyword..

Thanks!
find
mrbill Offline
Junior Member
Posts: 1
Joined: Jan 2013
Reputation: 0
Post: #2917
Thanks, Mossy I used the link for Frodo and it works great
find
jackparsons Offline
Junior Member
Posts: 37
Joined: Jan 2012
Reputation: 0
Post: #2918
(2013-02-15 00:14)nir.zamir Wrote:  Anyone encountered a 'script failed' error when clicking 'Search'? I ran it once and got an error, and now I can't even type the keyword..
Just tried some searches and it works fine for me.
find
salvi Offline
Member
Posts: 58
Joined: Aug 2007
Reputation: 0
Post: #2919
I searched as well and received no errors, everything seems to be working OK, subscriptions are also updating as expected.

(2013-02-02 11:19)pike Wrote:  Is this a known issue ? Whenever a youtube video has an age limit, it's impossible to play it with this add-on ?

This issue is rather annoying Smile

For some reason, to get it to work, the plugin requires that you re-login by modifying you username twice:

1. change the username it to something wrong,
2. (try to) login (with wrong username)
3. change the username back
3. login (with correct username)

Just trying to login again will not work, you actually have to get a failed login to get it to "reset".

After this age restricted videos will play when logged in without issue, at least on my Eden setup.

Please see: http://code.google.com/p/youtubexbmc/iss...tail?id=80
(This post was last modified: 2013-02-15 02:17 by salvi.)
find
spacepirate04 Offline
Junior Member
Posts: 1
Joined: Feb 2013
Reputation: 0
Post: #2920
thanks works great again
find
josecostalima Offline
Junior Member
Posts: 1
Joined: Feb 2013
Reputation: 0
Post: #2921
(2012-09-18 04:07)SimonC Wrote:  
(2012-09-16 10:08)sandmac Wrote:  
(2012-09-16 09:47)Sonic Crash Wrote:  I've tried your files and, while they work great on my windows box, my crystalbuntu box is having trouble logging into my account. Could the fact I have two-factor authentication be an issue? It doesn't prompt me to put in an authenticator pin and gives me a failed login prompt.
You have to have a separate password for accounts like this. Go to this page and create an application specific password.
https://accounts.google.com/b/0/IssuedAuthSubTokens

Thanks for the information, unfortunately turning on 2 step verification and creating a password for XBMC Windows does not work in my case. I tried using my YouTube name, the YouTube ID, Google name with and without @gmail and still get a dreaded login fail. Also used the new application specific password and my original Google password with no luck.

Anyone know an answer? I'm on a similar situation... cannot login... tried every user(youtube ID, google ID) & passwd (gogle, generated specific) like above.
I'm on RASPBIAN XBMC Youtube addon 4.4.1b

Thanks in advance...

JCL
JCL
find
mhalfadl Offline
Member
Posts: 76
Joined: Apr 2012
Reputation: 2
Post: #2922
(2010-08-22 20:34)HenrikDK Wrote:  This plugin is now the official YouTube plugin in the add-on repo.

The latest stable version of the plugin is 3.1.0.

To run the plugin it is recommended that you use the stable XBMC 11 Eden release and simply get it from the official add-ons repo.

Login:
We understand that some users might be hesitant to pass on their google account credentials to the plug-in (paranoia is healthy Smile), and for these users we suggest only providing YouTube specific account credentials (ie. only the YouTube username and password).

NOTES:
Users who are still experiencing login issues should follow these guidelines when posting about their problems:
Troubleshooting Login issues

Since several components of the plugin are now distributed as distinct services, manual installation has become so complex that we've decided to no longer provide old version of the plugin on our website. The source code for the plugin can now be found in our Mercurial repository: here

Code:
We've had some requests for the source of the plugin lately, the plugin is still licensed under GPL3 and the code can be found here:
http://hg.tobiasussing.dk/hgweb.cgi/youtubexbmc/

Issues and Problems:
Until now we've been using this thread to handle bug reporting, but it's gotten way to long, if you have persistent problems and you're unable to find answers on this forum, we suggest following this guide:

http://code.google.com/p/youtubexbmc/wik...llDebugLog

and posting an issue on our bug tracker here:

http://code.google.com/p/youtubexbmc/issues/list

Know issues and Testing
Part of this plugin also includes an extensive automated test suite where we test aprox. 70% of all the plugins functions nightly, if something breaks we'll usually know it. Please check the test results from this site before posting a bug on our tracker:
http://tc.tobiasussing.dk/jenkins/view/YouTube/



Hi ,

Can you please help me with the following error?

PlayBack failed

It is not working

If I helped you please add to my reputation a positive
find
AuXBoX Offline
Fan
Posts: 615
Joined: Mar 2009
Reputation: 15
Post: #2923
Hi, im getting an error in the youtube addon aswell as when i try to play youtube trailers of movies aswell.

Here is my log

Trailers seem to work with other URLS besides youtube

Im using XBMC 12.0 Git:fb595f2

Press THANK USER if I Help
(This post was last modified: 2013-02-15 03:42 by AuXBoX.)
find
vladi Offline
Junior Member
Posts: 11
Joined: Jan 2009
Reputation: 5
Post: #2924
I have some errors as well recently plaing videos:

19:52:20 T:139687620499200 NOTICE: [YouTube-4.4.1] getXBMCVersion : '12.0'
19:52:20 T:139687620499200 NOTICE: [YouTube-4.4.1] buildVideoObject : '{'action': 'play_video', 'videoid': 'KYebpiRoeOc'}'
19:52:20 T:139687620499200 NOTICE: [StorageClient-2.5.0] 'get' : 'videoidcacheKYebpiRoeOc'
19:52:20 T:139687620499200 NOTICE: [StorageClient-2.5.0] '_sock_init' : ''
19:52:20 T:139687620499200 NOTICE: [StorageClient-2.5.0] '_sock_init' : 'Done: u'/home/vladi/.xbmc/temp/commoncache.socket''
19:52:21 T:139687620499200 NOTICE: [YouTube-4.4.1] _fetchPage : 'called for : {'api': 'true', 'link': 'http://gdata.youtube.com/feeds/api/videos/KYebpiRoeOc'}'
19:52:21 T:139687620499200 NOTICE: [YouTube-4.4.1] _fetchPage : 'got default: http://gdata.youtube.com/feeds/api/videos/KYebpiRoeOc'
19:52:21 T:139687620499200 NOTICE: [YouTube-4.4.1] _fetchPage : 'got api'
19:52:21 T:139687620499200 NOTICE: [YouTube-4.4.1] _fetchPage : 'connecting to server... http://gdata.youtube.com/feeds/api/videos/KYebpiRoeOc'
19:52:21 T:139687620499200 NOTICE: [YouTube-4.4.1] _fetchPage : 'done'
19:52:21 T:139687620499200 NOTICE: [YouTube-4.4.1] updateVideoIdStatusInCache : 'videoidcache'
19:52:21 T:139687620499200 NOTICE: [StorageClient-2.5.0] 'setMulti' : 'videoidcache'
19:52:21 T:139687620499200 NOTICE: [StorageClient-2.5.0] '_sock_init' : ''
19:52:21 T:139687620499200 NOTICE: [StorageClient-2.5.0] '_sock_init' : 'Done: u'/home/vladi/.xbmc/temp/commoncache.socket''
19:52:21 T:139687620499200 NOTICE: [YouTube-4.4.1] getVideoIdStatusFromCache : 'vidstatus-'
19:52:21 T:139687620499200 NOTICE: [StorageClient-2.5.0] 'getMulti' : 'vidstatus-'
19:52:21 T:139687620499200 NOTICE: [StorageClient-2.5.0] '_sock_init' : ''
19:52:21 T:139687620499200 NOTICE: [StorageClient-2.5.0] '_sock_init' : 'Done: u'/home/vladi/.xbmc/temp/commoncache.socket''
19:52:23 T:139687620499200 NOTICE: [StorageClient-2.5.0] 'set' : 'videoidcacheKYebpiRoeOc'
19:52:23 T:139687620499200 NOTICE: [StorageClient-2.5.0] '_sock_init' : ''
19:52:23 T:139687620499200 NOTICE: [StorageClient-2.5.0] '_sock_init' : 'Done: u'/home/vladi/.xbmc/temp/commoncache.socket''
19:52:23 T:139687620499200 NOTICE: [YouTube-4.4.1] extractVideoLinksFromYoutube : 'trying website: {'action': 'play_video', 'videoid': 'KYebpiRoeOc'}'
19:52:23 T:139687620499200 NOTICE: [YouTube-4.4.1] _fetchPage : 'called for : {'login': 'true', u'link': 'http://www.youtube.com/watch?v=KYebpiRoeOc&safeSearch=none'}'
19:52:23 T:139687620499200 NOTICE: [YouTube-4.4.1] _fetchPage : 'got default: http://www.youtube.com/watch?v=KYebpiRoe...arch=none'
19:52:23 T:139687620499200 NOTICE: [YouTube-4.4.1] _fetchPage : 'got login'
19:52:23 T:139687620499200 NOTICE: [YouTube-4.4.1] _httpLogin : ''
19:52:23 T:139687620499200 NOTICE: [YouTube-4.4.1] _httpLogin : 'returning existing login info: xxxxxx'
19:52:23 T:139687620499200 NOTICE: [YouTube-4.4.1] _fetchPage : 'connecting to server... http://www.youtube.com/watch?v=KYebpiRoe...arch=none'
19:52:23 T:139687620499200 NOTICE: [YouTube-4.4.1] _fetchPage : 'Setting cookie: PREF=f1=50000000&hl=en;'
19:52:23 T:139687620499200 NOTICE: [YouTube-4.4.1] _fetchPage : 'done'
19:52:23 T:139687620499200 NOTICE: [YouTube-4.4.1] isVideoAgeRestricted : '[]'
19:52:24 T:139687620499200 NOTICE: Previous line repeats 1 times.
19:52:24 T:139687620499200 NOTICE: [YouTube-4.4.1] scrapeWebPageForVideoLinks : ''
19:52:24 T:139687620499200 NOTICE: [YouTube-4.4.1] extractFlashVars : 'flashvars: {}'
19:52:24 T:139687620499200 NOTICE: [YouTube-4.4.1] extractVideoLinksFromYoutube : 'Couldn't find video url- or stream-map.'
19:52:24 T:139687620499200 NOTICE: [YouTube-4.4.1] _findErrors : ''
19:52:24 T:139687620499200 NOTICE: [YouTube-4.4.1] _findErrors : '1'
19:52:24 T:139687620499200 NOTICE: [YouTube-4.4.1] _findErrors : '2'
19:52:24 T:139687620499200 NOTICE: [YouTube-4.4.1] _findErrors : '4'
19:52:24 T:139687620499200 NOTICE: [YouTube-4.4.1] _findErrors : 'couldn't find any errors: {'status': 200, 'new_url': 'http://www.youtube.com/watch?v=KYebpiRoeOc&safeSearch=none', 'content': u'<!DOCTYPE html><html lang="en"><head> <script>\nvar yt = yt || {};yt.timing = yt.timing || {};yt.timing.data_ = yt.timing.data_ || {};yt.timing.tick = function(label, opt_time) {var tick = yt.timing.data_[\'tick\'] || {};tick[label] = opt_time || new Date().getTime();yt.timing.data_[\'tick\'] = tick;};yt.timing.info = function(label, value) {var info = yt.timing.data_[\'info\'] || {};info[label] = value;yt.timing.data_[\'info\'] = info;};yt.timing.reset = function() {yt.timing.data_ = {};};if (document.webkitVisibilityState == \'prerender\') {yt.timing.info(\'prerender\', 1);document.addEventListener(\'webkitvisibilitychange\', function() {yt.timing.tick(\'start\');}, false);}yt.timing.tick(\'start\');try {yt.timing.info(\'pt\', (window.gtbExternal && window.gtbExternal.pageT() ||window.external && window.external.pageT));} catch(e) {}if (window.chrome && window.chrome.csi) {yt.timing.info(\'pt\', Math.floor(window.chrome.csi().pageT));} </script>\n\n<script>var yt = yt || {};yt.preload =
find
tronic Offline
Junior Member
Posts: 3
Joined: May 2012
Reputation: 0
Post: #2925
Great... Thanks Cool

Confirmed plugin.videoyoutube-4.4.1b.zip fixed... "can't locate the video URL" Nod

Win s7n XBMC 12.0 Git:20130127-fb595f2
find
Thread Closed