Also, it looks like perl isn’t properly populating the include path, as it can’t find utf8_heavy, which is located in the same path where it pulled utf8.pm:
jmenke@emily:~/tablodump$ capto -s Painting
Can't locate utf8_heavy.pl in @INC (@INC contains: /tmp/par-6a6d656e6b65/cache-167dafd6df8ada86d94a1d67988ba75da6c65d14/inc/lib /tmp/par-6a6d656e6b65/cache-167dafd6df8ada86d94a1d67988ba75da6c65d14/inc CODE(0x55f9b9f97540) CODE(0x55f9b9f97738)) at /usr/share/perl/5.24/utf8.pm line 16.
jmenke@emily:~/tablodump$ locate utf8_heavy.pl
/usr/lib/x86_64-linux-gnu/perl-base/utf8_heavy.pl
/usr/share/perl/5.24.1/utf8_heavy.pl
(/usr/share/perl/5.24 is a symlink to /usr/share/perl.5.24.1):
If your packed program exits with an error message like
Can't locate utf8_heavy.pl in @INC (@INC contains: ...)
Same as @johnmenke, implying it’s not user issue. Suggesting the developer:
try to pack it with -u (or use -x).
-u , –unicode
Package Unicode support (essentially utf8_heavy.pl and everything below the directory unicore in your perl library).
This option exists because it is impossible to detect using static analysis if your program needs Unicode support at runtime. (Note: If your program contains use utf8 this does not imply it needs Unicode support. It merely says that your program is written in UTF-8.)
He shows perl 5.24 mine shows 5.26 and 5.28 - maybe just enough changed between whatever version you started with.
capto -v
capto v0.6
dj@htpc:~$ capto -e 7728 -f Manifest -ffmpeg /usr/bin/ffmpeg
[capto] ffmpeg path set to: /usr/bin/ffmpeg
[capto] datetime => Mon Nov 05 22:00:00 2018
[capto] duration => 3682
[capto] epid => 7728
[capto] episode => 06
[capto] epoch => 1541473200
[capto] eptitle => Off Radar
[capto] recid => 6832
[capto] season => 01
[capto] series => Manifest
[capto] title => Manifest - s01e06 - Off Radar
[capto] type => series
[capto] watchid => 7728
[capto]
[capto] [Control-C to Abort]
[capto]
[capto] Manifest
[capto] Progress: / 01:01:21 (speed ) (size 0.00MB) [0%]
[capto] Export Completed in: 0h 0m 0s
Here I first capto -v then ran the command. If you’re telling me there is a new version, with the exact same version number - not sure I can’t keep track of that.
I did test single quote in show title and episode title without issue. Well, if I tried to -f “file name with 'in it.mp4” it still removed it. But file names really souldn’t have them. It overlooks ! in titles and “; , ?” in episode names, haven’t found an ampersand, colon or a paren yet. : ) Someday for some unknown reason they’ll throw a " in there.
Looks good! I’ve run this through some for loops and have moved several shows to Plex, then clearing up about half a terabyte of space on my Tablo disk.
One question… do you have plans for accepting multiple arguments? Deletion takes a while, due to the fact that it’s updating the database after every delete action. It would speed things up if I could pass it multiple arguments after the -d flag so that it would only need to update the database once it has deleted all of them.
Updated all versions to 0.6. I was having some issues with the mac one so cant promise that will work. I cant seem to update my original post which sucks.
changelog
v0.6
built with Package Unicode support
more attempts to fix bad characters crashing the program
added version switch (-v)
updated ffmpeg for all platforms
added link to gnu license for ffmpeg (to keep djk44883’s head from exploding)
will auto add .mp4 to files that do not contain it
added this changelog to the packages
now ignoring and stripping out the following characters: ’ ’ ! “ ? ; : , "
can now delete multiple ids before update with: -d id1,id2,id3,etc
Manta:capto.v0.6.macos jkeenan$ ./capto -u 192.168.111.25
Can't locate JSON.pm in @INC (you may need to install the JSON module) (@INC contains: CODE(0x7fc1a0da1458) /var/folders/j5/hp16sj9j077g4c8cszk56pv80000gq/T/par-6a6b65656e616e/cache-614779a50441313fe3639a87e1dcffeb89149e6f/inc/lib /var/folders/j5/hp16sj9j077g4c8cszk56pv80000gq/T/par-6a6b65656e616e/cache-614779a50441313fe3639a87e1dcffeb89149e6f/inc CODE(0x7fc1a0c8e5b0) CODE(0x7fc1a0c8eb00)) at script/capto.pl line 7.
BEGIN failed--compilation aborted at script/capto.pl line 7.
All the steps on the linked web page were followed.
Manta:capto.v0.6.macos jkeenan$ sudo cpanm install JSON
Password:
install is up to date. (0.01)
JSON is up to date. (2.97001)