Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AniDB plugin or tips for plugin development #258

Closed
Omertron opened this issue Mar 15, 2015 · 15 comments
Closed

AniDB plugin or tips for plugin development #258

Omertron opened this issue Mar 15, 2015 · 15 comments

Comments

@Omertron
Copy link
Member

Original issue 258 created by Omertron on 2008-11-09T12:32:03.000Z:

I was wondering if I could either request a plugin to search www.anidb.net
for titles. I don't know whether or not it's an easy task, I'm not quite
familiar with how these are developed.

If no one here will do it, could I have some guidelines on developing the
plugin? I'm not really good at programming in any language, but I do
alright with figuring things out with editing. I just don't know how to go
from the .java file (posted under source) to a .class file that gets packed
into moviejukebox.jar container. If I wanted to make a plugin, do I just
submit the .java file to the project developers?

@Omertron
Copy link
Member Author

Comment #1 originally posted by Omertron on 2008-11-09T14:01:49.000Z:

Here is an API I grabbed, I have no idea what one would do with it. Is this useful?

@Omertron
Copy link
Member Author

Comment #2 originally posted by Omertron on 2008-11-09T17:02:50.000Z:

Have a look here:
http://code.google.com/p/moviejukebox/source/browse/#svn/trunk/moviejukebox/src/com/moviejukebox/plugin
at some of the plugins that are provided as standard. Perhaps the most developed is
the IMDB plugin, but the others also pull from other sites.

If you want to have a go a writing a plugin, I'll happily compile it for you to test
if you are not able to yourself (it is fairly easy to do).

@Omertron
Copy link
Member Author

Comment #3 originally posted by Omertron on 2008-11-10T01:35:31.000Z:

Yes I did take a look at them, I just have absolutely no idea how to make the plugin
communicate correctly with the website... I mean does it make use of the API? The
small details are something I'll be able to figure out, I just need the big picture
mapped out for me. What is everything that I need to reference in the .java file
before it's compiled into a .class file? Do I simply need to reference URLs, or do I
need to implement the API's .class files as well?

It should be obvious I'm pretty new at this and stopped learning about Java 8 years
ago. Now, I've come across a reason to get back into it and I've got a bad case of
ambition and curiosity. So how does the flow work?

@Omertron
Copy link
Member Author

Comment #4 originally posted by Omertron on 2008-11-21T15:51:20.000Z:

If you take a look at the other scanners that are on the code page, you should be
able to pick apart how they work :) If you have a burning desire to test you code you
can download the rest of the jukebox and compile it.

@Omertron
Copy link
Member Author

Comment #5 originally posted by Omertron on 2008-11-27T15:08:15.000Z:

<empty>

@Omertron
Copy link
Member Author

Comment #6 originally posted by Omertron on 2008-12-28T07:51:48.000Z:

<empty>

@Omertron
Copy link
Member Author

Comment #7 originally posted by Omertron on 2009-01-28T06:02:34.000Z:

I'm looking back into this issue now that I have a little more time. I was looking
at some of the other plugins, and what is unclear to me is the following:

How does the plugin determine which information on a website corresponds to episode
title, production year, country of origin, etc.? That's why I was thinking an API
was necessary, since it defines values to referenced fields. For instance, all I see
on the FilmAffinity plugin is mediaFile.getTitle() mediaFile.getYear() and more
commands like that, but where exactly is it getting this information?

@Omertron
Copy link
Member Author

Comment #8 originally posted by Omertron on 2009-01-28T07:09:26.000Z:

I'm looking back into this issue now that I have a little more time. I was looking
at some of the other plugins, and what is unclear to me is the following:

How does the plugin determine which information on a website corresponds to episode
title, production year, country of origin, etc.?

That's why I was thinking an API was necessary, since it defines values to referenced
fields. For instance, all I see on the FilmAffinity plugin is mediaFile.getTitle()
mediaFile.getYear() and more commands like that, but where exactly is it getting this
information? Is that syntax related directly to IMDB or FilmAffinity?

I was reading up on AniDB's API, but their dump files are compressed as gzip, so I
don't think YAMJ could handle that. They are also very strict on http requests. I
also don't think I can program in Java, should I just give up?

@Omertron
Copy link
Member Author

Comment #9 originally posted by Omertron on 2010-10-08T07:38:56.000Z:

<empty>

@Omertron
Copy link
Member Author

Comment #10 originally posted by Omertron on 2010-10-08T08:06:12.000Z:

Java API described here:
http://wiki.anidb.net/w/UDP_Clients

Homepage here:
http://grizzlyxp.bplaced.net/projects/javaanidbapi/index.html

@Omertron
Copy link
Member Author

Comment #11 originally posted by Omertron on 2010-10-08T19:59:58.000Z:

anime uses very different naming for episodes.. you might need to use the other jukebox method of requiring the library description to be Anime so you can regex out the name/episode differently.

@Omertron
Copy link
Member Author

Comment #12 originally posted by Omertron on 2010-10-08T21:19:32.000Z:

I was thinking that the AniDb plugin could be a movie plugin and within that could parse the filename for the correct elements of the titles & episodes.

Not entirely sure yet, but if you can provide some filename examples and the regex that'd be useful!

@Omertron
Copy link
Member Author

Comment #13 originally posted by Omertron on 2010-10-09T23:27:56.000Z:

an option for anidb is they put out a txt file of all the titles available that you can have yamj download and check file name against to use anidb or not.

here is some titles
[Okashii-RyRo]Inazuma_Eleven-25(1280x720_x264_AAC)[4BF11324].mkv
Macross_Frontier_Ep07_First_Attack
[720p,BluRay,x264]_-_THORA.mkv
[DB]07Ghost_02[CC80CAF9].avi
[gg]Code_Geass_R2-06[F639A14B].mkv
[Taka]Naruto_Shippuuden_145[720p][656E302A]

For the most part most people follow [group]_title_episdoe* and everything else is junk after. thora is the only exception

@Omertron
Copy link
Member Author

Comment #14 originally posted by Omertron on 2011-05-30T16:55:31.000Z:

Fixed in r2441

Closing this issue since I feel that as it stands now it's too broad. Opening up a few new issues for things I know still need to be done.

@Omertron
Copy link
Member Author

Comment #15 originally posted by Omertron on 2011-05-30T16:56:03.000Z:

<empty>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant