![]() |
2010-01-24
, 17:22
|
Posts: 134 |
Thanked: 91 times |
Joined on Nov 2009
@ Imperial College London
|
#142
|
![]() |
2010-01-24
, 17:28
|
Posts: 271 |
Thanked: 20 times |
Joined on Apr 2009
@ United Kingdom
|
#143
|
![]() |
2010-01-24
, 17:29
|
Posts: 134 |
Thanked: 91 times |
Joined on Nov 2009
@ Imperial College London
|
#144
|
To anyone having problems, I've corrected three potential sources of them in my first post. They are as follows:
1. You need to have rootsh installed or "sudo gainroot" won't work.
2. You need to be user when echoing the alias to your /home/user/.profile file, or root will own the file (which is bad!)
You can test this using:
If you see "root" there at all then you need to change this to "user" with the following commands:Code:ls -l /home/user/.profile
3. The "code" tags on this forum seem to introduce line breaks depending on your screen resolution and size! I think that this is what has caused most of the problems (and this would explain why some people are having problems and others aren't).Code:sudo gainroot chown user. /home/user/.profile exit
The "echo ..." command needs to all be on one line. If this is not the case you need to edit the /home/user/.profile file and make sure it is. If this is the only alias you have, then the easiest way would be to delete the file and then redo the command making sure there are no line breaks, i.e.
It seems that pasting the echo command outside of the code tags would solve the new line problem, so here it is:Code:rm /home/user/.profile #below here should all be one line echo 'alias iplayer="iplayer-dl -d /home/user/MyDocs/.videos"' >> /home/user/.profile #above here should all be one line
echo 'alias iplayer="iplayer-dl -d /home/user/MyDocs/.videos"' >> /home/user/.profile
If you do have other aliases your best option would be to use a text editor to edit the file instead.
Cheers,
Jan
![]() |
2010-01-24
, 17:32
|
Posts: 15 |
Thanked: 1 time |
Joined on Jan 2010
|
#145
|
![]() |
2010-01-24
, 17:44
|
Posts: 134 |
Thanked: 91 times |
Joined on Nov 2009
@ Imperial College London
|
#146
|
HI Thankyou - I did think I entered the commands in the first place lol but before I do anything further, how can I check I have successfully downloaded iplayer in the first part? And what should I get as a response after entering the second lot, which I still do not know if they are nessesary.
iplayer-dl --help
![]() |
2010-01-24
, 18:01
|
Posts: 247 |
Thanked: 91 times |
Joined on Jan 2008
@ London/M4 Corridor
|
#147
|
HI Thankyou - I did think I entered the commands in the first place lol but before I do anything further, how can I check I have successfully downloaded iplayer in the first part?
![]() |
2010-01-24
, 19:02
|
Posts: 15 |
Thanked: 1 time |
Joined on Jan 2010
|
#148
|
- Start new xterm
- type the command "id", it should say you're running as user "user"
- type "ip", followed by selecting the "Tab" listed on the bottom of the x terminal window
- You should get a listing of the commands beginning with "ip" on the N900, including "iplayer". This means that the iplayer-dl package has been installed.
- Don't get too excited by the "iplayer-dl-gui" entry you see. Mine doens't work, probably because this is a work in progress.
- Now that you've verified that iplayer-dl is present, just hit Return to get out of filename complettion mode.
- Now, enter the real command. I'll write is as I would type the keystrokes using auto-completion. ipl<TAB> -d /home/user/MyDocs/.vid<TAB><SPACE>http://www.bbc.co.uk/mobile/iplayer/episode/b00pssgh<RETURN>
- This should start the download of "The Secret Life of the Dog", Three possible problems: Your IP address is not in range. The URL has expired, but this URL should be good until April 2010. Or the URL might be mistyped.
- The video should show up automatically in the built-in media player after download. A couple of the videos took a minute or two to show up.
- I cheated a bit when I gave the URL above, as I used an iPhone (or faking being an iPhone) to make sure the show was available for the iPhone. Not all shows are. This is something that will be need to be addressed when this gets packaged up as a real app.
For completeness, here is a short list of URLs that have worked for me. Note the similarity of the filenames, it will be easier for you to type these in if you use the "up" arrow in the xterminal, and then the other arrow keys and backcspace.
- http://www.bbc.co.uk/mobile/iplayer/episode/b00hkb0z -- Hidden libraries of Timbuktu
- http://www.bbc.co.uk/mobile/iplayer/episode/b00pq9gs -- Sailing Pharoh
- http://www.bbc.co.uk/mobile/iplayer/episode/b00pzcql -- Lost Empire of Ethiopia
- http://www.bbc.co.uk/mobile/iplayer/episode/b00q2ly2 -- History of Empire - an episode
![]() |
2010-01-24
, 19:03
|
Posts: 15 |
Thanked: 1 time |
Joined on Jan 2010
|
#149
|
![]() |
2010-01-24
, 20:27
|
Posts: 28 |
Thanked: 0 times |
Joined on Jan 2010
@ Merseyside
|
#150
|
First post so please go easy. I desparately need this and have so far followed the instructions but when I type iplayer then the URL of the video I want to download, it comes up with "iplayer not found".
I am having issues with what these 2 sets of instructions mean: -
__________________________________________________ ______
Code:
sudo gainroot
apt-get update
apt-get install iplayer-dl
#Type yes at any prompts and wait for it to finish
exit
To make life easier you can also type this command (as user!):
Code:
echo 'alias iplayer="iplayer-dl -d /home/user/MyDocs/.videos"' >> /home/user/.profileIt seems that the "code" tags on this forum introduce line breaks! This needs to all be on one line! It seems that pasting the command outside of the code tags solves the new line problem, so here it is:
echo 'alias iplayer="iplayer-dl -d /home/user/MyDocs/.videos"' >> /home/user/.profile
This ensures that the videos you download are stored in "MyDocs" and are easily accessible from the Media Player.
After typing these commands, completely exit and restart the terminal.
You can now download from iPlayer by opening a terminal and typing:
Code:
iplayer URL
Where "URL" is the web address of the programme you want.
__________________________________________________ _____
I do not understand this syntax at all, so must follow instructions to the letter. The instructions confuse....... I mean do you do the first set of instructions with the secons lot "optional"? Or do you do the secons lot instead of the first. If anyone reads the first part of the post and do not understand Linux, they will be equally confused.
Anyhow I have inserted both sets of commands - the first ones went through ok but the 2nd, I am having difficulty with. There are 3 versions of the syntax on this site all of which are different at the appropriate point do you type " ', "', '" or ' " - come on guys please be clear.
Also when you mention type as user, what exactly do you mean?
Could somebody pleae type the exact commands after you install rootsh - I have done this and entered the first part of the subsequent syntax.
But when I type the bit which is started by saying "to make life easier", I enter what I think is correct but I get nothing after entering it - I am assuming that this is the reason why when I type iplayer (and then the URL) I get the message "iplayer not found".
Please somebody explain all in simple to understand language.
Cheers
roz