[phpBB Debug] PHP Notice: in file /viewtopic.php on line 981: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'UTC' for 'UTC/0.0/no DST' instead
[phpBB Debug] PHP Notice: in file /viewtopic.php on line 981: getdate(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'UTC' for 'UTC/0.0/no DST' instead

Windows GUI

Discussions regarding the development of get_iplayer

Windows GUI

Postby arnie580 » 19 Jan 2010 23:43

Hi,

I have over the last few weeks been writing a gui for your program which has been working (with a few bugs) until one of the updates between v2.59 and 2.64. My program works by exporting the list of programmes available into a text file, which my program then enters into a list box for the user to see and select. Since one of these versions it won't let me create the text file anymore. Before all I did was put 'get_iplayer --nocopyright %* > Programmes.txt' to enter the programmes available for download into a text file to be read by my gui.

Is there any way still to export a text file containing the information ususally shown on the command line please, as this has stopped my program functioning completely? :-(

Thanks

Chris
arnie580
 
Top

Re: Windows GUI

Postby linuxcentre » 20 Jan 2010 00:08

Hi Chris, I'm not sure what the %* part is. That seems unnecessary. The following should work:

Code: Select all
get_iplayer --nocopright --noprompt > programmes.txt
linuxcentre
Site Admin
 
Posts: 306
Joined: 31 Dec 2009 17:29
Top

Re: Windows GUI

Postby arnie580 » 20 Jan 2010 00:45

Thanks for the fast reply.

For some reason it wasn't finding any results unless the %* was included, I tried that as in the get_iplayer.cmd file, that was in the line of code after calling the perl script, which is how I have written it within my application.

When adding the --noprompt I get the error 'unknown code: noprompt'

Chris
arnie580
 
Top

Re: Windows GUI

Postby linuxcentre » 20 Jan 2010 01:41

I see, you are actually passing search terms to the command - I didn't realise that. Then I suppose in a cmd/bat file sort of way you need to parse the extra arguments using %*

Oops! type I mean't --nopurge NOT --noprompt
linuxcentre
Site Admin
 
Posts: 306
Joined: 31 Dec 2009 17:29
Top

Re: Windows GUI

Postby arnie580 » 20 Jan 2010 17:31

Hmm i've tried that both through my gui and command line application and it still seems to be ignoring the '> programmes.txt' command and returning the results into the command line window and creating an empty text file.
arnie580
 
Posts: 6
Joined: 20 Jan 2010 17:25
Top

Re: Windows GUI

Postby linuxcentre » 20 Jan 2010 20:36

I can recommend reading this:
http://www.microsoft.com/resources/docu ... x?mfr=true
linuxcentre
Site Admin
 
Posts: 306
Joined: 31 Dec 2009 17:29
Top

Re: Windows GUI

Postby arnie580 » 23 Jan 2010 19:33

Hi

After reading the site you suggested I am no closer to resolving my problem. Is there something you have changed in your code recently that may prevent this method from working anymore? If not then I am very confused as to why this isn't working anymore :-?

Thanks

Chris
arnie580
 
Posts: 6
Joined: 20 Jan 2010 17:25
Top

Re: Windows GUI

Postby linuxcentre » 23 Jan 2010 23:21

arnie580 wrote:Hi

After reading the site you suggested I am no closer to resolving my problem. Is there something you have changed in your code recently that may prevent this method from working anymore? If not then I am very confused as to why this isn't working anymore :-?

Thanks

Chris


I've looked at the diffs and I really can find nothing that messes with the logging output at all. I even tried checking whether STDOUT or STDERR output had changed between these versions - it hadn't. Are you sure the exact command you are running is actually resulting in any matches... Please let us know the command as that always helps.
linuxcentre
Site Admin
 
Posts: 306
Joined: 31 Dec 2009 17:29
Top

Re: Windows GUI

Postby linuxcentre » 23 Jan 2010 23:46

Hi, Someone else has uncovered the simple bug which is now fixed in v2.66.

See viewtopic.php?f=6&t=32&p=114&hilit=STDERR#p114

Would have been much quicker of course if you'd have run the command and pasted the errors ;-)
linuxcentre
Site Admin
 
Posts: 306
Joined: 31 Dec 2009 17:29
Top

Re: Windows GUI

Postby arnie580 » 24 Jan 2010 17:07

Hi,

Code: Select all
get_iplayer --nocopright --noprompt > programmes.txt


This is the command I am passing to the application, both via the command prompt and my application and I'm getting the same result in that no error messages are displayed, it just lists the programs in the command prompt window as if the ">" isn't there.

Thank you for your continued patience and fast responses.

Chris
arnie580
 
Posts: 6
Joined: 20 Jan 2010 17:25
Top

Next

Return to development



Who is online

Users browsing this forum: No registered users and 2 guests

cron
./cache/ is NOT writable.