These forums are archived

See this post for further info

get_iplayer forums

Forum archived. Posting disabled.

0 byte filesize

user-341

Restarted get_iplayer today but I'm getting the following error:

"Can't call method "size" on an undefined value at get_iplayer.pl line 9073"

Any ideas?

user-2

Re-run the command with
Code:
--verbose
and post the output as an attachment. I can't even guess without some context.

user-341

Re-run it and now it works...

Hmm.

user-341

Nope, problems again:

Code:
C:\Program Files\get_iplayer>perl.exe get_iplayer.pl --pvrschedule 14400 --verbose

DEBUG: Search download_regex = ^6 Music Recommends$
DEBUG: Search channel_regex = .*
DEBUG: Search category_regex = .*
DEBUG: Search versions_regex = (default)
DEBUG: Search exclude_regex = ^ROGUE$
DEBUG: Search channel_exclude_regex = ^ROGUE$
DEBUG: Search category_exclude_regex = ^ROGUE$
DEBUG: Search since = 999999
DEBUG: Search before = -999999
_6_Music_Playlist_name_radio
Current options:
        atomicparsley = .\AtomicParsley\AtomicParsley\AtomicParsley.exe
        channel = 6
        expiry = 14100
        ffmpeg = .\FFmpeg\ffmpeg-1.2-win32-static\bin\ffmpeg.exe
        fields = name
        fileprefix = <firstbcastdate><_dldate><_name><_episodenum><_episode><_al
bum><_index>
        hide = 1
        isodate = 1
        lame = .\LAME\lame.exe
        mmsnothread = 1
        modes = default
        mplayer = .\MPlayer\mplayer-svn-36348\mplayer.exe
        nopurge = 1
        output = J:\get_iplayer
        rtmpdump = .\RTMPDump\rtmpdump.exe
        type = radio
        verbose = 1
        versionlist = default
        vlc = .\VLC\vlc-2.0.6\vlc.exe
        whitespace = 1

INFO: Search args: '^6 Music Playlist$'
INFO: Got (quick) 3292 memcache entries for radio
INFO: Search term '^6 Music Playlist$' is a substring
DEBUG: Search download_regex = ^6 Music Playlist$
DEBUG: Search channel_regex = (6)
DEBUG: Search category_regex = .*
DEBUG: Search versions_regex = (default)
DEBUG: Search exclude_regex = ^ROGUE$
DEBUG: Search channel_exclude_regex = ^ROGUE$
DEBUG: Search category_exclude_regex = ^ROGUE$
DEBUG: Search since = 999999
DEBUG: Search before = -999999
_A_Short_History_of_Ireland_name_radio_podcast
Current options:
        atomicparsley = .\AtomicParsley\AtomicParsley\AtomicParsley.exe
        channel = 4
        expiry = 14100
        ffmpeg = .\FFmpeg\ffmpeg-1.2-win32-static\bin\ffmpeg.exe
        fields = name
        fileprefix = <firstbcastdate><_dldate><_name><_episodenum><_episode><_al
bum><_index>
        hide = 1
        isodate = 1
        lame = .\LAME\lame.exe
        mmsnothread = 1
        modes = default
        mplayer = .\MPlayer\mplayer-svn-36348\mplayer.exe
        nopurge = 1
        output = J:\get_iplayer
        rtmpdump = .\RTMPDump\rtmpdump.exe
        type = radio,podcast
        verbose = 1
        versionlist = default
        vlc = .\VLC\vlc-2.0.6\vlc.exe
        whitespace = 1

INFO: Search args: '^A Short History of Ireland$'
INFO: Got 20864 file cache entries for podcast
INFO: Got (quick) 3292 memcache entries for radio
INFO: Search term '^A Short History of Ireland$' is a substring
DEBUG: Search download_regex = ^A Short History of Ireland$
DEBUG: Search channel_regex = (4)
DEBUG: Search category_regex = .*
DEBUG: Search versions_regex = (default)
DEBUG: Search exclude_regex = ^ROGUE$
DEBUG: Search channel_exclude_regex = ^ROGUE$
DEBUG: Search category_exclude_regex = ^ROGUE$
DEBUG: Search since = 999999
DEBUG: Search before = -999999
_Andrew_Rissik_-_The_Psychedelic_Spy_name_radio_podcast
Current options:
        atomicparsley = .\AtomicParsley\AtomicParsley\AtomicParsley.exe
        channel = 4
        expiry = 14100
        ffmpeg = .\FFmpeg\ffmpeg-1.2-win32-static\bin\ffmpeg.exe
        fields = name
        fileprefix = <firstbcastdate><_dldate><_name><_episodenum><_episode><_al
