UDP API Clients

Want to help out? Need help accessing the AniDB API? This is the place to ask questions.

Moderator: AniDB

ExElNeT
Posts: 13
Joined: Tue May 10, 2005 11:58 am

AniDBCmdC second version. 1.1 beta

Post by ExElNeT »

new features:

Code: Select all

  -a, --anidb-mylist-flags=FLAG_LIST      describes using which flags a file should be added
                                            syntax: 'addit,state,viewed,storage,other'
                                            addit syntax: 0 do not add to mylist, 1 for add new, 2 add all
                                            state sytax: 0 - unknown, 1 - hdd, 2 - cd, 3 - deleted
                                            4 - shared, 5 - release  viewed: 0 or 1, storage, other strings
                                            default: '2,1,0,,'
      --enable-animetree                  will create a subdir structure in --move-finished dir
                                            e.g if --move-finished dir 'anime'
                                            all bleach eps will end in 'anime/bleach/bleach...avi'


  -m, --move-finished=DIRECTORY           moves finished files to DIRECTORY

i havent had enough time to test everything ... something might not work ... I think I have to check for bugs the next days ;)

have fun
ExElNeT
ricce
Posts: 199
Joined: Wed Apr 06, 2005 8:42 pm
Location: Sweden / Västrås
Contact:

Post by ricce »

New 1.4 issue:

Code: Select all

Exception in thread "main" java.lang.NoSuchMethodError: java.util.regex.Pattern.quote(Ljava/lang/String;)Ljava/lang/String;
        at anidbcmdc.impl.AnimeFile.<init>(AnimeFile.java:89)
        at anidbcmdc.impl.AniDBUdpApiConnection.getAnimeFileByEd2k(AniDBUdpApiConnection.java:204)
        at anidbcmdc.ui.Console.start(Console.java:141)
        at anidbcmdc.ui.AniDBCmdC.parseOptions(AniDBCmdC.java:177)
        at anidbcmdc.ui.AniDBCmdC.main(AniDBCmdC.java:56)
ExElNeT
Posts: 13
Joined: Tue May 10, 2005 11:58 am

Post by ExElNeT »

thats a big problem because 1.4 doesnt offer a replace method without regexes and thats a method needed to escape those ...

i ll try to find a way arround this ...
epoximator
AniDB Staff
Posts: 379
Joined: Sun Nov 07, 2004 11:05 am

Post by epoximator »

make ur own replace method or use GeneralString in jonelo
ExElNeT
Posts: 13
Joined: Tue May 10, 2005 11:58 am

Post by ExElNeT »

thanks for the advice i ll try it ... but still i am wondering how the java devs think about what they ve done ... they removed a normal String replace completely ...
ExElNeT
Posts: 13
Joined: Tue May 10, 2005 11:58 am

AniDBCmdC third version. 1.2 beta

Post by ExElNeT »

http://user.cs.tu-berlin.de/~exelnet/anidbcmdc.jar

- fixed some bugs with '/' in filenames
- made it 1.4 compatible again
- some small fixes

have fun
ExElNeT
dinoex
Posts: 35
Joined: Wed Nov 17, 2004 8:28 pm
Contact:

Re: Client for Linux/FreeBSD

Post by dinoex »

AniUpdate has passed its beta-stage

http://iroffer.dinoex.net/aniupdate-1.13.tar.gz

- target OS: FreeBSD, OpenBSD, NetBSD + Linux
- programming language: choose C or ObjectiveC version.

- handles diffrents config file
- all options overwritweable on the commandline
- saves all data in BerkelyDB tables.
- preserve session and timeouts between runs
- Filenames can be passed if a list of e2dk hashes is found.

Usage: aniupdate [options] [...] commands [...]

options:
-debug show datagramms
-verbose show files processed
-quiet don't print data
-f <config> set name of config file, default '.aniudate'
--<name>=<value> overrite config with given value
-local <port> set local port number, default 9000
-remote <port> set remote port number, default 9000
-server <name> set remote host, default anidb.ath.cx
-user set userid

commands:
+ping test communication
+add ed2klink [...] add files to mylist
+read ed2klink [...] read mylist info
+view ed2klink [...] set files as viewed (date will not be preserved)
+unview ed2klink [...] set files as unviewed
+edit key=value ed2klink [...] change a field in mylist
Knch
Posts: 5
Joined: Tue Jul 29, 2003 1:17 pm

Post by Knch »

Name : AniDB-Over-UDP (uses "anidboverudp" as id)
target OS: Windows
programming language: C#
functions: all
download URL: later...
robert
Posts: 1
Joined: Fri Aug 19, 2005 3:18 am

