Kodi Community Forum

Full Version: [depricated] old YouTube Plugin - XBMC 13.0 Frodo/Gotham only
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
XBMC devs closed my ticket, they think it comes from the add on......
Beretta92 Wrote:XBMC devs closed my ticket, they think it comes from the add on......

I've replied..
possible to support http://www.youtube.com/my_liked_videos ? I guess maybe no API exists ?
pike Wrote:possible to support http://www.youtube.com/my_liked_videos ? I guess maybe no API exists ?

No API exists but we're already have a scraper for the watch later queue in the beta i guess this could reuse that code.
Thanks for the plugin, but too bad the XBox isn't supported, because that's what I'm using XBMC for. Wink

Anyway, I made and pasted a dutch translation at: http://pastebin.com/r1GadjyE

And please, change string 30068 to "The Netherlands", since calling it Holland is like calling all of Denmark "Sjælland". Wink
Syrion Wrote:Thanks for the plugin, but too bad the XBox isn't supported, because that's what I'm using XBMC for. Wink

Anyway, I made and pasted a dutch translation at: http://pastebin.com/r1GadjyE

And please, change string 30068 to "The Netherlands", since calling it Holland is like calling all of Denmark "Sjælland". Wink

Hi Syrion, Thanks for the pointer about string 30068 (string 30230 in our case), but your translation seems to be for a much older version of this plugin and is missing alot of the strings that are required by the plugin, so it's not really that usefull Sad. If you still want to contribute a translation (very much appreciated) please use the latest English language file from the release branch in our svn
I'm on it!

http://pastebin.com/EuE1udqp

Could you please clarify strings 30258 & 30619? I have no idea what they mean from a technical perspective, so I translated them badly. If you can explain to me what you mean by them I'm able to make better alternatives.
Syrion Wrote:I'm on it!

http://pastebin.com/EuE1udqp

Could you please clarify strings 30258 & 30619? I have no idea what they mean from a technical perspective, so I translated them badly. If you can explain to me what you mean by them I'm able to make better alternatives.


Code:
<string id="30258">View mode in Confluence</string>
This string is used in the plugin settings where the user can choose what view they want to use if they're using the confluence skin (by default this is set to the thumnails view for video listings and folders view for everything else).

Code:
<string id="30619">Couldn't scrape YouTube</string>
Is just an error message meaning something like "failed to get data from youtube" from our scraper (the part of the plugin that parses youtubes webpages as opposed to using the api)

Don't know if that changes anything? Smile
I think the confluence thingy can stay as it is.

<string id="30619">Kon YouTube niet schrapen</string>

could be

<string id="30619">Kan data van YouTube niet verwerken</string>

(Literally: Couldn't process Youtube data)

Otherwise it's good as it is, the latter is more understandable for the average Joe out there (although I doubt they know about XBMC).
HenrikDK,

Currently, the download function on atv2 (and I am assuming all instances where the download folder is a smb share) of a video to a smb share doesn't work, even when setup under filemanager. It says that it is downloading but it doesn't write to the smb share. As you know I am not a coder. I have got some advice, thanks to amet....

amet Wrote:unless the addons that you are using are modified to use xbmcvfs.copy('src', 'dest') you will not be able to save to SMB://

external python doesnt know what SMB:// is, thats why the addon needs to download to a 'temp' location on a local drive and then copy using xbmcvfs to SMB://

This is the thread http://forum.xbmc.org/showthread.php?p=8...post807771

Can I request therefore on behalf of atv2 users, if it possible for you to make this adjustment that amet is referring to. Thanks.
activate Wrote:HenrikDK,

Currently, the download function on atv2 (and I am assuming all instances where the download folder is a smb share) of a video to a smb share doesn't work, even when setup under filemanager. It says that it is downloading but it doesn't write to the smb share. As you know I am not a coder. I have got some advice, thanks to amet....



This is the thread http://forum.xbmc.org/showthread.php?p=8...post807771

Can I request therefore on behalf of atv2 users, if it possible for you to make this adjustment that amet is referring to. Thanks.

Hmm wasn't aware of that, added to the todo.
HenrikDK Wrote:Hmm wasn't aware of that, added to the todo.

Thanks mate.
pike Wrote:Good News everyone that runs Git HEAD of XBMC, a while back I managed to convince grandmaster Elupus to enable something that can best be described as "Download to local disk and then play" it's all transparent but (for now) it needs an advanced setting added/changed:

Code:
<network>
   <cachemembuffersize>0</cachemembuffersize>
  </network>

with this in place, XBMC will download http videos to disk transparently, you might have noticed there is new buffer info in the dialog ? If you pause playback, this will increase until it reached 100% this means the full video clip sits local on hdd. It can best be described as how Youtube works in a WWW browser or Quicktime.

So if you're feeling that youtube is throttling you too much, simply pause playback for a minute or so and that should give trouble free playback for X mins depending on length of clip and your connection.

I tried adding this to advancedsettings.xml, but I don't see any added dialog when paused. Is there something else I have to do?
Here is what I get when I hit the login button:

Code:
17:20:12 T:140551673620224 M:1087344640  NOTICE: -->Python Interpreter Initialized<--
17:20:12 T:140551673620224 M:1087344640  NOTICE: YouTube-2.0.4 ARGV: ['plugin://plugin.video.youtube/', '0', '']
17:20:13 T:140551673620224 M:1081643008  NOTICE: YouTube-2.0.4 view mode: 0
17:20:15 T:140551673620224 M:1079091200  NOTICE: -->Python Interpreter Initialized<--
17:20:15 T:140551673620224 M:1079091200  NOTICE: YouTube-2.0.4 ARGV: ['plugin://plugin.video.youtube/', '0', '?path=/root/login&action=settings&']
17:20:20 T:140551673620224 M:1079111680  NOTICE: YouTube-2.0.4 login - errors: 0
17:20:21 T:140551673620224 M:1079238656  NOTICE: YouTube-2.0.4 login failed, hit http except: HTTP Error 403: Forbidden
17:20:21 T:140551682012928 M:1079111680  NOTICE: -->Python Interpreter Initialized<--
17:20:21 T:140551682012928 M:1079111680  NOTICE: YouTube-2.0.4 ARGV: ['plugin://plugin.video.youtube/', '1', '']
17:20:21 T:140551682012928 M:1079111680  NOTICE: Exception
17:20:21 T:140551682012928 M:1079111680  NOTICE: exceptions.TypeError
17:20:21 T:140551682012928 M:1079111680  NOTICE: :
17:20:21 T:140551682012928 M:1079111680  NOTICE: "'NoneType' object is not callable"
17:20:21 T:140551682012928 M:1079111680  NOTICE:  in
17:20:21 T:140551682012928 M:1079111680  NOTICE: <bound method SharedSocket.__del__ of <httplib.SharedSocket instance at 0x38660e0>>
17:20:21 T:140551682012928 M:1079111680  NOTICE:  ignored
17:20:22 T:140551682012928 M:1079115776  NOTICE: YouTube-2.0.4 view mode: 0
17:20:22 T:140552306669664 M:1079115776   ERROR: GetDirectory - Error getting plugin://plugin.video.youtube/?path=/root/login&action=settings&
17:20:22 T:140552306669664 M:1079115776   ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.youtube/?path=/root/login&action=settings&) failed
17:20:22 T:140551673620224 M:1079115776  NOTICE: -->Python Interpreter Initialized<--
17:20:22 T:140551673620224 M:1079115776  NOTICE: YouTube-2.0.4 ARGV: ['plugin://plugin.video.youtube/', '0', '']
17:20:23 T:140551673620224 M:1079099392  NOTICE: YouTube-2.0.4 view mode: 0