bum><_index>
        hide = 1
        isodate = 1
        lame = .\LAME\lame.exe
        mmsnothread = 1
        modes = default
        mplayer = .\MPlayer\mplayer-svn-36348\mplayer.exe
        nopurge = 1
        output = J:\get_iplayer
        rtmpdump = .\RTMPDump\rtmpdump.exe
        type = radio,podcast
        verbose = 1
        versionlist = default
        vlc = .\VLC\vlc-2.0.6\vlc.exe
        whitespace = 1

INFO: Search args: '^Andrew Rissik \- The Psychedelic Spy$'
INFO: Got (quick) 20864 memcache entries for podcast
INFO: Got (quick) 3292 memcache entries for radio
INFO: Search term '^Andrew Rissik \- The Psychedelic Spy$' is a substring
DEBUG: Search download_regex = ^Andrew Rissik \- The Psychedelic Spy$
DEBUG: Search channel_regex = (4)
DEBUG: Search category_regex = .*
DEBUG: Search versions_regex = (default)
DEBUG: Search exclude_regex = ^ROGUE$
DEBUG: Search channel_exclude_regex = ^ROGUE$
DEBUG: Search category_exclude_regex = ^ROGUE$
DEBUG: Search since = 999999
DEBUG: Search before = -999999
_Archive_on_4_name_radio_podcast
Current options:
        atomicparsley = .\AtomicParsley\AtomicParsley\AtomicParsley.exe
        channel = 4
        expiry = 14100
        ffmpeg = .\FFmpeg\ffmpeg-1.2-win32-static\bin\ffmpeg.exe
        fields = name
        fileprefix = <firstbcastdate><_dldate><_name><_episodenum><_episode><_al
bum><_index>
        hide = 1
        isodate = 1
        lame = .\LAME\lame.exe
        mmsnothread = 1
        modes = default
        mplayer = .\MPlayer\mplayer-svn-36348\mplayer.exe
        nopurge = 1
        output = J:\get_iplayer
        rtmpdump = .\RTMPDump\rtmpdump.exe
        type = radio,podcast
        verbose = 1
        versionlist = default
        vlc = .\VLC\vlc-2.0.6\vlc.exe
        whitespace = 1

INFO: Search args: '^Archive on 4$'
INFO: Got (quick) 20864 memcache entries for podcast
INFO: Got (quick) 3292 memcache entries for radio
INFO: Search term '^Archive on 4$' is a substring
DEBUG: Search download_regex = ^Archive on 4$
DEBUG: Search channel_regex = (4)
DEBUG: Search category_regex = .*
DEBUG: Search versions_regex = (default)
DEBUG: Search exclude_regex = ^ROGUE$
DEBUG: Search channel_exclude_regex = ^ROGUE$
DEBUG: Search category_exclude_regex = ^ROGUE$
DEBUG: Search since = 999999
DEBUG: Search before = -999999
_Ashes_to_Ashes_name_radio_podcast
Current options:
        atomicparsley = .\AtomicParsley\AtomicParsley\AtomicParsley.exe
        channel = 4
        expiry = 14100
        ffmpeg = .\FFmpeg\ffmpeg-1.2-win32-static\bin\ffmpeg.exe
        fields = name
        fileprefix = <firstbcastdate><_dldate><_name><_episodenum><_episode><_al
bum><_index>
        hide = 1
        isodate = 1
        lame = .\LAME\lame.exe
        mmsnothread = 1
        modes = default
        mplayer = .\MPlayer\mplayer-svn-36348\mplayer.exe
        nopurge = 1
        output = J:\get_iplayer
        rtmpdump = .\RTMPDump\rtmpdump.exe
        type = radio,podcast
        verbose = 1
        versionlist = default
        vlc = .\VLC\vlc-2.0.6\vlc.exe
        whitespace = 1

