It is currently Sat Nov 26, 2011 7:54 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: I'm developing for the Anime series, just little help
PostPosted: Sat Mar 28, 2009 9:50 pm 
Offline

Joined: Sat Mar 28, 2009 9:15 pm
Posts: 1
OK,,, Hi everyone.

as in the subject, i'm intending to do some development to make TED compatible with the anime series. since I'm an anime fan :).

actually I started by opening the source code and going through the code.
BUT...
I reeeally need help :Pin order to understand.

what I understood that after the entries, TED will go and find the torrent file with something similar to this: s00e00 or 00x00 and then will start with incremental process to the episode and the season numbers.

for the anime, it doesn't have one format but usually something like this:
[translator group] Anime_name Ep_num ..etc
this is just an example, and no place for the season. but there are a lot of other formats.
so I'm planning to make the whole line by the regular expression. and make a symbol like # to represent the episode incremental number.

this will help TED to have more flexibility in soppurting Anime or movies or anything else.

what I need is, what files should I change in order to implement my idea above in the source code.
more details will be helpful.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Mar 30, 2009 10:03 pm 
Offline
Lead Developer
User avatar

Joined: Mon Jan 16, 2006 5:46 pm
Posts: 904
Location: Netherlands
Hi, first off thanks for the offer!

Anime series are going to be a bit of a problem to build into the current architecture of ted I'm afraid. When we started ted we just made it work and didn't really thought of all the future implementations that could be done.

At this moment there is a TedSerie, which is your normal show (like Lost), and there is a TedDailySerie (The Daily Show). You would hope that you could just add a TedAnimeSerie, implement the needed functions and be done with it. Unfortunately, no :)

This is mainly due to the fact that the TedParser is a real big mess. If you would look at the code there you will see a lot of "if (serie.isDaily) do this else that;" or implicit casts from a TedSerie to a TedDailySerie, etc. You would therefore have to hack the anime series into this already barely hanging together piece of code.

We therefore have decided that for the next release after the upcoming one to go back to the drawing board and redesign this part of the code. This time keeping into account that you may want to have a seperate log per show and anime shows and what have you more.

So for now I wouldn't start on the implementation of anime shows if I were you as that implementation probably wouldn't end up in any released version of ted. But you're of course still welcome to help us with this task it'll only take some more time. If you've looked at the code and can come up with some architecture suggestions we'll certainly take them into account. And you can of course always help with the implementation of the new architecture!

I hope I've not demotivated you too much with this story :)If you still want to help take a look at the mentioned pieces in the code to get a bit of a feeling what is going on there.


Top
 Profile  
 
 Post subject: More Info on Parser
PostPosted: Wed Jul 15, 2009 6:19 am 
Offline

Joined: Sat Jan 31, 2009 5:42 pm
Posts: 2
Location: Texas, USA
Hey JoFo...

Could you direct me to the code for the Parser for Ted? I am interested in this type of logical programming problem. I have a lot of experience with data mining with databases, and would like to try the challenge of writing code for your software.


Thanks in advance.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 16, 2009 9:18 pm 
Offline
Lead Developer
User avatar

Joined: Mon Jan 16, 2006 5:46 pm
Posts: 904
Location: Netherlands
The code for the parser is located in TedParser. I warn you, it's kind of messy :)But you probably read that in my comment above.


Top
 Profile  
 
 Post subject: Re:Reply to JoFo
PostPosted: Sat Jul 18, 2009 1:22 am 
Offline

Joined: Sat Jan 31, 2009 5:42 pm
Posts: 2
Location: Texas, USA
I know this is probably a silly question, but you will have to be more specific that this:

[/quote]parser is located in TedParser[quote]

I have not installed your development environment, and do not plan to install the software until I can get a look at your code and see if the effort is worthwhile.
[/quote]


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jul 18, 2009 4:57 pm 
Offline
Lead Developer
User avatar

Joined: Mon Jan 16, 2006 5:46 pm
Posts: 904
Location: Netherlands
I'm not quite sure what exactly you want, but if you only want to see the source code you can find it here.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group