User:YukinoAi/Tutorial Scratchpad: Difference between revisions

Jump to navigation Jump to search
fixed most formatting stuffs
(fixed some links in the 1st paragraph)
(fixed most formatting stuffs)
 
Line 1: Line 1:
[http://anidb.net Anime DataBase (AniDB)] is a website that provides information about Anime.
[//anidb.net Anime DataBase (AniDB)] is a website that provides information about Anime.


It keeps track of [http://anidb.net/perl-bin/animedb.pl?show=anime&aid=109 show information] and fansub releases for them. It has some [http://anidb.net/perl-bin/animedb.pl?show=forum social aspects] as well. [[AniDB:About|More info]]. Databases are only useful if they are updated frequently, so this tutorial is about keeping fansub releases on AniDB up to date.
It keeps track of [//anidb.net/perl-bin/animedb.pl?show=anime&aid=109 show information] and fansub releases for them. It has some [//anidb.net/perl-bin/animedb.pl?show=forum social aspects] as well. [[AniDB:About|More info]]. Databases are only useful if they are updated frequently, so this tutorial is about keeping fansub releases on AniDB up to date.


For a more concise guide, please consider this alternative:[[Tutorial:How to Add Files for Dummies!]].
{{eyecatch|Note|This guide has a lot of theory to help explain how to interface with AniDB. For a more concise guide, please consider: [[Tutorial:How to Add Files for Dummies!]]}}


==Introduction==
==Introduction==
Line 13: Line 13:
# The file metadata (resolution, audio tracks, subtitles, etc).
# The file metadata (resolution, audio tracks, subtitles, etc).


The [[/wiki.anidb.net/w/Avdump2|Avdump2]] utility can be used to automatically update AniDB file entries and will be used later.
The [[Avdump2]] utility can be used to automatically update AniDB file entries and will be used later.


Important Notes:
* The release group should be associated with each file when creating an entry for it.  
 
** Non-offical, or files that are not distributed, should not be added.
* The release group (Horrible Subs, Kametsu, Doki) should be associated with each file when creating an entry for it. Non-offical, or files that are not distributed, should not be added to AniDB.
** Release group examples: Horrible Subs, Kametsu, and Doki.
* Before creating an entry for a file, the unique ed2k hash must first be calculated because the ed2k hash will be used in identifying the file.
* Before creating an entry for a file, the unique ed2k hash must first be calculated because the ed2k hash will be used in identifying the file.
* The ed2k hash for the unique identfier can be generated by using [[/wiki.anidb.net/w/Avdump2|Avdump2]], or any other program that can generate ed2k hashes.
* The ed2k hash for the unique identifier can be generated by using [[Avdump2]], or any other program that can generate ed2k hashes.
* The file's metadata should be updated using the Avdump2 tool.
* The file's metadata should be updated using the Avdump2 tool.


And so, it is convenient to use the Avdump2 tool to both generate the unique identifier and also update file metadata.
And so, it is convenient to use the Avdump2 tool to both generate the unique identifier and also update file metadata.


Additional Resources:<br />
'''Additional Resources:'''<br />
https://wiki.anidb.net/w/Main_Page<br />
[[Main_Page|wiki/Main_Page]]<br />
https://wiki.anidb.net/w/Auto-creqing<br />
[[Auto-creqing|wiki/Auto-creqing]]<br />
https://wiki.anidb.net/w/Avdump2
[[Avdump2|wiki/Avdump2]]


== Prerequisites: ==
== Prerequisites ==


# Obtain a file to add to AniDB.
# Obtain a file to add to AniDB.
## The group name is usually present in the file name or description.
# [//anidb.net/perl-bin/animedb.pl?show=signup Create an AniDB account].
# [//anidb.net/perl-bin/animedb.pl?show=login Login] and verify that account.


* The group name is usually present in the file name or description.
== Creating an API Key ==
 
# [[/anidb.net/perl-bin/animedb.pl?show=signup|Create an AniDB account]].
# [[/anidb.net/perl-bin/animedb.pl?show=login|Login]] and verify that account.
 
== Part A) Creating an API Key ==


===Theory===
===Theory===
Line 48: Line 46:
===Procedure===
===Procedure===


[[/anidb.net/perl-bin/animedb.pl?show=login|Log in to AniDB]]<br />
[//anidb.net/perl-bin/animedb.pl?show=login Log in to AniDB]<br />
On the left navigation pane, at the bottom is a section labeled <code>Account</code>. Click on <code>Settings</code>.
On the left navigation pane, at the bottom is a section labeled <code>Account</code>. Click on <code>Settings</code>.


[[File:anidb_account_settings_highlight.guide.png]]
[[File:anidb_account_settings_highlight.guide.png|i.imgur.com/fEqwtnZ.png]]


https://i.imgur.com/fEqwtnZ.png
Under profile, in the main navigation window, there are tabs. Click on the one that says <code>Account</code> (highlighted for emphasis).  


Under profile, in the main navigation window, there are tabs. Click on the one that says <code>Account</code>.
[[File:anidb_accountSettings_AccountTab_highlight.guide.png|i.imgur.com/maGR6jL.png]]
 
[[Media:https://i.imgur.com/maGR6jL.png|anidb_accountSettings_AccountTab_highlight.png]]


There should be a section called <code>UDP API Key</code> with two fields, one with a label and another empty one.
There should be a section called <code>UDP API Key</code> with two fields, one with a label and another empty one.


[[File:https://i.imgur.com/j9B4eSr.png|anidb_account_udpApiKey_empty.png]]
[[File:anidb_account_udpApiKey_empty.guide.png|i.imgur.com/j9B4eSr.png]]


Any alphanumeric (a-z, A-Z, 0-9) character sequence no longer than 32 characters will work for the API key. For the purposes of this tutorial GRC's [[/www.grc.com/passwords.htm|Perfect Passwords]] will be used.
Any alphanumeric (a-z, A-Z, 0-9) character sequence no longer than 32 characters will work for the API key. For the purposes of this tutorial GRC's [//www.grc.com/passwords.htm Perfect Passwords] will be used.


Open a new tab in the web browser and go to GRC's [[/www.grc.com/passwords.htm|Perfect Passwords]] page.
Open a new tab in the web browser and go to GRC's [//www.grc.com/passwords.htm Perfect Passwords] page.


In the last box of characters labeled <code>a-z, A-Z, 0-9</code>, highlight 20-30 characters as shown below.
In the last box of characters labeled <code>a-z, A-Z, 0-9</code>, highlight 20-30 characters as shown below.


[[File:https://i.imgur.com/Z3D68ca.png|grc_pp_20charas_highlight.png]]
[[File:grc_pp_20charas_highlight.guide.png|border|i.imgur.com/Z3D68ca.guide.png|]]


Then copy the selected characters to the clipboard.
Then copy the selected characters to the clipboard.
Line 76: Line 72:
* <code>Ctrl + c</code>
* <code>Ctrl + c</code>


[[File:https://i.imgur.com/3qlV9iu.png|grc_pp_20characters_copy.png]]
[[File:grc_pp_20characters_copy.guide.png|border|i.imgur.com/3qlV9iu.guide.png]]


Change tabs back to AniDB's page.
Change tabs back to AniDB's page.


In the empty field under the <code>UDP API Key</code>, right-click and select <code>Paste</code>. Alternatively: <code>Ctrl + v</code>.<br />
In the empty field under the <code>UDP API Key</code>, right-click and select <code>Paste</code>. Alternatively: <code>Ctrl + v</code>.<br />
[[File:https://i.imgur.com/3V61Mo2.png|anidb_account_udpAPIKey_paste.png]]
[[File:anidb_account_udpAPIKey_paste.guide.png|i.imgur.com/3V61Mo2.guide.png]]


[[File:https://i.imgur.com/q5yZPHa.png|anidb_account_udpAPIKey_inserted.png]]
[[File:anidb_account_udpAPIKey_inserted.guide.png|i.imgur.com/q5yZPHa.guide.png]]


Click on the <code>Apply</code> button at the bottom. It should be right above <code>Back</code>.<br />
Click on the <code>Apply</code> button at the bottom. It should be right above <code>Back</code>.<br />
[[File:https://i.imgur.com/6761Qg3.png|anidb_account_udpAPIKey_apply.png]]<br />
[[File:anidb_account_udpAPIKey_apply.guide.png|i.imgur.com/6761Qg3.guide.png]]<br />
The <code>UDP API Key</code> field should turn into asterisks (*) to show that it has saved it properly.<br />
The <code>UDP API Key</code> field should turn into asterisks (*) to show that it has saved it properly.<br />
[[File:https://i.imgur.com/l9OzPgu.png|anidb_account_udpAPIKey_asterisks.png]]<br />
[[File:anidb_account_udpAPIKey_asterisks.guide.png|i.imgur.com/l9OzPgu.guide.png]]<br />
The API key should also be saved for use with Avdump2 later on, so lets save it to notepad.
The API key should also be saved for use with Avdump2 later on, so lets save it to notepad.


<code>Windows key</code> or Click on the start menu and type in <code>notepad</code>.
<code>Windows key</code> or Click on the start menu and type in <code>notepad</code>.


[[File:https://i.imgur.com/SVi1A65.png|windowskey_notepad.png]]
[[File:windowskey_notepad.guide.png|i.imgur.com/SVi1A65.guide.png|]]


[[File:https://i.imgur.com/juAtU1M.png|notepad_apiKey_paste.png]]
[[File:notepad_apiKey_paste.guide.png|i.imgur.com/juAtU1M.guide.png]]


Save the file as something descriptive or as <code>anidb_apiKey.txt</code> in your user profile folder (<code>C:\Users\User</code>) or desktop (<code>C:\Users\User\Desktop</code>).
Save the file as something descriptive or as <code>anidb_apiKey.txt</code> in your user profile folder (<code>C:\Users\User</code>) or desktop (<code>C:\Users\User\Desktop</code>).
Line 102: Line 98:
* <code>Ctrl + s</code>
* <code>Ctrl + s</code>


FYI: Changes to the API key are updated immediately server-side but old entries are cached for an unspecified amount of time, usually less than 30 minutes. Attempting to use an old key will produce this error in the <code>Avdump2cl.exe</code>:
Changes to the API key are updated immediately server-side but old entries are cached for an unspecified amount of time, usually less than 30 minutes. Attempting to use the new key before the old key has been removed from the cache will produce this error in the <code>Avdump2cl.exe</code>:


[[File:https://i.imgur.com/SAZIZt8.png|avdump2cl_apiKey_timeout.png]]
[[File:Avdump2cl_apiKey_timeout.guide.png|i.imgur.com/SAZIZt8.guide.png]]


The Avdump2 GUI will simply not respond when authentication fails. More on this later.
The Avdump2 GUI will simply not respond when authentication fails. More on this later.


== Part B) Dealing With Groups ==
== Dealing With Groups ==


===Theory===
===Theory===
Line 116: Line 112:


{| class="wikitable"
{| class="wikitable"
!width="5%"| Filename
!width="15%"| Filename
!width="5%"| Group Name or [Tag]
!width="5%"| Group Name or [Tag]
|-
|-
Line 157: Line 153:
===Procedure===
===Procedure===


Open [[/anidb.net|Anime DataBase (AniDB)]].
Open [//anidb.net Anime DataBase (AniDB)].


At the top right next to <code>Search</code> change the search type from <code>all</code> to <code>group</code>.
At the top right next to <code>Search</code> change the search type from <code>all</code> to <code>group</code>.


[[File:https://i.imgur.com/4U31JYW.png|anidb_search_group1.png]]
[[File:anidb_search_group1.guide.png|i.imgur.com/4U31JYW.guide.png]]


Enter the group name found in the filename and click on <code>Search</code>.
Enter the group name found in the filename and click on <code>Search</code>. In the example below, <code>Doki</code> is used as an example of a group (highlighted for emphasis).


[[File:https://i.imgur.com/XIR5058.png|anidb_search_group2.png]]
[[File:anidb_search_group2.guide.png|i.imgur.com/XIR5058.png]]
 
In the example above, <code>Doki</code> was used as an example of a group (highlighted for emphasis).


Click on the group name in the <code>Name</code> column. In the below example it would be <code>Doki Fansubs</code>.
Click on the group name in the <code>Name</code> column. In the below example it would be <code>Doki Fansubs</code>.


[[File:https://i.imgur.com/aJudr9s.png|anidb_search_group3.png]]
[[File:anidb_search_group3.guide.png|700px|i.imgur.com/aJudr9s.png]]


Only if the group does not exist, [[/anidb.net/perl-bin/animedb.pl?show=addgroup|create it]]. Before actually adding a group, read [[/wiki.anidb.net/w/Content:Groups|this]] and [[/wiki.anidb.net/w/Which_raw_groups_to_credit|this]].
Only if the group does not exist, [//anidb.net/perl-bin/animedb.pl?show=addgroup create it]. Before actually adding a group, read [[Content:Groups|this]] and [[Which_raw_groups_to_credit|this]].


For the purposes of this tutorial, it will be assumed the group name already exists.
For the purposes of this tutorial, it will be assumed the group name already exists.


== Part C) On Using Avdump2 ==
== On Using Avdump2 ==


===Theory===
===Theory===
Line 183: Line 177:
* A file entry in AniDB has 2 main components, the entry itself and the associated metadata.
* A file entry in AniDB has 2 main components, the entry itself and the associated metadata.
* AniDB stores metadata information for files that are not yet in the database. This means it is possible to add a file entry and then add the metadata, or alternatively, add the metadata to AniDB and create the file entry later.
* AniDB stores metadata information for files that are not yet in the database. This means it is possible to add a file entry and then add the metadata, or alternatively, add the metadata to AniDB and create the file entry later.
* The metadata and the file entry are normally linked using a unique identifier created from the [[/wiki.anidb.net/w/Ed2k-hash|ed2k]] and the filesize.
* The metadata and the file entry are normally linked using a unique identifier created from the [[Ed2k-hash]] and the filesize.


Thus, to create a file entry in AniDB, the ed2k hash must be known and the group name should be known.
Thus, to create a file entry in AniDB, the ed2k hash must be known and the group name should be known.


The main purpose of the [[/wiki.anidb.net/w/Avdump2|Avdump2]] utility, and its [[/wiki.anidb.net/w/Avdump_GUI|GUI wrapper]], is to automate updating AniDB file entries. It does 3 things:
The main purpose of the [[Avdump2]] utility, and its [[Avdump_GUI|GUI wrapper]], is to automate updating AniDB file entries. It does 3 things:


# Hash files to identify them (ed2k).
# Hash files to identify them (ed2k).
Line 199: Line 193:
===Installation===
===Installation===


[[/wiki.anidb.net/w/Avdump_GUI|Download the portable GUI version]], [http://static.anidb.net/client/avdump-gui-2.3.2-portable.7z direct], (it has both the CLI and GUI) and [http://www.7-zip.org/download.html extract it] to C:\Users\User\Downloads. See this random [http://www.gofree.com/Tutorials/ExtractingZipFiles.php 7-Zip Tutorial]. Alternative [http://static.anidb.net/client/avdump-gui.msi MSI installer].
:{{Missing}}
 
[[Avdump_GUI|Download the portable GUI version]], [//static.anidb.net/client/avdump-gui-2.3.2-portable.7z direct], (it has both the CLI and GUI) and [//www.7-zip.org/download.html extract it] to <code>C:\Users\User\Downloads</code>. See this random [http://www.gofree.com/Tutorials/ExtractingZipFiles.php 7-Zip Tutorial]. Alternative [//static.anidb.net/client/avdump-gui.msi MSI installer].


For the purposes of this tutorial, it will be assumed the CLI tool is at:<br />
For the purposes of this tutorial, it will be assumed the CLI tool is at:<br />
<code>C:\Users\User\Downloads\avdump-gui-2.3.2-portable\appdata\avdump-gui-2.3.2.win32\AVDump2CL.exe</code><br />
<code>C:\Users\User\Downloads\avdump-gui-2.3.2-portable\appdata\avdump-gui-2.3.2.win32\Avdump2CL.exe</code><br />
And the GUI tool is available at:<br />
And the GUI tool is available at:<br />
<code>C:\Users\User\Downloads\avdump-gui-2.3.2-portable\avdump2gui.exe</code>
<code>C:\Users\User\Downloads\avdump-gui-2.3.2-portable\Avdump2gui.exe</code>


* <code>AVDump2CL.exe</code> is a non-interactive program with a command line interface (CLI) that can export the ed2k and related information to later create file entries on AniDB. If used with the <code>--Authentication</code> flag (short form: <code>--Auth</code>) and a Username/UDP API key pair, it can also submit metadata dumps for processing.
* <code>Avdump2CL.exe</code> is a non-interactive program with a command line interface (CLI).
* <code>avdump2gui.exe</code> is a graphical user interface (GUI) wrapper around the CLI with a subset of the CLI's functionality.
** It can export ed2k links that can be used to create file entries on AniDB using the <code>--ExportEd2kLinks</code> flag (short form: <code>--Exp</code>).
* <code>avdump2gui.exe</code> must be used with an API key at all times.
** it can also submit metadata dumps for processing. This is done using the <code>--Authentication</code> flag (short form: <code>--Auth</code>) with a Username/UDP API key pair.
* <code>Avdump2gui.exe</code> is a graphical user interface (GUI) wrapper around the CLI with a subset of the CLI's functionality.
* <code>Avdump2gui.exe</code> must be used with an API key at all times.


To calculate and export the identifier information, including the ed2k hash, use either the Avdump2 CLI or GUI.
To calculate and export the identifier information, including the ed2k hash, use either the Avdump2 CLI or GUI.


===Avdump2 CLI===
=== Avdump2 CLI ===
 
==== Command Prompt Introduction ====


WikiPage: https://wiki.anidb.net/w/Avdump2
[[Avdump2|wiki/Avdump2]]


Start a command prompt:
Start a command prompt:
Line 222: Line 222:
* <code>Windows key</code> - Type <code>cmd.exe</code> and press <code>Enter</code>.
* <code>Windows key</code> - Type <code>cmd.exe</code> and press <code>Enter</code>.


[[File:https://i.imgur.com/zV1Hyk3.png|windowskey_cmd.png]]
[[File:windowskey_cmd.guide.png|i.imgur.com/zV1Hyk3.guide.png]]


[[File:https://i.imgur.com/A3nbNdc.png|cmd_empty.png]]
[[File:cmd_empty.guide.png|i.imgur.com/A3nbNdc.guide.png]]


Let's change the current path to <code>C:\Users\User\Downloads\avdump-gui-2.3.2-portable\appdata\avdump-gui-2.3.2.win32</code> using <code>cd</code> or <code>pushd</code>.
Let's change the current path to <code>C:\Users\User\Downloads\avdump-gui-2.3.2-portable\appdata\avdump-gui-2.3.2.win32</code> using <code>cd</code> or <code>pushd</code>.
Line 230: Line 230:
<code>pushd C:\Users\User\Downloads\avdump-gui-2.3.2-portable\appdata\avdump-gui-2.3.2.win32</code>
<code>pushd C:\Users\User\Downloads\avdump-gui-2.3.2-portable\appdata\avdump-gui-2.3.2.win32</code>


'''Or'''
Or:


Open an explorer window to: <code>C:\Users\User\Downloads\avdump-gui-2.3.2-portable\appdata\avdump-gui-2.3.2.win32</code> and drag and drop the folder icon on the top left of the address bar to the command prompt window.
Open an explorer window to: <code>C:\Users\User\Downloads\avdump-gui-2.3.2-portable\appdata\avdump-gui-2.3.2.win32</code> and drag and drop the folder icon on the top left of the address bar to the command prompt window.


[[File:https://i.imgur.com/lZGLh8B.png|cmd_drag_folder.png]]
[[File:cmd_drag_folder.guide.png|i.imgur.com/lZGLh8B.guide.png]]


This will populate the command prompt window with the path to the folder automatically, as shown below. This technique can also be used for individual files.
This will populate the command prompt window with the path to the folder automatically, as shown below. This technique can also be used for individual files.


[[File:https://i.imgur.com/iAZgyIy.png|cmd_drag_folder2.png]]
[[File:cmd_drag_folder2.guide.png|i.imgur.com/iAZgyIy.guide.png]]


With the command prompt window selected, press the <code>Home</code> key or hold the <code>Left Arrow</code> on the keyboard to change the cursor to the position furthest to the left.
With the command prompt window selected, press the <code>Home</code> key or hold the <code>Left Arrow</code> on the keyboard to change the cursor to the position furthest to the left.


[[File:https://i.imgur.com/S91EYIk.png|cmd_drag_folder3.png]]
[[File:cmd_drag_folder3.guide.png|i.imgur.com/S91EYIk.guide.png]]


Enter <code>cd</code> and a single space.
Enter <code>cd</code> and a single space.


[[File:https://i.imgur.com/5rF1tmX.png|cmd_drag_folder4.png]]
[[File:cmd_drag_folder4.guide.png|i.imgur.com/5rF1tmX.guide.png]]


Press <code>Enter</code>.
Press <code>Enter</code>.


[[File:https://i.imgur.com/OsNtdKK.png|cmd_drag_folder5.png]]
[[File:cmd_drag_folder5.guide.png|i.imgur.com/OsNtdKK.guide.png]]


The <code>cd</code> stands for <code>current directory</code> and using it has changed the current directory of the command prompt window to the extracted path of <code>AVDump2CL.exe</code>.
The <code>cd</code> stands for <code>current directory</code> and using it has changed the current directory of the command prompt window to the extracted path of <code>Avdump2CL.exe</code>.


It is possible to verify <code>AVDump2CL.exe</code> is in the current directory by listing the directory contents or checking to see if the file itself is present. List the direct contents using <code>dir</code>, or, for Linux, <code>ls</code>.
It is possible to verify <code>Avdump2CL.exe</code> is in the current directory by listing the directory contents or checking to see if the file itself is present. List the direct contents using <code>dir</code>, or, for Linux, <code>ls</code>.


[[File:https://i.imgur.com/uLa3xKM.png|cmd_drag_folder6.png]]
[[File:cmd_drag_folder6.guide.png|i.imgur.com/uLa3xKM.guide.png]]


Or check for the executable directly by typing the first few characters <code>av</code> and using <code>Tab</code> to cycle through the available options.
Or check for the executable directly by typing the first few characters <code>av</code> and using <code>Tab</code> to cycle through the available options.


[[File:https://i.imgur.com/jUOqCpk.png|avdump2cl_help.png]]
[[File:Avdump2cl_help.guide.png|i.imgur.com/jUOqCpk.guide.png]]
 
Running <code>Avdump2CL.exe</code> without any options will list many available options.


Running <code>AVDump2CL.exe</code> without any options will list many available options.
Running <code>Avdump2CL.exe --help</code> will list all of the available options.


Running <code>AVDump2CL.exe --help</code> will list all of the available options.
[[File:Avdump2cl_help2.guide.png|i.imgur.com/fAgurLa.guide.png]]


[[File:https://i.imgur.com/fAgurLa.png|avdump2cl_help2.png]]
====Generating ed2k Links Using Avdump2 CLI====


The syntax of <code>AVDump2CL.exe</code> is:
The syntax of <code>Avdump2CL.exe</code> is:


<code>AVDump2CL.exe [--options] [file/folder] [file/folder]</code>
<code>Avdump2CL.exe [--options] [file/folder] [file/folder]</code>


This means that <code>AVDump2CL.exe</code> takes some options and also one or more file or folder paths. The options will specify the type of processing and what file or folder to process.
This means that <code>Avdump2CL.exe</code> takes some options and also one or more file or folder paths. The options will specify the type of processing and what file or folder to process.


For the purproses of this tutorial, there is a file named:<br />
For the purproses of this tutorial, there is a file named:<br />
Line 279: Line 281:
<code>C:\Users\User\Downloads\Log Horizon</code>
<code>C:\Users\User\Downloads\Log Horizon</code>


To check what happens when a file or folder is specified but with no processing options, enter `avdump2cl.exe', and then a space and then drag a file to the command prompt window.
To check what happens when a file or folder is specified but with no processing options, enter `Avdump2cl.exe', and then a space and then drag a file to the command prompt window.


[[File:https://i.imgur.com/5vhdUg4.png|avdump2cl_dragTest1.png]]
[[File:Avdump2cl_dragTest1.guide.png|i.imgur.com/5vhdUg4.guide.png]]


The file name with the full path will be automatically populated in the command prompt window.
The file name with the full path will be automatically populated in the command prompt window.


[[File:https://i.imgur.com/NiAdL0h.png|avdump2cl_dragTest2.png]]
[[File:Avdump2cl_dragTest2.guide.png|i.imgur.com/NiAdL0h.png]]


Press <code>Enter</code>.
Press <code>Enter</code>.


[[File:https://i.imgur.com/8ShIUUC.png|avdump2cl_dragTest3.png]]
[[File:Avdump2cl_dragTest3.guide.png|i.imgur.com/8ShIUUC.png]]


So Avdump2cl.exe complains that no processing options has been specified, so there is nothing to do. So let's give it something to do.
So Avdump2cl.exe complains that no processing options has been specified, so there is nothing to do. So let's give it something to do.
Line 301: Line 303:
Let's run the command and see what happens.
Let's run the command and see what happens.


* [[File:https://i.imgur.com/Ln9BUxg.png|avdump2cl_exportTest1.png]]
* [[File:Avdump2cl_exportTest1.guide.png|i.imgur.com/Ln9BUxg.png]]
* []
<br/><br/>
* [[File:https://i.imgur.com/PbQTZIE.png|avdump2cl_exportTest2.png]]
* [[File:Avdump2cl_exportTest2.png|i.imgur.com/PbQTZIE.png]]


<code>Avdump2cl.exe</code> seems to have processed the file and created a text file called <code>ed2k.txt</code> in its current directory. The file contains one line of contents:
<code>Avdump2cl.exe</code> seems to have processed the file and created a text file called <code>ed2k.txt</code> in its current directory. The file contains one line of contents:
 
<br/><br/>
<code>ed2k://|file|[Yuki] Log Horizon - 01 (BD 720p HEVC Dual-Audio AAC) [F8708ABE].mkv|484345397|C33743B735BF1B282B185E1B2E611270|/</code>
<code>ed2k://|file|[Yuki] Log Horizon - 01 (BD 720p HEVC Dual-Audio AAC) [F8708ABE].mkv|484345397|C33743B735BF1B282B185E1B2E611270|/</code>
 
<br/><br/>
This is what the ed2k links used by AniDB look like. After the protocol specifier (<code>ed2k://</code>), is the <code>file</code> keyword, the filename, the file size, and then finally the ed2k hash.
This is what the ed2k links used by AniDB look like. After the protocol specifier (<code>ed2k://</code>), is the <code>file</code> keyword, the filename, the file size, and then finally the ed2k hash.


The file size <code>484345397</code> is in raw bytes. <code>484345397</code> divided by <code>1024</code> is <code>472,993.55</code> which is the size shown in explorer:
The file size <code>484345397</code> is in raw bytes. <code>484345397</code> divided by <code>1024</code> is <code>472,993.55</code> which is the size shown in explorer:


[[File:https://i.imgur.com/2iSZvNI.png|avdump2cl_exportTest3.png]]
[[File:Avdump2cl_exportTest3.guide.png|i.imgur.com/2iSZvNI.png]]


<code>C33743B735BF1B282B185E1B2E611270</code> happens to be the ed2k hash of this specific file. Every file will have a different ed2k hash.
<code>C33743B735BF1B282B185E1B2E611270</code> happens to be the ed2k hash of this specific file. Every file will have a different ed2k hash.
Line 319: Line 321:
Let's inform AniDB that this file exists using the ed2k link.
Let's inform AniDB that this file exists using the ed2k link.


Wiki: https://wiki.anidb.net/w/Mass_add:Files
====Adding File Entries to AniDB====


Open a web browser and login to [[/anidb.net|anidb.net]].
[[Mass_add:Files|wiki/Mass_add:Files]]
 
Open a web browser and login to [//anidb.net anidb.net] .


Go to the entry of the Anime in AniDB you want to add a release for. This can be done by using the search feature.
Go to the entry of the Anime in AniDB you want to add a release for. This can be done by using the search feature.
Line 327: Line 331:
At the top right, enter the name of the Anime. For the purposes of this tutorial the series name is <code>Log Horizon</code>. Change the content type to <code>anime</code> and then click on <code>Search</code>.
At the top right, enter the name of the Anime. For the purposes of this tutorial the series name is <code>Log Horizon</code>. Change the content type to <code>anime</code> and then click on <code>Search</code>.


[[File:https://i.imgur.com/Wk4zyUT.png|anidb_addFile1.png]]
[[File:anidb_addFile1.guide.png|i.imgur.com/Wk4zyUT.png]]


Log Horizon has multiple seasons, so each of them are displayed. Click on the correct season.
Log Horizon has multiple seasons, so each of them are displayed. Click on the correct season.


[[File:https://i.imgur.com/uoH02cr.png|anidb_addFile2.png]]
[[File:anidb_addFile2.guide.png|i.imgur.com/uoH02cr.png]]


Scroll down to the <code>Group Status</code> section. Click on the <code>+ Add New Release</code> button.
Scroll down to the <code>Group Status</code> section. Click on the <code>+ Add New Release</code> button.


[[File:https://i.imgur.com/KWs7Dmp.png|anidb_addFile3.png]]
[[File:anidb_addFile3.guide.png|i.imgur.com/KWs7Dmp.png]]


This should bring up the mass add files page.
This should bring up the mass add files page.


[[File:https://i.imgur.com/V9JfUW3.png|anidb_AddFile4.png]]
[[File:anidb_AddFile4.guide.png|i.imgur.com/V9JfUW3.png]]


Set the group, source, release date, quality, track, and language options.
Set the group, source, release date, quality, track, and language options.


Wiki: https://wiki.anidb.net/w/How_to_get_started_with_creqing
[[How_to_get_started_with_creqing|wiki/How_to_get_started_with_creqing]]


Let's start with the group. Enter the group name and click on <code>Search</code>.
Let's start with the group. Enter the group name and click on <code>Search</code>.


[[File:https://i.imgur.com/9lnDewj.png|anidb_AddFile5.png]]
[[File:anidb_AddFile5.guide.png|i.imgur.com/9lnDewj.png]]


The group name should change and have a drop down menu. Be sure to select the correct group name, identified above in Part B. For the purposes of this tutorial, the correct group name is <code>Yuki Subs [YukinoAi]</code>.
The group name should change and have a drop down menu. Be sure to select the correct group name, identified above in Part B. For the purposes of this tutorial, the correct group name is <code>Yuki Subs [YukinoAi]</code>.


[[File:https://i.imgur.com/d5pk8fe.png|anidb_AddFile6.png]]
[[File:anidb_AddFile6.guide.png|i.imgur.com/d5pk8fe.png]]


Change the template from manual to the most appropriate setting. <code>[Yuki] Log Horizon - 01 (BD 720p HEVC Dual-Audio AAC) [F8708ABE].mkv</code> is labeled as Dual-Audio so the <code>dual</code> template should be used. For most fansub releases with only a single japanese audio track and subtitles, the <code>fansub</code> template should be used instead.
Change the template from manual to the most appropriate setting. <code>[Yuki] Log Horizon - 01 (BD 720p HEVC Dual-Audio AAC) [F8708ABE].mkv</code> is labeled as Dual-Audio so the <code>dual</code> template should be used. For most fansub releases with only a single japanese audio track and subtitles, the <code>fansub</code> template should be used instead.


[[File:https://i.imgur.com/1iOomzC.png|anidb_AddFile7.png]]
[[File:anidb_AddFile7.guide.png|i.imgur.com/1iOomzC.png]]


Select source and quality of the file:
Select source and quality of the file:
Line 375: Line 379:
If you happen to know any more information about the file, like if the CRC32 of the file matches the official source, enter it. When in doubt, leave that field unmodified. Audio and subtitle track information can usually be left alone alone because that information will be updated later when the meta-data dump uploaded to AniDB becomes associated with the file entry.
If you happen to know any more information about the file, like if the CRC32 of the file matches the official source, enter it. When in doubt, leave that field unmodified. Audio and subtitle track information can usually be left alone alone because that information will be updated later when the meta-data dump uploaded to AniDB becomes associated with the file entry.


At the very bottom, paste the edk2 link from and click on <code>Next</code>.
At the very bottom, paste the ed2k link from and click on <code>Next</code>.


[[File:https://i.imgur.com/kSgxaZ9.png|anidb_AddFile8.png]]
[[File:anidb_AddFile8.png|i.imgur.com/kSgxaZ9.guide.png]]


Make sure the episode number is correct. If you happen to know the date the file was first distributed, enter it in <code>dd.mm.yyyy</code> format. When the information looks correct, click on <code>Add Files</code>.
Make sure the episode number is correct. If you happen to know the date the file was first distributed, enter it in <code>dd.mm.yyyy</code> format. When the information looks correct, click on <code>Add Files</code>.


[[File:https://i.imgur.com/WPtxkqC.png|anidb_AddFile9.png]]
[[File:anidb_AddFile9.guide.png|i.imgur.com/WPtxkqC.guide.png]]


Success!
Success!


[[File:https://i.imgur.com/MCEXDgz.png|anidb_AddFile10.png]]
[[File:anidb_AddFile10.guide.png|i.imgur.com/MCEXDgz.guide.png]]


To verify the stub-entry exists, go back to the Anime page. In the <code>Group Status</code> Section, click on the expand button for the group.
To verify the stub-entry exists, go back to the Anime page. In the <code>Group Status</code> Section, click on the expand button for the group.


[[File:https://i.imgur.com/TPvgDzm.png|anidb_AddFile11.png]]
[[File:anidb_AddFile11.guide.png|i.imgur.com/TPvgDzm.guide.png]]


This will populate the <code>Episodes</code> section with file entries for that group. In the image below, episode 1 of Log Horizon has 2 file entries for the selected group. The top entry has already had the meta-information filled in by avdump2. The bottom entry is the stub that was just created.
This will populate the <code>Episodes</code> section with file entries for that group. In the image below, episode 1 of Log Horizon has 2 file entries for the selected group. The top entry has already had the meta-information filled in by Avdump2. The bottom entry is the stub that was just created.


[[File:https://i.imgur.com/Wf8zsGx.png|anidb_AddFile12.png]]
[[File:anidb_AddFile12.guide.png|i.imgur.com/Wf8zsGx.guide.png]]


* Notice that the audio track, resolution and subtitle information was filled in by avdump2 automatically for the top file where as this information is not yet correct for the bottom file.
* Notice that the audio track, resolution and subtitle information was filled in by Avdump2 automatically for the top file where as this information is not yet correct for the bottom file.
* Under the <code>Hash</code> column, there is an icon <code>AU</code> overlayed and a checkmark. This means a the file was verified by avdump2.
* Under the <code>Hash</code> column, there is an icon <code>AU</code> overlayed and a checkmark. This means a the file was verified by Avdump2.
* The bottom file has <code>CRC</code> overlayed with a checkmark. That means the entry has been marked to indicate that the CRC for the file, matches the official one provided by the release group.
* The bottom file has <code>CRC</code> overlayed with a checkmark. That means the entry has been marked to indicate that the CRC for the file, matches the official one provided by the release group.
* So the top file has not been marked as having a verified CRC and the bottom one has not had its metadata updated by avdump2. Let's fix the metadata.
* So the top file has not been marked as having a verified CRC and the bottom one has not had its metadata updated by Avdump2. Let's fix the metadata.


Back in command prompt world...
Back in command prompt world...


So, we are trying to use <code>Avdump2cl.exe</code> to send a metadata dump to the server. This can be done using the <code>--Authentication</code> flag, or <code>--Auth</code> for short. The auth flag instructs <code>Avdump2cl.exe</code> to attempt to authenticate with AniDB servers. If authentication fails, <code>Avdump2cl.exe</code> will print an error message and stop. If successful, <code>Avdump2cl.exe</code> will process the file and attempt to send the dump to AniDB servers.
====Adding Dumps Using Avdump2 CLI====
 
So, the idea is to use <code>Avdump2cl.exe</code> to send a metadata dump to the server. This can be done using the <code>--Authentication</code> flag, or <code>--Auth</code> for short. The auth flag instructs <code>Avdump2cl.exe</code> to attempt to authenticate with AniDB servers. If authentication fails, <code>Avdump2cl.exe</code> will print an error message and stop. If successful, <code>Avdump2cl.exe</code> will process the file and attempt to send the dump to AniDB servers.


Note: Please note that all data sent to the server will be logged using IP and user id. If you would like to check what data will be submitted to the server after authentication, run the following command:<br />
Note: Please note that all data sent to the server will be logged using IP and user id. If you would like to check what data will be submitted to the server after authentication, run the following command:<br />
Line 413: Line 419:
<code>username</code> in the above command should be subtituted with your AniDB username. The <code>api_key</code> is the character string that was specified in the AniDB profile in Part A. Notice the colon <code>:</code> in between the <code>username</code> and <code>api_key</code>. If following this tutorial, it should be available at <code>C:\Users\User\anidb_apiKey.txt</code> or <code>C:\Users\User\Desktop\anidb_apiKey.txt</code>. Copy it and right-click paste it into the command prompt:
<code>username</code> in the above command should be subtituted with your AniDB username. The <code>api_key</code> is the character string that was specified in the AniDB profile in Part A. Notice the colon <code>:</code> in between the <code>username</code> and <code>api_key</code>. If following this tutorial, it should be available at <code>C:\Users\User\anidb_apiKey.txt</code> or <code>C:\Users\User\Desktop\anidb_apiKey.txt</code>. Copy it and right-click paste it into the command prompt:


[[File:https://i.imgur.com/GfGPGUW.png|avdump2cl_auth1.png]]
[[File:Avdump2cl_auth1.guide.png|i.imgur.com/GfGPGUW.guide.png]]


[[File:https://i.imgur.com/KSSvMjP.png|avdump2cl_auth2.png]]
[[File:Avdump2cl_auth2.guide.png|i.imgur.com/KSSvMjP.guide.png]]


Enter a space and then drag and drop the file to add to AniDB into the command prompt window as before:
Enter a space and then drag and drop the file to add to AniDB into the command prompt window as before:


[[File:https://i.imgur.com/LYSmR8t.png|avdump2cl_auth3.png]]
[[File:Avdump2cl_auth3.guide.png|i.imgur.com/LYSmR8t.guide.png]]


The command below should be sufficent to submit the meta-data.
The command below should be sufficent to submit the meta-data.


[[File:https://i.imgur.com/c0qq0hp.png|avdump2cl_auth4.png]]
[[File:Avdump2cl_auth4.guide.png|i.imgur.com/c0qq0hp.guide.png]]


Press <code>Enter</code>. If it works, the following should appear after processing completes:
Press <code>Enter</code>. If it works, the following should appear after processing completes:


[[File:https://i.imgur.com/LIGgXjf.png|avdump2cl_submitVerify.png]]
[[File:Avdump2cl_submitVerify.guide.png|i.imgur.com/LIGgXjf.guide.png]]


The line that says:<br />
The line that says:<br />
<code>ACReq( Done: 0 Todo: 1 Failed: 0 Pending: 0 )</code><br />
<code>ACReq( Done: 0 Todo: 1 Failed: 0 Pending: 0 )</code><br />
Means that processing has finished and <code>avdump2cl.exe</code> will attempt to upload the dump.
Means that processing has finished and <code>Avdump2cl.exe</code> will attempt to upload the dump.


The line that says:<br />
The line that says:<br />
<code>ACReq( Done: 1 Todo: 0 Failed: 0 Pending: 0)</code><br />
<code>ACReq( Done: 1 Todo: 0 Failed: 0 Pending: 0)</code><br />
Means the server has accepted the data from <code>avdump2cl.exe</code> and will store it for later processing. '''Success!'''
Means the server has accepted the data from <code>Avdump2cl.exe</code> and will store it for later processing. '''Success!'''


If you get an error like the following:<br />
If you get an error like the following:<br />
[[File:https://i.imgur.com/QAqGtbt.png|avdump2cl_authFail1.png]]
[[File:Avdump2cl_authFail1.guide.png|i.imgur.com/QAqGtbt.guide.png]]


* Double check the API key is correct.
* Double check the API key is correct.
Line 447: Line 453:
If you get an error like the following:
If you get an error like the following:


[[File:https://i.imgur.com/oN118Ln.png|avdump2cl_authFail2.png]]
[[File:Avdump2cl_authFail2.guide.png|i.imgur.com/oN118Ln.guide.png]]


* Notice the error is from ACReq.Authentication. This indicates something to do with authentication caused the error.
* Notice the error is from <code>ACReq.Authentication</code>. This indicates something to do with authentication caused the error.
* In the above command, that is due to a syntax error in the <code>--Auth</code> switch. The correct syntax is <code>--Auth=username:api_key</code> but in the above command the <code>username</code> is missing.
* In the above command, that is due to a syntax error in the <code>--Auth</code> switch. The correct syntax is <code>--Auth=username:api_key</code> but in the above command the <code>username</code> is missing.
* Press the up arrow key to bring up the previous command in the command prompt window. Then fix the syntax and run the command again. It should then work.
* Press the up arrow key to bring up the previous command in the command prompt window. Then fix the syntax and run the command again. It should then work.
Line 455: Line 461:
Assuming dump submission succeeds, the AniDB page for the file will likely show the following:
Assuming dump submission succeeds, the AniDB page for the file will likely show the following:


[not-changed.png]
[[File:anidb_AddFile12.guide.png|i.imgur.com/Wf8zsGx.guide.png]]


In other words, while the correct meta-data has been submitted as part of a dump to AniDB, the information for that file has not changed.
In other words, while the correct meta-data has been submitted as part of a dump to AniDB, the information for that file has not changed.
Line 463: Line 469:
For the file above, this is what the information looked like less than 24-hours later:
For the file above, this is what the information looked like less than 24-hours later:


[[File:https://i.imgur.com/nwrSeBV.png|avdump2cl_submitVerifyComplete.png]]
[File:Avdump2cl_submitVerifyComplete.guide.png|i.imgur.com/nwrSeBV.guide.png]


So far, we have added a single file entry and submitted the associated dump for processing. However, Log Horizon S1 has more than 1 episode. Updating each episode this way, by running <code>avdump2cl.exe</code> twice, once to create the edk2 link and a second time to submit the dump data, would take an excessively long time. <code>avdump2cl</code> supports combing different flags together into one command:
==== Automating Avdump2 CLI ====


<code>avdump2cl.exe --Auth=[username]:[api_key] --Exp=[filename] [file/folder]</code>
So far, we have added a single file entry and submitted the associated dump for processing. However, Log Horizon S1 has more than 1 episode. Updating each episode this way, by running <code>Avdump2cl.exe</code> twice, once to create the ed2k link and a second time to submit the dump data, would take an excessively long time. <code>Avdump2cl</code> supports combing different flags together into one command:


If the above command syntax is used on a file, <code>avdump2cl.exe</code> will authenticate with AniDB servers, then if successful, will process the file, submitting the meta-data to AniDB and then export the ed2k link to a file. This means we can run half the number of commands and still get the output needed to update AniDB!
<code>Avdump2cl.exe --Auth=[username]:[api_key] --Exp=[filename] [file/folder]</code>


There is another thing to notice about that syntax. At the end, it says file/folder meaning that <code>avdump2cl.exe</code> also supports specifying a folder instead of individual files. If a folder is specified, like say: <code>C:\Users\User\Downloads\Log Horizon</code> then <code>avdump2cl.exe</code> will process every file inside of that folder, generating edk2 links for each file.
If the above command syntax is used on a file, <code>Avdump2cl.exe</code> will authenticate with AniDB servers, then if successful, will process the file, submitting the meta-data to AniDB and then export the ed2k link to a file. This means we can run half the number of commands and still get the output needed to update AniDB!
 
There is another thing to notice about that syntax. At the end, it says file/folder meaning that <code>Avdump2cl.exe</code> also supports specifying a folder instead of individual files. If a folder is specified, like say: <code>C:\Users\User\Downloads\Log Horizon</code> then <code>Avdump2cl.exe</code> will process every file inside of that folder, generating ed2k links for each file.


With the above information, the actual command to run would be:<br />
With the above information, the actual command to run would be:<br />
<code>avdump2cl.exe --Auth=YukinoAi:uFEV55lknCwglqdRp1jte36NQ --Exp=avdump2cl-ed2k-Links.txt &quot;C:\Users\User\Downloads\Log Horizon&quot;</code>
<code>Avdump2cl.exe --Auth=YukinoAi:uFEV55lknCwglqdRp1jte36NQ --Exp=Avdump2cl-ed2k-Links.txt &quot;C:\Users\User\Downloads\Log Horizon&quot;</code>


Notice that <code>C:\Users\User\Downloads\Log Horizon</code> needs quotation marks <code>&quot; &quot;</code> surrounding it because <code>Log Horizon</code> has a space. As long as there are no spaces, quotation marks do not have to be used. Without quotation marks, <code>avdump2cl.exe</code> will treat and process all of the files in <code>C:\Users\User\Downloads\Log</code> and also all of the files inside the <code>Horizon</code> folder. Since neither of these folders exist, the commad will fail:
Notice that <code>C:\Users\User\Downloads\Log Horizon</code> needs quotation marks <code>&quot; &quot;</code> surrounding it because <code>Log Horizon</code> has a space. As long as there are no spaces, quotation marks do not have to be used. Without quotation marks, <code>Avdump2cl.exe</code> will treat and process all of the files in <code>C:\Users\User\Downloads\Log</code> and also all of the files inside the <code>Horizon</code> folder. Since neither of these folders exist, the commad will fail:


[[File:https://i.imgur.com/7wV8R5O.png|avdump2cl_syntaxFail1.png]]
[[File:Avdump2cl_syntaxFail1.guide.png|i.imgur.com/7wV8R5O.guide.png]]


If using the drag and drop technique instead of copy-paste, quotation marks will automatically be added as appropriate.
If using the drag and drop technique instead of copy-paste, quotation marks will automatically be added as appropriate.


So, running the above command with proper quotation marks will work. The edk2 links generated in the text file can be added to AniDB using the Mass Add page as shown above. However, having to worry about syntax is cumbersome, as is starting a command prompt. Is there not a better way?
So, running the above command with proper quotation marks will work. The ed2k links generated in the text file can be added to AniDB using the Mass Add page as shown above. However, having to worry about syntax is cumbersome, as is starting a command prompt. Is there not a better way?


An alternative approach is to create a shell script that will invoke <code>avdump2cl.exe</code> with the correct syntax automatically. If anything bad happens, like authentication or syntax errors, it will be easy to solve because the correct syntax can just be copied from the text file back to a normal command prompt.
An alternative approach is to create a shell script that will invoke <code>Avdump2cl.exe</code> with the correct syntax automatically. If anything bad happens, like authentication or syntax errors, it will be easy to solve because the correct syntax can just be copied from the text file back to a normal command prompt.


Open notepad and copy-paste the following cryptic text into a file called <code>AniDBUpdate.bat</code> or just download it [here].
Open notepad and copy-paste the following cryptic text into a file called <code>AniDBUpdate.bat</code> or just download it [here].


<pre>@echo off
<pre>
@echo off
set username=putUsernameHere
set username=putUsernameHere
set api_key=putApiKeyHere
set api_key=putApiKeyHere
Line 503: Line 512:
goto usage)
goto usage)


if not exist &quot;%pathToAvdump2%\avdump2cl.exe&quot; (echo.
if not exist &quot;%pathToAvdump2%\Avdump2cl.exe&quot; (echo.
echo  &quot;%pathToAvdump2%\avdump2cl.exe&quot; does not exist
echo  &quot;%pathToAvdump2%\Avdump2cl.exe&quot; does not exist
goto usage)
goto usage)
if /i &quot;%username%&quot; equ &quot;putUsernameHere&quot; goto usage
if /i &quot;%username%&quot; equ &quot;putUsernameHere&quot; goto usage
if /i &quot;%api_key%&quot; equ &quot;putApiKeyHere&quot; goto usage
if /i &quot;%api_key%&quot; equ &quot;putApiKeyHere&quot; goto usage


if /i &quot;%mode%&quot; equ &quot;exp&quot; &quot;%pathToAvdump2%\avdump2cl.exe&quot; --Exp=&quot;%~dp1\ed2k-%~n1.%random%.txt&quot; &quot;%~1&quot; &quot;%~2&quot; &quot;%~3&quot; &quot;%~4&quot; &quot;%~5&quot; &quot;%~6&quot; &quot;%~7&quot; &quot;%~8&quot; &quot;%~9&quot;
if /i &quot;%mode%&quot; equ &quot;exp&quot; &quot;%pathToAvdump2%\Avdump2cl.exe&quot; --Exp=&quot;%~dp1\ed2k-%~n1.%random%.txt&quot; &quot;%~1&quot; &quot;%~2&quot; &quot;%~3&quot; &quot;%~4&quot; &quot;%~5&quot; &quot;%~6&quot; &quot;%~7&quot; &quot;%~8&quot; &quot;%~9&quot;
::if /i &quot;%mode%&quot; equ &quot;exp&quot; &quot;%pathToAvdump2%\avdump2cl.exe&quot; --Exp=&quot;%userprofile%\Desktop\ed2k-Link-%~n1.%random%.txt&quot; &quot;%~1&quot; &quot;%~2&quot; &quot;%~3&quot; &quot;%~4&quot; &quot;%~5&quot; &quot;%~6&quot; &quot;%~7&quot; &quot;%~8&quot; &quot;%~9&quot;
::if /i &quot;%mode%&quot; equ &quot;exp&quot; &quot;%pathToAvdump2%\Avdump2cl.exe&quot; --Exp=&quot;%userprofile%\Desktop\ed2k-Link-%~n1.%random%.txt&quot; &quot;%~1&quot; &quot;%~2&quot; &quot;%~3&quot; &quot;%~4&quot; &quot;%~5&quot; &quot;%~6&quot; &quot;%~7&quot; &quot;%~8&quot; &quot;%~9&quot;
if /i &quot;%mode%&quot; equ &quot;auth&quot; &quot;%pathToAvdump2%\avdump2cl.exe&quot; --Auth=&quot;%username%:%api_key%&quot; --Exp=&quot;%~dp1\ed2k-%~n1.%random%.txt&quot; &quot;%~1&quot; &quot;%~2&quot; &quot;%~3&quot; &quot;%~4&quot; &quot;%~5&quot; &quot;%~6&quot; &quot;%~7&quot; &quot;%~8&quot; &quot;%~9&quot;
if /i &quot;%mode%&quot; equ &quot;auth&quot; &quot;%pathToAvdump2%\Avdump2cl.exe&quot; --Auth=&quot;%username%:%api_key%&quot; --Exp=&quot;%~dp1\ed2k-%~n1.%random%.txt&quot; &quot;%~1&quot; &quot;%~2&quot; &quot;%~3&quot; &quot;%~4&quot; &quot;%~5&quot; &quot;%~6&quot; &quot;%~7&quot; &quot;%~8&quot; &quot;%~9&quot;
::if /i &quot;%mode%&quot; equ &quot;auth&quot; &quot;%pathToAvdump2%\avdump2cl.exe&quot; --Auth=&quot;%username%:%api_key%&quot; --Exp=&quot;%userprofile%\Desktop\ed2k-Link-%~n1.%random%.txt&quot; &quot;%~1&quot; &quot;%~2&quot; &quot;%~3&quot; &quot;%~4&quot; &quot;%~5&quot; &quot;%~6&quot; &quot;%~7&quot; &quot;%~8&quot; &quot;%~9&quot;
::if /i &quot;%mode%&quot; equ &quot;auth&quot; &quot;%pathToAvdump2%\Avdump2cl.exe&quot; --Auth=&quot;%username%:%api_key%&quot; --Exp=&quot;%userprofile%\Desktop\ed2k-Link-%~n1.%random%.txt&quot; &quot;%~1&quot; &quot;%~2&quot; &quot;%~3&quot; &quot;%~4&quot; &quot;%~5&quot; &quot;%~6&quot; &quot;%~7&quot; &quot;%~8&quot; &quot;%~9&quot;


goto end
goto end
Line 519: Line 528:
echo  OMG^! Hi^!^!^!  Usage Help:
echo  OMG^! Hi^!^!^!  Usage Help:
echo.
echo.
echo  %~nx0 can be used to automate usage of avdump2cl.exe
echo  %~nx0 can be used to automate usage of Avdump2cl.exe
echo  Please update &quot;username&quot; and &quot;api_key&quot; before using %~nx0.
echo  Please update &quot;username&quot; and &quot;api_key&quot; before using %~nx0.
echo.   
echo.   
Line 534: Line 543:


:end
:end
</pre>
</pre>
[[File:https://i.imgur.com/3glAjpw.png|AniDBUpdate_1.png]]
[[File:AniDBUpdate_1.guide.png|i.imgur.com/3glAjpw.guide.png]]


The three highlighted items need to be changed before using the script. Update the username and API key appropriately. Make sure there are no trailing whitespaces in either the username or api_key. &quot;Name&quot; will work but &quot;Name &quot; will not. Example:
The three highlighted items need to be changed before using the script. Update the username and API key appropriately. Make sure there are no trailing whitespaces in either the username or api_key. &quot;Name&quot; will work but &quot;Name &quot; will not. Example:


[[File:https://i.imgur.com/OhfWiuG.png|AniDBUpdate_2.png]]
[[File:AniDBUpdate_2.guide.png|i.imgur.com/OhfWiuG.guide.png]]


For the pathToAvdump2 entry, the path should not include a trailing <code>\</code>.
For the pathToAvdump2 entry, the path should not include a trailing <code>\</code>.
Line 552: Line 562:
1) Hardest: Command prompt method: Navigate to the correct directory and type <code>AniDBUpdate.bat</code>.
1) Hardest: Command prompt method: Navigate to the correct directory and type <code>AniDBUpdate.bat</code>.


[[File:https://i.imgur.com/3N0Sg5f.png|AniDBUpdate_cmd.png]]
[[File:AniDBUpdate_cmd.guide.png|i.imgur.com/3N0Sg5f.guide.png]]
 
-----


2) Drag and drop method: Drag and drop a file or folder onto the batch file.
2) Drag and drop method: Drag and drop a file or folder onto the batch file.


[[File:https://i.imgur.com/eLFgKWf.png|AniDBUpdate_drag1.png]]<br />
[[File:AniDBUpdate_drag1.guide.png|i.imgur.com/eLFgKWf.guide.png]]
[[File:https://i.imgur.com/sxIleWJ.png|AniDBUpdate_drag2.png]]
<br />
 
[[File:AniDBUpdate_drag2.guide.png|i.imgur.com/sxIleWJ.guide.png]]
-----


3) Easiest: Send-to method: Use the right-click <code>Send to</code> context menu.
3) Easiest: Send-to method: Use the right-click <code>Send to</code> context menu.


[[File:https://i.imgur.com/kuUEJsh.png|AniDBUpdate_drag1.png]]
[[File:AniDBUpdate_drag1.guide.png|i.imgur.com/kuUEJsh.guide.png]]


For the send-to method to work, the file, or a shortcut to it, must be placed at:<br />
For the send-to method to work, the file, or a shortcut to it, must be placed at:<br />
Line 575: Line 582:
# <code>Windows key + r</code>
# <code>Windows key + r</code>
# <code>Ctrl + v</code> to Paste the above contents
# <code>Ctrl + v</code> to Paste the above contents
 
## [[File:AniDBUpdate_sendTo1.guide.png|i.imgur.com/Dw7Ckdc.guide.png]]
* [[File:https://i.imgur.com/Dw7Ckdc.png|AniDBUpdate_sendTo1.png]]
 
# Press <code>Enter</code>
# Press <code>Enter</code>
# Right-Click - create a new shortcut
# Right-Click - create a new shortcut
 
## [[File:AniDBUpdate_sendTo2.guide.png|i.imgur.com/VsyL3TV.guide.png]]
* [[File:https://i.imgur.com/VsyL3TV.png|AniDBUpdate_sendTo2.png]]
# Move the shortcut from where it was created to <code>\SentTo</code>.
 
## [[File:AniDBUpdate_sendTo3.guide.png|i.imgur.com/iUQCorO.guide.png]]
# Move the shortcut from where it was created to \SentTo.
 
* [[File:https://i.imgur.com/iUQCorO.png|AniDBUpdate_sendTo3.png]]
 
# Rename the shortcut appropriately.
# Rename the shortcut appropriately.


Line 596: Line 597:
===Avdump2 GUI===
===Avdump2 GUI===


avdump2gui.exe is the graphical user interface (GUI) wrapper for <code>avdump2cl.exe</code> and supports a subset of the features:
Avdump2gui.exe is the graphical user interface (GUI) wrapper for <code>Avdump2cl.exe</code> and supports a subset of the features:


Avdump2 GUI Limitations. The GUI:
Avdump2 GUI Limitations. The GUI:
Line 602: Line 603:
* always requires authenticating.
* always requires authenticating.
* will not generate links without specifying a valid username and valid API key pair, every time.
* will not generate links without specifying a valid username and valid API key pair, every time.
* Note: This information is forcibly saved across instances.
** Note: This information is forcibly saved across instances.
* must be deliberately started every time to be used.
* must be deliberately started every time to be used.
* will not issue an error message when authentication fails and simply not respond.
* will not issue an error message when authentication fails and simply not respond.
* If the GUI does not respond, it is advisable to test for authentication errors using <code>AVDump2CL.exe</code>.
** If the GUI does not respond, it is advisable to test for authentication errors using <code>Avdump2CL.exe</code>.
* requires updating prior to usage.
* requires updating prior to usage.


With these limitations in mind. Launch avdump2gui to have it update automatically.
With these limitations in mind. Launch Avdump2gui to have it update automatically.


# Specify the username and api-key.
# Specify the username and api-key.
# Use the <code>Files</code> and <code>Folder</code> buttons too add files to process.
# Use the <code>Files</code> and <code>Folder</code> buttons too add files to process.
 
## [[File:Avdump2gui_1.guide.png|i.imgur.com/3ypUEcP.guide.png]]
* [[File:https://i.imgur.com/3ypUEcP.png|avdump2gui_1.png]]
 
# When complete, click start to see what happens.
# When complete, click start to see what happens.
 
## If/When nothing happens check for authentication errors using <code>Avdump2CL.exe</code> using the instructions provided above.
* If/When nothing happens check for authentication errors using <code>AVDump2CL.exe</code> using the instructions provided above.
 
# If it works, nothing will happen for a while, and then eventually ed2k links will appear in the ed2k export window. The dump data should have been submitted to AniDB in the background, although there is no way to check.
# If it works, nothing will happen for a while, and then eventually ed2k links will appear in the ed2k export window. The dump data should have been submitted to AniDB in the background, although there is no way to check.
## [[File:Avdump2gui_2.guide.png|i.imgur.com/r52bp7D.guide.png]]


* [[File:https://i.imgur.com/r52bp7D.png|avdump2gui_2.png]]
The ed2k links in the export window can now be submitted to AniDB. Detailed instructions for this are provided above.


The ed2k links in the export window can now be submitted to AniDB. Detailed instructions for this are provided above.
== Understanding AniDB Change Requests (creqs) ==


== Part D) Understanding AniDB Change Requests (creq) ==
:{{Missing}}


AniDB is a user-driven database. A normal way to contribute is to issue change requests (creqs for short), which means that a moderator has to approve suggested changes before they are published. Request links can usually be found on every page that has editable content for logged in users.
AniDB is a user-driven database. A normal way to contribute is to issue change requests (creqs for short), which means that a moderator has to approve suggested changes before they are published. Request links can usually be found on every page that has editable content for logged in users.
Line 633: Line 631:


More info:<br />
More info:<br />
https://wiki.anidb.net/w/How_to_update_or_correct_existing_entries<br />
[[How_to_update_or_correct_existing_entries|wiki/How_to_update_or_correct_existing_entries]]<br/>
https://wiki.anidb.net/w/How_to_get_started_with_creqing
[[How_to_get_started_with_creqing|wiki/How_to_get_started_with_creqing]]


Avdump2, used above, is AniDB's mechanism to submit automatic change requests (acreqs or auto-creq). These automatic change requests do not always require moderator approval because the information (file-metadata) has been verified programmatically. For auto-creqing:
Avdump2, used above, is AniDB's mechanism to submit automatic change requests (acreqs or auto-creq). These automatic change requests do not always require moderator approval because the information (file-metadata) has been verified programmatically. For auto-creqing:
Line 645: Line 643:
* It is possible to dump files currently not in the database. The data is still stored and will be used later if/after the file has been registered.
* It is possible to dump files currently not in the database. The data is still stored and will be used later if/after the file has been registered.


In other words, when Avdump2 submits meta-data dumps to AniDB, the data itself may get processed into a change request. But first, in order to automatically apply the dumped metadata information to a file, that file must be registered first. The process of submitting edk2 links is that registration process. The metadata dumps themselves also contain the edk2 hash information that serves as the basis to link it to registered files.
In other words, when Avdump2 submits meta-data dumps to AniDB, the data itself may get processed into a change request. But first, in order to automatically apply the dumped metadata information to a file, that file must be registered first. The process of submitting ed2k links is that registration process. The metadata dumps themselves also contain the ed2k hash information that serves as the basis to link it to registered files.


To learn more about creqs please check out:
To learn more about creqs please check out:


"Adding Data" subsection on https://wiki.anidb.net/w/Main_Page
"Adding Data" subsection on [[Main_Page|wiki/Main_Page]]


For further help with a problem or just for chatting visit IRC:
For further help with a problem or just for chatting visit IRC:


IRC Wiki page: https://wiki.anidb.net/w/IRC:anidb<br />
Wiki page for IRC: [[IRC:anidb|wiki/IRC:anidb]]<br />
Channel Address: irc://irc.synirc.net/anidb
Channel Address: irc://irc.synirc.net/anidb
79

edits

Navigation menu

MediaWiki spam blocked by CleanTalk.
MediaWiki spam blocked by CleanTalk.