Anime CRC32 checksum in Linux

August 31, 2007

Submitted by: Taoufix

Category: Computers, Media & Fun

1,884 views

  • Make sure you have python fchksum installed (for gentoo users : emerge dev-python/python-fchksum)
  • Create a file (crc32sum.py) w/ the following content:
#!/usr/bin/python
import fchksum
 
for file in sys.argv[1:]:
    print fchksum.fcrc32t(file)[0], "  ", file
  • Now you can check your favorite Anime files:
$ ./crc32sum.py [DB]_Naruto*
F71B0275   [DB]_Naruto_Shippuuden_025_F71B0275].avi
35057A9C   [DB]_Naruto_Shippuuden_026_35057A9C].avi

[Update 2008.11.05] Here’s a version which doesn’t need extra modules installation: animecheck.py

If you liked this, please share it at your favorite sites:
  • Digg
  • Reddit
  • del.icio.us
  • Wikio
  • Facebook
  • Google
  • Technorati
  • TwitThis
  • MySpace
  • N4G
  • NewsVine
  • StumbleUpon
  • BlogMemes
  • Blogsvine
  • blogtercimlap
  • DotNetKicks
  • eKudos
  • Faves
  • Fleck
  • Scoopeo
  • Socialogs
  • Upnews
  • Yigg
  • E-mail this story to a friend!
  • Mixx

5 Responses :D Pretty Cool

  • Thanks, had searched for some time.

    I need to tell you, thought, that this script doesn’t work as it is, because of the quotes, that have been changed to non-ASCII characters…

  • @Franz: sorry, the post got messed up during the migration to wordpress. I uploaded an updated version of the script.

  • [...] little work on my previous Anime CRC32 checksum program resulted in [...]

  • I improved it a little: http://pastebin.com/f6decf8fc
    (Uses a regexp to find the CRC32 in the filename more reliably)

  • I have noticed that this script has some size limitations (it was about 1G for me).
    I have found another program, cksfv, which can crc32 calculations.
    It is designed to be used with a .sfv file, but if you just give it the file names, it will print the name and hash.

    I’m sure it would not be very hard to write a bash script to handle the checking, and the colours.

    (There is also bsdsfv, but cksfv seems better).

Leave a Reply

:D :) :cry: :( 8O :twisted: :!: :vangry: :XO: :up: ;) :mrgreen: :halo: :kiss: :roll: :? 8) :evil: :oops: :| :?: :x :$: