need a bit help with very-simple export mylist script

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

Moderator: AniDB

Locked
i.hate.registering
Posts: 4
Joined: Fri Feb 04, 2005 11:43 pm

need a bit help with very-simple export mylist script

Post by i.hate.registering »

hi, im trying to do a very basic script that outputs all files in ed2k format, something like this

Code: Select all

Animes:
juuni kokuki
gits(*)
...
hikaru no go

juuni kokuki:
ed2k://(anime name)(ep number)(ep name)(group)(crc32)/

gits(**)
ed2k://(anime name)(ep number)(ep name)(group)(crc32)/
.....
the thing is, i dont know the code to make a h-ref from (*) to (**)
could anyone help me with this :roll:


why this dumb script you ask?
AFAISearched, i coudnt find any theme that exported all files you have, by its ed2k link in only a file

why do i need that?
because if i ever delete something by mistake, or if any corruption happens on aniDB (which wont ever happen :), going to the edk dump is waaaaaaaaaay faster than doing manually (like im doing now... im creating my list ATM, and its a pain... and im only halfway :/)
in other words, its a vital backup!

what ive done (or should i say: copied, pasted and mixed)
(its only meaninfull below "Complete Anime Series:"... last 15 lines, or so)

Code: Select all

<html> 
<head> 
    <title>::AniDB.Net:: Export for <tmpl_var name=global_user> @ <tmpl_var name=global_date></title> 
</head> 
<body link="#0000ff" alink="#ff0000" vlink="#0000ff"> 
<font face="arial,helvetica" size=2> 
<h3>AniDB Export for <tmpl_var name=global_user></h3> 
<hr> 
<table> 
<tr> 
    <td> User: </td> 
    <td> <tmpl_var name=global_user> </td> 
</tr> 
<tr> 
    <td> Created: </td> 
    <td> <tmpl_var name=global_date> (dd-mm-yyyy)</td> 
</tr> 
<tr> 
    <td> Animes in list: </td> 
    <td> <tmpl_var name=global_animecount> </td> 
</tr> 
<tr> 
    <td> Eps in list: </td> 
    <td> <tmpl_var name=global_epcount> </td> 
</tr> 
<tr> 
    <td> Files in list: </td> 
    <td> <tmpl_var name=global_filecount> </td> 
</tr> 
<tr> 
    <td> Size: </td> 
    <td> <tmpl_var name=global_bytecount> (<tmpl_var name=global_bytecount_h>) </td> 
</tr> 
<tr> 
    <td> URL: </td> 
    <td> <tmpl_var name=global_animedburl> </td> 
</tr> 
</table>
<hr><b>Complete Anime Series: </b><br>
<tr> 
	<tmpl_loop name=loop_anime>
		<td><a href="#<tmpl_var name=data_anime_name>"><tmpl_var name=data_anime_name></a></td> 
	</tmpl_loop>
</tr>
<br><br>
<tr> 
	<tmpl_loop name=loop_anime>
		<td><b><a name="<tmpl_var name=data_anime_name>"><tmpl_var name=data_anime_name></b></td>
		<tmpl_loop name=loop_file>
			<td> <tmpl_var name=data_file_ed2k_name> </td>
		</tmpl_loop>
	</tmpl_loop>
</tr>

</html> 
if anyone wants to add a color or two, be my guest... but this theme concept is to have all files you have exported by theirs ed2k url to one big html file


Exp, if everything is okay, could you *please* include this theme?
i really need it :roll:


----
edited: the code above now includes the snippet wahaha posted below :) ... so, job is finished (hey, its functional, thats what matters! :p)
Last edited by i.hate.registering on Mon Feb 07, 2005 12:42 pm, edited 1 time in total.
wahaha
AniDB Staff
Posts: 1497
Joined: Sun Nov 17, 2002 3:33 pm

Re: need a bit help with very-simple export mylist script

Post by wahaha »

i.hate.registering wrote:the thing is, i dont know the code to make a h-ref from (*) to (**)
could anyone help me with this :roll:

Code: Select all

<a href="#details">Go to A</a>
...
<a name="details">Details on A:</a>...
If you need more info, "html anchor" would be a fitting search-term
exp
Site Admin
Posts: 2438
Joined: Tue Oct 01, 2002 9:42 pm
Location: Nowhere

Post by exp »

ok,

I added it as "html-dump" with some modifications.

BYe!
EXP
Locked