These forums are archived

See this post for further info

get_iplayer forums

Forum archived. Posting disabled.

[2.97] Podcasts: ERROR: Cannot write or append (because output file name is invalid)

Pages: 1 2

user-1508

But it's not the podcasts I wanted...

I stopped downloading those some time back, but didn't realise they were still in the PVR List. Their presence there seems to have been causing get_iplayer to throw an error and shut down.

Ah well. The shows I missed are bound to be repeated!

user-1510

Is it just me?  Today some of my searches return bad results and terminate the "run PVR" web session before all matches are recorded.
An example below scraped from the web page. 
I keep "costing the earth" recordings and (a) it should not have found 160 matches - one or two at most and (b) note the wierd filename prefix which causes a filename to be created which includes slashes and hence a write error.

If I delete the search from my run list and retry, it then continues until it hits another search which fails.  So far I have deleted about 6 in order to try to get it to not fail, but if I continue at this rate less than half of my list will remain intact.

So until I can find a fix or someone can suggest anything, I can't do a run.

The same happens when I run from the command line.   Any ideas ???

         web output attached ...........


210465: podcast, Costing the Earth - Fruits of the Forest, Wed, 21 Sep 2016 00:00:00 +0000, BBC Radio 4, Science & Medicine
210466: podcast, Costing the Earth - The Growing Season, Tue, 27 Sep 2016 00:00:00 +0000, BBC Radio 4, Science & Medicine
210467: podcast, Costing the Earth - Spiritual Greens, Tue, 04 Oct 2016 00:00:00 +0000, BBC Radio 4, Science & Medicine
210468: podcast, Costing the Earth - Wildlife-Friendly Motorways, Tue, 11 Oct 2016 00:00:00 +0000, BBC Radio 4, Science & Medicine
210469: podcast, Costing the Earth - The British Countryside after Brexit, Tue, 18 Oct 2016 00:00:00 +0000, BBC Radio 4, Science & Medicine
210470: podcast, Costing the Earth - Forests of the Orangutan, Tue, 25 Oct 2016 00:00:00 +0000, BBC Radio 4, Science & Medicine
210471: podcast, Costing the Earth - Nuclear Futures, Tue, 01 Nov 2016 00:00:00 +0000, BBC Radio 4, Science & Medicine

INFO: 160 Matching Programmes
INFO: Checking existence of default version
INFO: podcast modes will be tried for version default
INFO: Trying podcast mode to record podcast: Costing the Earth - Plastic Pollution
INFO: File name prefix = Costing_the_Earth_-_Plastic_Pollution_http://www.bbc.co.uk/programmes/b00v1qtn                 
ERROR: Cannot write or append to H:\New_Audio\Costing_the_Earth_-_Plastic_Pollution_http:\www.bbc.co.uk\programmes\b00v1qtn.partial.http:\www.bbc.co.uk\programmes\b00v1qtn

user-2

If you wish to stick with get_iplayer 2.97 and restore podcast support, the necessary change to the get_iplayer script (get_iplayer.pl on Windows) is given below, as promised.

Find this line (should be at or near line #10215 in v2.97):
Code:
$pid = $1 if $entry =~ m{<link>\s*(.+?)</link>};
and change it to:
Code:
$pid = $1 if $entry =~ m{<enclosure\s+url="(.+?)"};

This modification is completely unsupported, as is get_iplayer 2.97. Since podcast support has been removed in get_iplayer 2.98, this thread is now closed.
Pages: 1 2

These forums are archived

See this post for further info