[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
Linuxcentre • View topic - [solved] --info option creates empty folders

[solved] --info option creates empty folders

Bring out the bugs.

[solved] --info option creates empty folders

Postby james » 03 Feb 2010 18:47

Hello

If I do the following command

get_iplayer <pid> --info

as well as receiving the info on the program, it also creates an empty directory of the program name. I then have to go and delete the directory if I decide not to download the program. Here's what's in my options file.

whitespace 1
radiomode iphone,flashaudio,flashaacstd
outputtv /Qmultimedia/iPlayer/TV/
nopurge 1
flvstreamer /share/Public/.get_iplayer/flvstreamer
thumb 1
subdir 1
isodate 1
mplayer /opt/bin/mplayer
atomicparsley /share/Public/.get_iplayer/AtomicParsley
fileprefix <episode>
command /share/Public/.get_iplayer/createxml "<name>" "<filename>"
id3v2 /opt/bin/id3tag
ffmpeg /opt/bin/ffmpeg
thumbsize 6
outputradio /Qmultimedia/iPlayer/Radio/
tvmode flashhd,flashvhigh,flashhigh,iphone

Cheers
james
 
Posts: 5
Joined: 19 Jan 2010 16:55

Re: --info option creates empty folders

Postby NetworkNed » 05 Feb 2010 02:17

I think this similar behaviour must be related:
Code: Select all
$ get_iplayer animal
get_iplayer v2.55, Copyright (C) 2008-2010 Phil Lewis
  This program comes with ABSOLUTELY NO WARRANTY; for details use --warranty.
  This is free software, and you are welcome to redistribute it under certain
  conditions; use --conditions for details.

Matches:
50:   Animal Park: Series 7 - 45 minute reversions: Episode 13, BBC Two, Factual,Pets & Animals,TV, default
51:   Animal Park: Series 7 - 45 minute reversions: Episode 14, BBC Two, Factual,Pets & Animals,TV, default
52:   Animal Park: Series 7 - 45 minute reversions: Episode 15, BBC Two, Factual,Pets & Animals,TV, default
53:   Animal Park: Wild in Africa: Series 2 - Episode 13, BBC Two, Factual,Pets & Animals,TV, default

INFO: 4 Matching Programmes
$ get_iplayer -i 50
get_iplayer v2.55, Copyright (C) 2008-2010 Phil Lewis
  This program comes with ABSOLUTELY NO WARRANTY; for details use --warranty.
  This is free software, and you are welcome to redistribute it under certain
  conditions; use --conditions for details.

Matches:
50:   Animal Park: Series 7 - 45 minute reversions: Episode 13, BBC Two, Factual,Pets & Animals,TV, default
INFO: File name prefix = Animal_Park_-_Series_7_45_minute_reversions_Episode_13_b007cjl0_default                 

available:      Unknown
categories:     Factual,Pets & Animals
channel:        BBC Two
desc:           Ben Fogle and Kate Humble explore life behind the scenes at Longleat Estate and Safari Park. The vultures are gathering at Longleat - will the ten African white-backed vultures take to their brand new enclosure? The white rhino have got a case of the trots, so Kate tries an unusual homeopathic cure. And Jess and Jethro have given birth to Gomez - a beautiful baby tapir.
dir:            /mnt/space/Media/BBC
dldate:         2010-02-05
dltime:         02:16:00
duration:       2700
durations:      default: 2700
episode:        Series 7: 45 minute reversions: Episode 13
episodenum:     13
expiry:         2010-02-08T14:14:00Z
expiryrel:      in 3 days 11 hours
ext:            EXT
filename:       /mnt/space/Media/BBC/Animal_Park_-_Series_7_45_minute_reversions_Episode_13_b007cjl0_default.EXT
filepart:       /mnt/space/Media/BBC/Animal_Park_-_Series_7_45_minute_reversions_Episode_13_b007cjl0_default.partial.EXT
fileprefix:     Animal_Park_-_Series_7_45_minute_reversions_Episode_13_b007cjl0_default
firstbcast:     default: 2010-02-01T13:30:00Z
firstbcastrel:  default: 3 days 12 hours ago
index:          50
lastbcast:      default: 2010-02-01T13:30:00Z
lastbcastrel:   default: 3 days 12 hours ago
longname:       Animal Park: Series 7
modes:          default: flashhigh1,flashhigh2,flashstd1,flashstd2,flashvhigh1,flashvhigh2,iphone1,n95_3g1,n95_wifi1,subtitles1
modesizes:      default: flashhigh1=262MB,flashhigh2=262MB,flashstd1=158MB,flashstd2=158MB,flashvhigh1=494MB,flashvhigh2=494MB,iphone1=170MB,n95_3g1=34MB,n95_wifi1=61MB
name:           Animal Park
pid:            b007cjl0
player:         http://www.bbc.co.uk/iplayer/episode/b007cjl0/Animal_Park_Series_7_45_minute_reversions_Episode_13/
seriesnum:      7
thumbfile:      /mnt/space/Media/BBC/Animal_Park_-_Series_7_45_minute_reversions_Episode_13_b007cjl0_default.jpg
thumbnail:      http://www.bbc.co.uk/iplayer/images/episode/b007cjl0_150_84.jpg
thumbnail1:     http://node1.bbcimg.co.uk/iplayer/images/episode/b007cjl0_86_48.jpg
thumbnail2:     http://node1.bbcimg.co.uk/iplayer/images/episode/b007cjl0_150_84.jpg
thumbnail3:     http://node1.bbcimg.co.uk/iplayer/images/episode/b007cjl0_178_100.jpg
thumbnail4:     http://node1.bbcimg.co.uk/iplayer/images/episode/b007cjl0_512_288.jpg
thumbnail5:     http://node1.bbcimg.co.uk/iplayer/images/episode/b007cjl0_528_297.jpg
thumbnail6:     http://node1.bbcimg.co.uk/iplayer/images/episode/b007cjl0_640_360.jpg
timeadded:      3 days 0 hours ago (1265076013)
title:          Animal Park: Series 7: 45 minute reversions: Episode 13
type:           tv
verpids:        default: b006pc9m
version:        default
versions:       default
web:            http://www.bbc.co.uk/programmes/b007cjl0.html


INFO: 1 Matching Programmes
$ get_iplayer -i b007cjl0
get_iplayer v2.55, Copyright (C) 2008-2010 Phil Lewis
  This program comes with ABSOLUTELY NO WARRANTY; for details use --warranty.
  This is free software, and you are welcome to redistribute it under certain
  conditions; use --conditions for details.


INFO: 0 Matching Programmes
$ get_iplayer -i --pid b007cjl0
get_iplayer v2.55, Copyright (C) 2008-2010 Phil Lewis
  This program comes with ABSOLUTELY NO WARRANTY; for details use --warranty.
  This is free software, and you are welcome to redistribute it under certain
  conditions; use --conditions for details.

INFO Trying to stream pid using type tv
INFO: pid found in cache
Matches:
50:   Animal Park: Series 7 - 45 minute reversions: Episode 13, BBC Two, Factual,Pets & Animals,TV, default
INFO: File name prefix = Animal_Park_-_Series_7_45_minute_reversions_Episode_13_b007cjl0_default                 

available:      Unknown
categories:     Factual,Pets & Animals
channel:        BBC Two
desc:           Ben Fogle and Kate Humble explore life behind the scenes at Longleat Estate and Safari Park. The vultures are gathering at Longleat - will the ten African white-backed vultures take to their brand new enclosure? The white rhino have got a case of the trots, so Kate tries an unusual homeopathic cure. And Jess and Jethro have given birth to Gomez - a beautiful baby tapir.
dir:            /mnt/space/Media/BBC
dldate:         2010-02-05
dltime:         02:16:15
duration:       2700
durations:      default: 2700
episode:        Series 7: 45 minute reversions: Episode 13
episodenum:     13
expiry:         2010-02-08T14:14:00Z
expiryrel:      in 3 days 11 hours
ext:            EXT
filename:       /mnt/space/Media/BBC/Animal_Park_-_Series_7_45_minute_reversions_Episode_13_b007cjl0_default.EXT
filepart:       /mnt/space/Media/BBC/Animal_Park_-_Series_7_45_minute_reversions_Episode_13_b007cjl0_default.partial.EXT
fileprefix:     Animal_Park_-_Series_7_45_minute_reversions_Episode_13_b007cjl0_default
firstbcast:     default: 2010-02-01T13:30:00Z
firstbcastrel:  default: 3 days 12 hours ago
index:          50
lastbcast:      default: 2010-02-01T13:30:00Z
lastbcastrel:   default: 3 days 12 hours ago
longname:       Animal Park: Series 7
modes:          default: flashhigh1,flashhigh2,flashstd1,flashstd2,flashvhigh1,flashvhigh2,iphone1,n95_3g1,n95_wifi1,subtitles1
modesizes:      default: flashhigh1=262MB,flashhigh2=262MB,flashstd1=158MB,flashstd2=158MB,flashvhigh1=494MB,flashvhigh2=494MB,iphone1=170MB,n95_3g1=34MB,n95_wifi1=61MB
name:           Animal Park
pid:            b007cjl0
player:         http://www.bbc.co.uk/iplayer/episode/b007cjl0/Animal_Park_Series_7_45_minute_reversions_Episode_13/
seriesnum:      7
thumbfile:      /mnt/space/Media/BBC/Animal_Park_-_Series_7_45_minute_reversions_Episode_13_b007cjl0_default.jpg
thumbnail:      http://www.bbc.co.uk/iplayer/images/episode/b007cjl0_150_84.jpg
thumbnail1:     http://node1.bbcimg.co.uk/iplayer/images/episode/b007cjl0_86_48.jpg
thumbnail2:     http://node1.bbcimg.co.uk/iplayer/images/episode/b007cjl0_150_84.jpg
thumbnail3:     http://node1.bbcimg.co.uk/iplayer/images/episode/b007cjl0_178_100.jpg
thumbnail4:     http://node1.bbcimg.co.uk/iplayer/images/episode/b007cjl0_512_288.jpg
thumbnail5:     http://node1.bbcimg.co.uk/iplayer/images/episode/b007cjl0_528_297.jpg
thumbnail6:     http://node1.bbcimg.co.uk/iplayer/images/episode/b007cjl0_640_360.jpg
timeadded:      3 days 0 hours ago (1265076013)
title:          Animal Park: Series 7: 45 minute reversions: Episode 13
type:           tv
verpids:        default: b006pc9m
version:        default
versions:       default
web:            http://www.bbc.co.uk/programmes/b007cjl0.html


INFO: 1 Matching Programmes
INFO: Checking existence of default version
INFO: flashvhigh1,flashvhigh2 modes will be tried for version default
INFO: Trying flashvhigh1 mode to record tv: Animal Park - Series 7: 45 minute reversions: Episode 13
INFO: File name prefix = Animal_Park_-_Series_7_45_minute_reversions_Episode_13_b007cjl0_default                 
FLVStreamer v1.9
(c) 2009 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
Connecting ...
Starting download at: 0.000 kB
Metadata:                 
  duration              2610.07
  moovPosition          32
  width                 832
  height                468
  videocodecid          avc1
  audiocodecid          mp4a
  avcprofile            77
  avclevel              30
  aacaot                2
  videoframerate        25
  audiosamplerate       48000
  audiochannels         2
trackinfo:
  length                65251000
  timescale             25000
  language              eng
sampledescription:
  sampletype            avc1
  length                125283328
  timescale             48000
  language              eng
sampledescription:
  sampletype            mp4a
410.652 kB / 1.96 sec (0.1%)^C
INFO: Cleaning up (signal = INT), killing PID=18720:.
Caught signal: 2, cleaning up, just a second...
ERROR: ReadPacket, failed to read RTMP packet body. len: 66162
Download may be incomplete (downloaded about 0.10%), try resuming
..
$

I would expect `get_iplayer -i --pid b007cjl0` to simply show the information about this program, not to also try to download it (which in the above output I cancelled with a ctrl-C).

Please note that I'm not using latest at the moment but (I think) v2.55.

I have been meaning to upgrade for a couple of weeks, to reproduce this issue more thoroughly and maybe even take a look at the code. But I add this diagnostic because I figure it may be related to James' report.
The forum's avatar functionality is currently disabled. :(
NetworkNed
 
Posts: 22
Joined: 21 Jan 2010 02:04

Re: --info option creates empty folders

Postby linuxcentre » 05 Feb 2010 07:25

The creation of empty subdirs is a known bug when you get metadata or info and use the --subdir option.

I think the OP meant to say they used 'get_iplayer <index> --info' as the <pid> is not searched for by default.

The --pid will always result in an attempted recording as per the usage. Using --info just additionally gets programme info. If you just want the info based on thepid use: 'get_iplayer --fields=pid <pid> --info'
linuxcentre
Site Admin
 
Posts: 306
Joined: 31 Dec 2009 17:29

Re: --info option creates empty folders

Postby dave » 09 Feb 2010 17:03

linuxcentre wrote:The creation of empty subdirs is a known bug when you get metadata or info and use the --subdir option.

I think the OP meant to say they used 'get_iplayer <index> --info' as the <pid> is not searched for by default.

The --pid will always result in an attempted recording as per the usage. Using --info just additionally gets programme info. If you just want the info based on thepid use: 'get_iplayer --fields=pid <pid> --info'


The empty folders are also created when using the --stream option with the subdir option set in the main options file, but I already emailed linuxcentre on this one.
dave
 
Posts: 6
Joined: 20 Jan 2010 03:18

Re: --info option creates empty folders

Postby linuxcentre » 07 Mar 2010 22:17

The incorrect creation of subdirs when streaming etc is now fixed in v2.73.
linuxcentre
Site Admin
 
Posts: 306
Joined: 31 Dec 2009 17:29


Return to bugs



Who is online

Users browsing this forum: No registered users and 2 guests

cron
./cache/ is NOT writable.