Results 1 to 8 of 8

Thread: [SOLVED] mythrename.pl "Option format requires an argument"

  1. #1
    Join Date
    Jul 2007
    Beans
    138

    [SOLVED] mythrename.pl "Option format requires an argument"

    I have a cron job set up to create human-readable symlinks for my recordings, and is as such:

    Code:
    */10 * * * * /scripts/tim/mythrename.pl /var/lib/mythtv/recordings --format %T/%S /var/lib/mythtv/recordings --link /recordings
    However, this format is not working, and I am receiving mail stating

    Code:
    Subject: Cron <tim@server> /scripts/tim/mythrename.pl /var/lib/mythtv/recordings --format
    Option format requires an argument
    I don't understand why I would be receiving this... The --format arguments are there and the command works properly when run through the command line.

    Any suggestions would be appreciated. Thanks

  2. #2
    Join Date
    Jul 2007
    Beans
    138

    Re: mythrename.pl "Option format requires an argument"

    bump

  3. #3
    Join Date
    May 2006
    Location
    Milwaukee,WI
    Beans
    6,282
    Distro
    Xubuntu 14.04 Trusty Tahr

    Re: mythrename.pl "Option format requires an argument"

    I use mythrename.pl myself but don't mess around with using the --format at all. I just settle for the default. BUT when I look at the code of mythrename.pl you can see towards the top what the default names are set to be. maybe try editing the following line to only include the format you want.
    My links come out like this:
    CSI- Miami - 2008-02-04, 9-00 PM - Bang, Bang, Your Debt.mpg

    so if you only wanted the %T and the %S
    something like this maybe?

    # Default filename format
    $dformat = '%T %- %S';

    which should result in
    CSI- Miami - Bang, Bang, Your Debt.mpg

  4. #4
    Join Date
    Jul 2007
    Beans
    138

    Re: mythrename.pl "Option format requires an argument"

    The format that I selected creates directories for each show, then has the episodes within. I am doing the symlinking option, and it just turns out nicer over the samba share.

    What I'm not sure about is why it doesn't see the other half of the command. What has me wondering is that the same command works just fine through the normal command line...

  5. #5
    Join Date
    May 2006
    Location
    Milwaukee,WI
    Beans
    6,282
    Distro
    Xubuntu 14.04 Trusty Tahr

    Re: mythrename.pl "Option format requires an argument"

    i do the symlink command as well. it may not be working thru the script because of the way the script is written, just try to change the default like I suggested and see what happens. here;s my crontab for mythrename.pl
    0 * * * * /usr/local/bin/mythrename.pl --link /media/400gb/mythtv/readable-recordings

  6. #6
    Join Date
    Jul 2007
    Beans
    138

    Re: mythrename.pl "Option format requires an argument"

    It does appear to the the --format option that is at fault for whatever reason. I can do without for the time being.

    Thanks for your help.

  7. #7
    Join Date
    May 2006
    Location
    Milwaukee,WI
    Beans
    6,282
    Distro
    Xubuntu 14.04 Trusty Tahr

    Re: mythrename.pl "Option format requires an argument"

    why do without? i said, just change the mythrename.pl script where it says default and the linked human readable recordings will be the way you want them.

  8. #8
    Join Date
    Mar 2008
    Location
    Melbourne
    Beans
    2
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: [SOLVED] mythrename.pl &quot;Option format requires an argument&quot;

    Personally, I find this works well for me.

    Shows categorized by title, but no dodgy file names for shows without a subtitle. Also sortable by date recorded.

    Code:
    */10 * * * * mythtv nice -n 19 /usr/bin/mythrename.pl --format "\%T/\%Y-\%m-\%d \%H\%i \%- \%T \%-\%S" --link /mythtv/readable-recordings
    Cheers.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •