Skip to content

Instantly share code, notes, and snippets.

View chrippa's full-sized avatar

Christopher Rosell chrippa

View GitHub Profile
// Pseudokod
/*
path: /by-group/zx/Shin Seiki Evangelion/Shin Seiki Evangelion 01.mkv
level 0: /
level 1: by-group
level 2: zx
level 3: Shin Seiki Evangelion
// Pseudokod
handle_file (file)
{
// Hasha filen
hash = hashfs_hash_ed2k(file)
// Leta upp metadata
result = anidb_ed2k_lookup(hash)
21:33:37 DEBUG ../src/anidbfs/anidbfs-update.c:236: Connecting to AniDB
21:33:37 DEBUG ../src/anidbfs/anidbfs-update.c:141: <result 0x804c800 (string) "MhSXN">
21:33:37 LOG Hashing dir: /storage/ch01/anime/hdtv
21:33:37 LOG Hashing dir: /storage/ch01/anime/hdtv/ergo_proxy.720p
21:33:37 LOG Hashing dir: /storage/ch01/anime/hdtv/ergo_proxy.720p/[A-Kraze]_Ergo_Proxy_01-12_[1280x720_H264_AAC_5.1]
21:33:37 LOG Hashing file: [A-Kraze]_Ergo_Proxy_-_12_[1280x720_H264_AAC_5.1][84B13C80].mkv
21:33:38 DEBUG ../src/anidbfs/anidbfs-update.c:175: Hash: 8a9eed460c11a9494c5428de202e0e9b
21:33:38 DEBUG ../src/anidbfs/anidbfs-update.c:152: <result 0x804c8b8 (dict)
21:33:38 DEBUG ../src/anidbfs/anidbfs-update.c:155: fid = "256492"
21:33:38 DEBUG ../src/anidbfs/anidbfs-update.c:155: aid = "3302"