Trouble logging in?If you can't remember your password or are having trouble logging in, you will have to reset your password. If you have trouble resetting your password (for example, if you lost access to the original email address), please do not start posting with a new account, as this is against the forum rules. If you create a temporary account, please contact us right away via Forum Support, and send us any information you can about your original account, such as the account name and any email address that may have been associated with it.

Since Animesuki's RSS feeds do not offer any means to filter by series and/or fansub group, I wrote a PHP script which downloads the relevant Animesuki XML feed (caching it for 15 minutes as required by the XML information page) and outputs it as a uTorrent-compatible RSS feed. The source code for this script can be found here. It's very much a quick'n'dirty solution, but it does work. I'm sure there are ways in which it could be improved, so if anyone here is interested, have at it. Alternatively if there's anything the script does with regards to Animesuki that it shouldn't be doing, please let me know.

EDIT: also in case it isn't obvious, the script takes 3 arguments, one of which is optional:

But yeah, can easily parse the html table and create something like that anyways. Just wondering if there was already an existing xml interface for retrieving series information, something to link the ID and Title together

Last edited by Cetra3; 2008-07-21 at 09:06.
Reason: wanted to include an example xml mockup

But yeah, can easily parse the html table and create something like that anyways. Just wondering if there was already an existing xml interface for retrieving series information, something to link the ID and Title together

You'd have to write your own PHP script, although you could use Danj's as a base. Remove the 'v' & 'gid' GET blocks, and put in an explode statement to separate out a list of series id's, say separated by comma's (or whatever character you prefer). You'll then need to run a foreach loop over the:

Code:

if (!isCached()) {
dlSeriesXml();
}

block for each of the series id's. You'll finally need to move the line:

Code:

$ourXML = simplexml_load_file($filepath . $seriesid . ".xml");

inside the foreach block at the end, and change it so that it loops over your list of series id's. Inside the foreach you'll want to have echo statements to put out the information on each series. The vintage & updated fields are stored as Unix time stamps, so you'll need to convert those using the date function.

Is there an option that can be given to the xml or rss feeds to get the list of new licenses ? Or even put something in the xml feed when requesting an update on a licensed series?

At present it just seems to return an error, it would be great if it returned something with the 'licensed' field set or something, that way any sites using the feed will know to stop using it or the series. For example I parse the xml and store the results in a db, and the db updates from the feed, but it dosnt know if the series was licensed since last update, and so just keeps the old torrents listed. Basically means its showing the torrents and links as normal.

Are you saying you'd like an RSS feed for the licensed database? Unless you've got quite a few series in your database it'd probably be easier to check each series feed individually to see if they return the: series is licensed error.

I appreciate how inefficient that might be though, so the other thing you could do is write a PHP script that takes a look at the source for the licensed database front page, and get the licensed anime names from that. I'm not sure how the Animesuki staff would feel about someone scraping that page (you'd probably have to ask permission first), but given that only a few animes are added each month, you'd probably only have to scrape that page once a week.

There has been some discussion already about what should happen about the licensing list, given that licensing has become a lot more dynamic and complex in recent years (with region-locked streaming-only licenses, and the like). I think an RSS feed seems like a good idea as a potential addition as well, but we'll see who has time for it and when...