INFO: Search args: '^Ashes to Ashes$'
INFO: Got (quick) 20864 memcache entries for podcast
INFO: Got (quick) 3292 memcache entries for radio
INFO: Search term '^Ashes to Ashes$' is a substring
DEBUG: Search download_regex = ^Ashes to Ashes$
DEBUG: Search channel_regex = (4)
DEBUG: Search category_regex = .*
DEBUG: Search versions_regex = (default)
DEBUG: Search exclude_regex = ^ROGUE$
DEBUG: Search channel_exclude_regex = ^ROGUE$
DEBUG: Search category_exclude_regex = ^ROGUE$
DEBUG: Search since = 999999
DEBUG: Search before = -999999
_At_Home_With_the_Hardys_name_radio
Current options:
        atomicparsley = .\AtomicParsley\AtomicParsley\AtomicParsley.exe
        expiry = 14100
        ffmpeg = .\FFmpeg\ffmpeg-1.2-win32-static\bin\ffmpeg.exe
        fields = name
        fileprefix = <firstbcastdate><_dldate><_name><_episodenum><_episode><_al
bum><_index>
        hide = 1
        isodate = 1
        lame = .\LAME\lame.exe
        mmsnothread = 1
        modes = default
        mplayer = .\MPlayer\mplayer-svn-36348\mplayer.exe
        nopurge = 1
        output = J:\get_iplayer
        rtmpdump = .\RTMPDump\rtmpdump.exe
        type = radio
        verbose = 1
        versionlist = default
        vlc = .\VLC\vlc-2.0.6\vlc.exe
        whitespace = 1

INFO: Search args: '^At Home With the Hardys$'
INFO: Got (quick) 3292 memcache entries for radio
INFO: Search term '^At Home With the Hardys$' is a substring
DEBUG: Search download_regex = ^At Home With the Hardys$
DEBUG: Search channel_regex = .*
DEBUG: Search category_regex = .*
DEBUG: Search versions_regex = (default)
DEBUG: Search exclude_regex = ^ROGUE$
DEBUG: Search channel_exclude_regex = ^ROGUE$
DEBUG: Search category_exclude_regex = ^ROGUE$
DEBUG: Search since = 999999
DEBUG: Search before = -999999
_Best_of_Natural_History_Radio_name_radio_podcast
Current options:
        atomicparsley = .\AtomicParsley\AtomicParsley\AtomicParsley.exe
        expiry = 14100
        ffmpeg = .\FFmpeg\ffmpeg-1.2-win32-static\bin\ffmpeg.exe
        fields = name
        fileprefix = <firstbcastdate><_dldate><_name><_episodenum><_episode><_al
bum><_index>
        hide = 1
        isodate = 1
        lame = .\LAME\lame.exe
        mmsnothread = 1
        modes = default
        mplayer = .\MPlayer\mplayer-svn-36348\mplayer.exe
        nopurge = 1
        output = J:\get_iplayer
        rtmpdump = .\RTMPDump\rtmpdump.exe
        type = radio,podcast
        verbose = 1
        versionlist = default
        vlc = .\VLC\vlc-2.0.6\vlc.exe
        whitespace = 1

INFO: Search args: '^Best of Natural History Radio$'
INFO: Got (quick) 20864 memcache entries for podcast
INFO: Got (quick) 3292 memcache entries for radio
INFO: Search term '^Best of Natural History Radio$' is a substring
DEBUG: Search download_regex = ^Best of Natural History Radio$
DEBUG: Search channel_regex = .*
DEBUG: Search category_regex = .*
DEBUG: Search versions_regex = (default)
DEBUG: Search exclude_regex = ^ROGUE$
DEBUG: Search channel_exclude_regex = ^ROGUE$
DEBUG: Search category_exclude_regex = ^ROGUE$
DEBUG: Search since = 999999
DEBUG: Search before = -999999
Matches:
202149: podcast, Best of Natural History Radio - NatHistory: Living World - Lepi
dopteran Winter - 09 Feb 14, Sun, 09 Feb 2014 07:00:00 +0000, BBC Radio 4, Scien
ce & Medicine
202150: podcast, Best of Natural History Radio - NatHistory: Nature: Arctic tern
s at 66 Degrees North - 11 Feb 14, Tue, 11 Feb 2014 11:30:00 +0000, BBC Radio 4,
Science & Medicine