PHP Client

Post by robert »

Client Name: festival
Target OS: All supported by PHP
Programming Language: PHP
Functions you're planning to implement: AUTH, FILE, and LOGOUT
What you're NOT going to implement: Everything not required to use just the FILE command
Download url for your client: Once complete, I will release all the code that actually talks to AniDB as a PHP library anyone can use/extend. The actual client I am writing won't likely be useful to anyone other than myself.

-Robert
aredhel
Posts: 4
Joined: Sun Aug 21, 2005 7:10 am

Post by aredhel »

While my email works you are better off sending a msg to me, so it pops up while I am checking for new anime.

Human readable Name: ? If I release it, I will try and think of one.
client name as sent: "epaclient" I may use "epanetcat" for testing.
Primary OS: linux.
2nd OS: tested on XP: works with a few minor issues.
Programming language: python/gtk
Planed features:
  • import of mylist dump
done:
  • most of the anidb udp api work is done
    I am now getting my file updates with this cient
    python library that does ed2k hashing
    notificaions with click to open anidb pages in external browser
    file hashing
    simple caching database
todo next:
  • adding files to mylist
    make it easy to add cd/dvd full of files to mylist
    lots of gui work
    drag and drop of files

    import my list dump
Last edited by aredhel on Fri Oct 14, 2005 6:25 am, edited 1 time in total.
fahrenheit
AniDB Staff
Posts: 438
Joined: Thu Apr 08, 2004 1:43 am
Location: Portugal

Post by fahrenheit »

Now it's my turn to try something on the UDP front:

Client name: "xauc"
[edit: forgot that the client name is 4 to 16 chars, so an extremely sexy "x" was added to the name, that means aniDB UDP client]

- target OS: Linux (although it shouldn't be to hard to port it to other OS's like Windows)
- programming language: C

- features currently implemented:

[o] File hashing:
- ed2k (md4)
- md5
- sha1
- crc32
- TTH (base32) & TT (base16)
- thread based for multi-cpu's pc's
- single thread based for single-cpu pc's
(it takes currently 22secs or so to completly process a 180mb file on a athlon xp 2000+ with 768mbs of ram, in single cpu mode, takes a little more (5% secs more) in multi-cpu mode, but i don't have more than 1 cpu anyway...)
[o] A/V information:
- play length
- bitrate (as usual with bitrates i wouldn't recomend using it)
- codec info (name/tag)
- pix format (yuv420p)
- resolution
- fps
- audio n.º channels and sample rate
- audio/sub languages (where implemented by container)
- sub support
- based on cvs version ffmpeg (supports every format that ffmpeg supports), with support for ogm's and subtitles (not present on ffmpeg)
[o] Local database for offline use [sqlite3]
[o] text interface (currently implemented at some extent)
[o] all the options on the udp interface including notifications.

- Planned features:
[o] Interface with some export templates to get a dump of the data (mine and don gato's)
[o] graphical interface (GTK+-2.6 so as not to use cairo) with libglade
[o] web interface (?)
[o] export dumps
[o] file reports

i have sources of some of the things allready implemented, if anyone wants to try something.

i can be contacted by pm/mail.
Last edited by fahrenheit on Tue Oct 11, 2005 5:38 pm, edited 1 time in total.
PetriW
AniDB Staff
Posts: 1522
Joined: Sat May 24, 2003 2:34 pm

Post by PetriW »

Nice list of features. :D
Rar
AniDB Staff
Posts: 1471
Joined: Fri Mar 12, 2004 2:41 pm
Location: UK
Contact:

Post by Rar »

Not that nice, where's:
[o] makes cups of tea

Rar
kidan
Posts: 319
Joined: Thu Feb 13, 2003 9:13 pm
Location: .DE

Post by kidan »

random rant:
I don't get why people are still using C for gui- or non-kernel-stuff. Imho the risks (like having overflows and memleaks) far outweight any possible performance gain compared to c++, python or any other modern high-level language.
fahrenheit
AniDB Staff
Posts: 438
Joined: Thu Apr 08, 2004 1:43 am
Location: Portugal

Post by fahrenheit »

kidan wrote:random rant:
I don't get why people are still using C for gui- or non-kernel-stuff. Imho the risks (like having overflows and memleaks) far outweight any possible performance gain compared to c++, python or any other modern high-level language.
realy simple reply: i just know C, and not much at it, maybe later on, i will know Java or some sort, but atm just C, so C it is :P

thinked reply: you are right
Locked