Friday 23 October 2009

Showtime !

Fixed again - The Beeb changed the url schema for programme identifiers. Thanks for your feedbacks ! Have been out of the country or I would have got to this sooner. But seeing as my 1st gen iphone is slowly dying (battery life down to 80% of original and now a dead strip thanks to the humidty in Texas) I havent been using the script myself as much as I used to.

If any of my scripts users have an old 1st gen, surplus to requirements that they would be willing to donate it would be much appreciated :D

Anyhoo - as per usual download from here the new version, copy to /usr/bin/ and set permissions of 0777, also delete iplayer_dl from /usr/bin/ to install the latest version.

Until the next breakage ... enjoy

19 comments:

Graeme said...

Thanks for the updated script.

wesbar said...

not working for me. when i type ipl2iph into terminal i get the following error

/bin/bash^M: bad interpreter: No such file or directory.

Any ideas? thanks

Nigel said...

Possibility is that the script was edited on Microsoft Windows, or another editor that added Windows style line endings (Carriage Return + Linefeed). Try using dos2unix or tr -d '\r' in Linux to go back to Unix style line endings (Linefeed only).(This worked for me)

Gavin Birmingham said...

Had same problem as Wesley.

/bin/bash^M: bad interpreter: No such file or directory.

I don't understand what Nigel meant in order to fix it.

Any chance of an updated version? Can't wait to download all my favourite programmes again.

Cheers,

Gav

Anonymous said...

Yeah I had the same problem,

/bin/bash^M: bad interpreter: No such file or directory.

So it's I think it's to do with the way that windows saves files or something.

I googled dos2unix suggested by Nigel and found an online service that will convert the file for you.

Here is the converted file,

http://rapidshare.com/files/302398293/ipl2iph

I hope this helps because it was bugging me for ages.

Greg Rochford said...

Hi

I'm getting an error after ipl2iph installs Ruby "line 74 apt-get: command not found" Anyoneknow why?

Many thanks in advance

Greg

Anonymous said...

Yeah, you need to install apt-get in cydia (version 0.6 I think)

greg Rochford said...

Thanks, so I didnt work it out but instead manually installed all the apps it needed. Now though I get after "found video directory"

"Error: no program identifier specified"

???

Greg Rochford said...

Im on 3.1.2 with ablackra1n jail break if that matters?

Anonymous said...

do you have airsharing installed?

Greg Rochford said...

Yes I do. The problem seems to be just after it checks for the iPhone-dl file. I don't get any confirmations.

Greg Rochford said...

Using just the iphone-dl file I can successfully download a program, however i have no idea where it has put it?

If i use ipl2iph i get the error message Error: no program identifier found.

So i know the script works and its not a firewall setting. what am i doing wrong with regard to the suspendstate.plist?

Many thanks in advance

Greg

fl3tch said...

As has been mentioned on nearly every post - you must be sudo'ed to root and hit the REFRESH button on the iPlayer site once you have the programme in your sights( i.e once the blue play arrow appears over the programme image). This locks the identifier into the suspendstate.plist - also i'll get a unix line encoded version put up on filefactory now im back in the UK.

In the meantime either use the aforementioned line converters or notepad2 etc.

Greg Rochford said...

Hi fl3tch

I promise I'm not being simple! I have done exactly as specified in all the posts load iplayer, find program, hit refresh, load Terminal, su, password, ipl2iph, runs the script until "found vIdeo directory" then the next line is the error message.

After that i get a bunch of other stuff starting with Usage: iplayer-dl [options] IDENTIFIER [IDENTIFIER [...]]

DO i need to cut Safari off before it completes its refresh? I'm on 3.1.2 if that makes any difference??

Many thanks again

Greg

fl3tch said...

OK stabbing in the dark it seems that the identifier is not being passed to from the plist.

So if all the requirements are met - it should be a permissions error as you didn't install using then script and apt-get.

There are fixes for the user dir permissions if you install the SBSettings package and choose More, Extras & Options - Fix User Dir Permissions.

Give that a shot and see - I last ran the script from a fresh install of 3.1.2 and had no problems.

Greg Rochford said...

Really sorry but still no joy. I've tried that and running the installer again from scratch and still nothing. IF i remove the apps I installed manually and running it again will that help? Only i have no idea which ones it was...

iplayer-dl works and puts the file into /User which i can then move using iFile. I've got it working in effect so it's not a biggie if your busy! It would have been nice not to have to actually remember the PID though, all 8 letters and numbers! (I'm very lazy!!)

Thanks again for all your help

Greg

Nick said...

Hi, I have just done a clean restore of my iphone to firmware 3.1.3. I get an error when trying to run the command. it says,
"/usr/bin/ipl2iph: line 75: apt-get: command not found"

Obviously this is an apt error. The instructions say install apt 6 in Cydia. I can only find 0.7.

Any suggestions?

Cheers

Nick

fl3tch said...

Hi Nick,

Any version of APT that can be installed from Cydia should work i.e. apt 0.6 transitional or 0.7 strict from the tangelo (saurik) repo.

As long as apt-get gets installed things should still work. Try 0.7 first for dependencies sakes.

Cheers

fl3tch

B4Im40 said...

I manage to get all PreReq's ok....
but then after it launches iplayer-dl and inserts the shows code I get

mkdir: cannot create directory */private/var/mobile/Applications/blahblah/Documents/Air Sharing/Video/*:
No such file or directory

Any idea how to fix?