INFO: 2 Matching Programmes
INFO: Programme not in history
INFO: Programme not in history
INFO: Will search for versions: default
INFO: Mode list: podcast
INFO: Checking existence of default version
INFO: Version = default
INFO: podcast modes will be tried for version default
INFO: Trying podcast mode to record podcast: Best of Natural History Radio - Nat
History: Living World - Lepidopteran Winter - 09 Feb 14
INFO: Attempt number: 1 / 3
INFO: File name prefix = _2014-02-14_Best of Natural History Radio_NatHistory: L
iving World - Lepidopteran Winter - 09 Feb 14_202149
INFO: URL = http://downloads.bbc.co.uk/podcasts/radio4/nathistory/nathistory_201
40209-0700a.mp3
INFO: Appending to J:\get_iplayer\_2014-02-14_Best of Natural History Radio_NatH
istory: Living World - Lepidopteran Winter - 09 Feb 14_202149.partial.mp3

INFO: Downloading range 0-
DEBUG: writing stream to J:\get_iplayer\_2014-02-14_Best of Natural History Radi
o_NatHistory: Living World - Lepidopteran Winter - 09 Feb 14_202149.partial.mp3,
Range: 0 -  of http://downloads.bbc.co.uk/podcasts/radio4/nathistory/nathistory
_20140209-0700a.mp3
INFO: Content-Length = 10553951
Can't call method "size" on an undefined value at C:\Program Files\get_iplayer\g
et_iplayer.pl line 9073.

user-2

This is me shaking my head. I instructed you to upload your log as an attachment for a reason. Nobody - including me - wants threads cluttered with hundreds of lines of completely irrelevant text. Tip for the future: If you have a problem downloading a particular programme, don't test by using the PVR to attempt to download everything in your list. Test with the one programme - and one programme only - that has the problem.

As for the problem at hand, my guess is there is something flakey about whatever disk you have mounted at J:. For some reason, get_iplayer can't access the newly-downloaded podcast file to determine its size. However, two podcast download failures in a week doesn't establish a pattern. Try to download, say, 10 podcast episodes in a row to see if they all fail in a consistent manner. If any fail, try to download the exact same podcasts with the output directory set to a location on your internal hard disk, to see if results are different on a different disk.

user-2

Another to do is check whether or not the file actually has been downloaded. get_iplayer thinks it has at the point the error occurs, but if the file isn't actually there it would explain the error message at least.

user-341

Apologies about the attachments, still the same but don't have time for an in depth analysis at the mo. Will post more results as soon as I have the time, thanks for your support. J: is one of my internal HDDs, I will try changing the path to another drive to see if that helps.

user-341

No time for a detailed analysis yet but changing disk has not resolved the problem

user-2

Is there any output file, even a zero-byte file?

user-341

Yes, it creates a 0 byte file with no file extension

user-2

Show me the full get_iplayer command. I can't check it otherwise. Also show me the full name of the zero-byte file.

user-341

I noticed some of the filenames were amazingly long due to <descshort> containing the full programme synopsis so I changed my file prefix to:

get_iplayer --prefs-add --file-prefix "<firstbcast><_dldate><_name><_senum><_index>"

I'm no longer getting 0 byte files but still erroring.

user-2

A too-long output file name might explain why you got zero-byte files, but if you won't send a proper log I can only guess.

As to your new problem, you appear to have misconfigured get_iplayer. Again, if you won't send a proper log, I can only guess. You appear to be using
Code:
--whitespace
without
Code:
--fatfilename
, which means get_iplayer is attempting to write to a file with an illegal name for Windows.
Code:
--fatfilename
is set by default on Windows in recent versions of get_iplayer, so you've either disabled it or you're using an old version. Whatever the case, always use
Code:
--fatfilename
on Windows to avoid this problem.

These forums are archived

See this post for further info