Pretty sure the operative piece in there is the 403 forbidden error at 17:20:21. The url it tries to go to is https://www.google.com/youtube/accounts/ClientLogin which doesn't accept GET requests, so browsing to it is useless...

I'm betting we need to change the useragent or something, but I dunno.

I'm running Ubuntu 11.04, with whatever version of XBMC pops out of ppa:team-xbmc, after editing the repository entries to reflect maverick because they didn't have a natty release a few days ago.
stout Wrote:Here is what I get when I hit the login button:

Code:
17:20:12 T:140551673620224 M:1087344640  NOTICE: -->Python Interpreter Initialized<--
17:20:12 T:140551673620224 M:1087344640  NOTICE: YouTube-2.0.4 ARGV: ['plugin://plugin.video.youtube/', '0', '']
17:20:13 T:140551673620224 M:1081643008  NOTICE: YouTube-2.0.4 view mode: 0
17:20:15 T:140551673620224 M:1079091200  NOTICE: -->Python Interpreter Initialized<--
17:20:15 T:140551673620224 M:1079091200  NOTICE: YouTube-2.0.4 ARGV: ['plugin://plugin.video.youtube/', '0', '?path=/root/login&action=settings&']
17:20:20 T:140551673620224 M:1079111680  NOTICE: YouTube-2.0.4 login - errors: 0
17:20:21 T:140551673620224 M:1079238656  NOTICE: YouTube-2.0.4 login failed, hit http except: HTTP Error 403: Forbidden
17:20:21 T:140551682012928 M:1079111680  NOTICE: -->Python Interpreter Initialized<--
17:20:21 T:140551682012928 M:1079111680  NOTICE: YouTube-2.0.4 ARGV: ['plugin://plugin.video.youtube/', '1', '']
17:20:21 T:140551682012928 M:1079111680  NOTICE: Exception
17:20:21 T:140551682012928 M:1079111680  NOTICE: exceptions.TypeError
17:20:21 T:140551682012928 M:1079111680  NOTICE: :
17:20:21 T:140551682012928 M:1079111680  NOTICE: "'NoneType' object is not callable"
17:20:21 T:140551682012928 M:1079111680  NOTICE:  in
17:20:21 T:140551682012928 M:1079111680  NOTICE: <bound method SharedSocket.__del__ of <httplib.SharedSocket instance at 0x38660e0>>
17:20:21 T:140551682012928 M:1079111680  NOTICE:  ignored
17:20:22 T:140551682012928 M:1079115776  NOTICE: YouTube-2.0.4 view mode: 0
17:20:22 T:140552306669664 M:1079115776   ERROR: GetDirectory - Error getting plugin://plugin.video.youtube/?path=/root/login&action=settings&
17:20:22 T:140552306669664 M:1079115776   ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.youtube/?path=/root/login&action=settings&) failed
17:20:22 T:140551673620224 M:1079115776  NOTICE: -->Python Interpreter Initialized<--
17:20:22 T:140551673620224 M:1079115776  NOTICE: YouTube-2.0.4 ARGV: ['plugin://plugin.video.youtube/', '0', '']
17:20:23 T:140551673620224 M:1079099392  NOTICE: YouTube-2.0.4 view mode: 0

Pretty sure the operative piece in there is the 403 forbidden error at 17:20:21. The url it tries to go to is https://www.google.com/youtube/accounts/ClientLogin which doesn't accept GET requests, so browsing to it is useless...

I'm betting we need to change the useragent or something, but I dunno.

I'm running Ubuntu 11.04, with whatever version of XBMC pops out of ppa:team-xbmc, after editing the repository entries to reflect maverick because they didn't have a natty release a few days ago.

You sure there's not a firewall thats blocking between xbmc and your gateway?

Login still works fine here, and the 403 makes it seem like something is preventing the plugin from accessing google via ssl.