My Anime plugin (3 Viewers)

Ryõsuke

Portal Member
April 29, 2009
8
0
Home Country
Belgium Belgium
You only answered one question. Anyway, switch to Blue3 then try this plugin. If it doesn't work, try it again with Blue3wide. Let us know what you get.

Sorry, but I tried it with Blue3, Blue3wide, Monochrome, ...

what version of MediaPortal are you using and where did you put the database file? The readme is targeted at Windows Xp using MediaPortal RC3 or RC4.
Pathnames are different for Vista. Using anything later then RC4 also needs the files in Documents and settings\all users....\
For Vista (not using it myself) it ought to be something like c:\programdata\team mediaportal\

The latest one, I did a clean install. So I guess it's RC4? I'm using Vista, so probably I messed up with the pathnames. Thanks.

edit: it's 1.0.0 RC2, I downloaded it from the main site. The install file says "MediaPortal 1.0.1", but when I boot Mediaportel I see "1.0.0 RC2" in the bottom left corner.

The screen layout is pretty basic, so it should work with most skins. Currently, I'm using Monochrome without problems.

The paths for Windows Vista are (I've updated the Readme.txt for the next version):
  • C:\ProgramData\Team MediaPortal\MediaPortal\database\AnimeDatabaseV10.db3
  • C:\Program Files\Team MediaPortal\MediaPortal\plugins\Windows\AnimePlugin.dll
  • C:\Program Files\Team MediaPortal\MediaPortal\skin\Blue3wide\*.xml --> copy all these files to the wide screen version of your choice
  • C:\Program Files\Team MediaPortal\MediaPortal\skin\Blue3\*.xml --> copy all these files to the normal screen version of your choice

Okay, I'll try that. Thank you. I'll let you know if it worked (but I guess it will).

edit: still the same :-/
 

lwerndly

Portal Pro
January 14, 2008
702
278
Home Country
Australia Australia
The error is probably occurring when it tries to bind to the local port for AniDB.
This occurs before the skin file is loaded. Lack of error handling there (hint hint bert_r :p)

Take a look in your MediaPortal.log file for something like this

-------- Local IP Addresses --------
XXXXX
-------- End Local IP Addresses --------
 

Ryõsuke

Portal Member
April 29, 2009
8
0
Home Country
Belgium Belgium
The error is probably occurring when it tries to bind to the local port for AniDB.
This occurs before the skin file is loaded. Lack of error handling there (hint hint bert_r :p)

Take a look in your MediaPortal.log file for something like this

-------- Local IP Addresses --------
XXXXX
-------- End Local IP Addresses --------

2009-05-01 03:57:57.378908 [Info.][MPMain]: -------- Local IP Addresses --------
2009-05-01 03:57:57.378908 [Info.][MPMain]: IP Address: fe80::188a:2464:a11f:646d%12 : 4555
2009-05-01 03:57:57.378908 [Info.][MPMain]: IP Address: fe80::e465:acbc:d977:5b77%17 : 4555
2009-05-01 03:57:57.378908 [Info.][MPMain]: IP Address: 2002:554:ca73::554:ca73 : 4555
2009-05-01 03:57:57.378908 [Info.][MPMain]: IP Address: 2002:54c2:bab4::54c2:bab4 : 4555
2009-05-01 03:57:57.378908 [Info.][MPMain]: IP Address: 84.194.186.180 : 4555
2009-05-01 03:57:57.378908 [Info.][MPMain]: IP Address: 5.84.202.115 : 4555
2009-05-01 03:57:57.378908 [Info.][MPMain]: IP Address: 2001:0:d5c7:a2d6:188a:2464:a11f:646d : 4555
2009-05-01 03:57:57.378908 [Info.][MPMain]: -------- End Local IP Addresses --------

The error log says:

2009-05-01 03:57:57.381908 [ERROR][MPMain]: Error initializing window:AnimePlugin.AnimePluginView Er is een adres gebruikt dat niet compatibel is met het aangevraagde protocol System bij System.Net.Sockets.Socket.DoBind(EndPoint endPointSnapshot, SocketAddress socketAddress)
bij System.Net.Sockets.Socket.Bind(EndPoint localEP)
bij AnimePlugin.AniDBLib.BindToLocalPort()
bij AnimePlugin.AniDBLib.Init(String userName, String password, String serverName, String serverPort, String clientPort)
bij AnimePlugin.AnimePluginView.Init()
bij MediaPortal.GUI.Library.PluginManager.LoadWindowPlugin(String strFile)
 

slamdance

Portal Member
July 9, 2008
40
4
Home Country
Netherlands Netherlands
If you go to the plugin config, you should see a network field.

For the Preferred Local IP Address you should add either 5.84.*.* or 84.194.*.* and try to run the anime plugin again. (edited out the last 2 numbers of your ip address as it looks like that's the IP adress of your internet connection.)

The plugin is probably trying to use the IP v6 addresses and fails, adding an IP v4 address as the preferred addres should fix that.

There is a small problem though, 84.194.*.* is the address you connect to the internet with.
As that address is given to you by your provider, it might change each time you restart your computer (it depends on telenet, if they give out a static ip adress it stays the same. if it's dynamic it changes each time you reconnect.)



I have a small problem myself as well.

Is it possible there is an error in the hashing algorithm?

It's happening more often that the wrong hash is calculated. After forcing a rehash the same incorrect hash is calculated.

I tested calculating the hash with some different programs (crc32, MD5 and / or 2d2k hashes) and all of those programs return the same hash as is listed on anidb, so the files themself are correct.

I did notice it occurs more often with small files (but not limited to), like trailers and promo's.
 

bert_r

Portal Pro
April 7, 2009
110
16
Home Country
Belgium Belgium
I'll have a look at the connection handling to AniDB (including the error handling). It should work with IPv6 in these days, doesn't it?
But if I google the error code, it seems to be socket error 10047 (WSAEAFNOSUPPORT), which according to MSDN doesn't seem to have anything with IPv6/IPv4:
WSAEAFNOSUPPORT: Address family not supported by protocol family.
An address incompatible with the requested protocol was used. All sockets are created with an associated address family (that is, AF_INET for Internet Protocols) and a generic protocol type (that is, SOCK_STREAM). This error is returned if an incorrect protocol is explicitly requested in the socket call, or if an address of the wrong family is used for a socket, for example, in sendto.

slamdance: Could you give me an example of an incorrect hashed file?
 

slamdance

Portal Member
July 9, 2008
40
4
Home Country
Netherlands Netherlands
Had to do a little searching, as I recently corrected al the wrpng hashes manualy using SQLite Database Browser, but here is an example.
If you need additional examples, I have some from "The Melancholy of Haruhi-chan" and specials from "My Hime"


file: [Chihiro]_K-ON!_-_Preview_01_[640x480_H.264_AAC][0F9D7849].mkv
AniDB link: http://anidb.net/perl-bin/animedb.pl?show=file&fid=564347

My Anime Plugin 0.35 hash: B591FB14E8DEE356E3847FB75FD7713F

Ed2k Hash GUI v0.3: b3a20942990fce4e79b6aaca4a98a7db
WinAFV32 SFV hash: 0F9D7849
WinAFV32 MD5 hash: C7E66410E29DA7F27C2E6532A3D6D856

I didn't include the download link to the file itself as I'm not sure if it's ok to post it according to the forum rules.


The incorrect hash occurs on both my normal pc and my HTPC.
 

bert_r

Portal Pro
April 7, 2009
110
16
Home Country
Belgium Belgium
I found the reason for the hashing error: An ed2k hash is calculated by hashing (MD4) the file in chunks of 9500 KiB, appending the hashes, and hashing the result again. If the file is smaller than 9500 HiB however, you just hash the file.
Our mistake is that if the file is smaller than 9500 KiB, we hash the file twice (well, we hash the file and re-hash the hash).

I'll think I'll try to fix the other problem (of Ryõsuke) first, and release a version together with a fix for this ...
 

tgxiii

Portal Pro
November 17, 2008
68
0
Hi slamdance,

Can you show me how you were able to determine what hash this plugin is returning? I've been having the same problem with a lot of my files as well.
 

Users who are viewing this thread

Top Bottom