Hi. My steps were:
1- download b-rad's optware from
HERE2- extract the archive on your pendrive's root dir
3- reboot the wdtv
4- log in again and do:
- Code: Select all
ipkg update && ipkg install python26
5- download googlecl from
HERE6- download gdata-python-client from
HERE7- extract the archives on your pendrive's root dir
8- cd in the gdata dir and do:
- Code: Select all
/opt/bin/python2.6 setup.py install
9- cd in the googlecl dir and do the same
Now, you need to use just once a
google youtube command from your pc, in order to have the authorisation keys to import to the WDTV. This is because the authorisation process involves a call to your internet browser to a page where you have to authorise the googlcl application itself, to use your google account (so you also need a google/youtube account); on the WDTV the browser authorisation stuff it's not possible, so you have to authorise your pc and then copy the authorisation data to the WDTV. I was not able to do this in a different way. It's a bit tricky but not difficult.
PC steps:
10- assuming you're on a Ubuntu based linux distro, do:
- Code: Select all
sudo apt-get update && sudo apt-get install googlecl
11- then
- Code: Select all
google youtube post --category <<choose-from-standard-categories>> <<video-file-name-in-the-dir-you're-in>>
12- follow instruction
13- after authorisation procedures, go to your home dir on the pc and copy the files:
- Code: Select all
~/.config/googlecl/config
~/.local/share/googlecl/yt_devkey
~/.local/share/googlecl/access_tok_<<your-username@gmail.com>>
in a
googlecl dir created by you on your pendrive's root on the WDTV
(respect path structure, i.e.: <<USB-dir>>/googlecl/.config/... etc)
14- open up the first one in a text editor and change the line
hostid under [GENERAL] paragraph to be
- Code: Select all
hostid = root@WDLXTV
(on windows or other linux distros should not be difficult to install googlecl, just find the right package on their site, but then you have to find the auth data somewhere on the pc; just the paths should change, not the file names)
Now, finally back on the WDTV, place a video on the pendrive and do (from the pendrive root dir, where you have the
googlecl dir and the video to upload):
- Code: Select all
export HOME=`pwd`/googlecl
/opt/local/bin/google youtube post --category <<choose-from-standard-categories>> <<video-file-name>>
and it should ask just for the account name.
Since I wrote almost all of this with no reference, please report if something is broken or needs further explanation.
tip: to be in the pendrive's root dir, since you need this above, assuming the usb device it's NOT on the rear port, type:
- Code: Select all
cd `mount | grep USB1 | cut -d " " -f 3`
otherwise in this command it's USB2.
Good luck!
