My Anime plugin (4 Viewers)

kazuma6666

Portal Member
March 2, 2008
18
0
I tried launching it on debug mode. I got the files locally for testing.

Here is the result in the logs from the time I launch the anime plugin (every file is hashed previously) :

2008-03-04 13:42:30.437500 [Debug][MPMain]: Window: AnimePlugin.AnimePlugin init
2008-03-04 13:42:30.453125 [Info.][MPMain]: btnLayout.Label: View: Folder
2008-03-04 13:42:30.812500 [Info.][12]: UpdateFileDataIfRequired: K:\HDD7501\Animation Seisaku Shinkou Kuromi-chan [1] 2001 (773)\Animation Seisaku Shinkou Kuromi-chan - 1 - OVA DVD(XviD)[Wizzu].avi
2008-03-04 13:42:30.812500 [Info.][MPMain]: GUI_MSG_ITEM_FOCUS_CHANGED: hdd7501 - K:\HDD7501
2008-03-04 13:42:30.828125 [Info.][12]: GetAniDBFileInfo: 39E1249810D6DE5FCCA7C647FCE7A24A
2008-03-04 13:42:30.828125 [Info.][12]: AniDB_FileInfo.IsWatched: 0
2008-03-04 13:42:30.843750 [Info.][12]: DB Version: 113
2008-03-04 13:42:30.843750 [Info.][12]: UpdateFileDataIfRequired: K:\HDD7501\Azusa, Otetsudaishimasu! [1] 2004 (1760)\Azusa, Otetsudaishimasu! - 1 - OVA (XviD)[Lunar].avi
2008-03-04 13:42:30.843750 [Info.][12]: GetAniDBFileInfo: C09B128F8609427CC9D603E63040B4CB
2008-03-04 13:42:30.859375 [Info.][12]: AniDB_FileInfo.IsWatched: 0
2008-03-04 13:42:30.859375 [Info.][12]: DB Version: 113
2008-03-04 13:42:30.859375 [Info.][12]: UpdateFileDataIfRequired: K:\HDD7501\Baccano! [13] 2007 (4897)\Baccano! - 01 - The Assistant Editor Refuses to Discuss the Possibility that he is the Main Character (H264)[Ayu].mkv
2008-03-04 13:42:30.859375 [Info.][12]: GetAniDBFileInfo: 01D46B30D3A0320164DE8011D2BD7C46
2008-03-04 13:42:30.859375 [Info.][12]: AniDB_FileInfo.IsWatched: 0
2008-03-04 13:42:30.859375 [Info.][12]: DB Version: 113
2008-03-04 13:42:30.875000 [Info.][12]: UpdateFileDataIfRequired: K:\HDD7501\Baccano! [13] 2007 (4897)\Baccano! - 02 - Despite the Old Womans Anxieties the Trans-Continental Train Pulls Out (H264)[Ayu].mkv
2008-03-04 13:42:30.875000 [Info.][12]: GetAniDBFileInfo: FE0DA888DCC40CE6AFC7A37EA4DB4CE5
2008-03-04 13:42:30.875000 [Info.][12]: AniDB_FileInfo.IsWatched: 0
2008-03-04 13:42:30.875000 [Info.][12]: DB Version: 113



So it's the UpdateFileDataIfRequired that seems to access anidb each time I launch the application. There is a feedback for it, I can see the connections to anidb. This is used for every anime file, over 2000 files for this disk, but it' still fast. As I did more debug, i got the following message after all the UpdateFileDataIfRequired are done :

2008-03-04 13:51:02.562500 [Info.][7]: ProcessCommands: GetEpisodeInfo - K:\HDD7501\Moyashimon [11] 2007 (5305)\Moyashimon - 03 - Bacteria Within (XviD)[BSS]-muxed.mp4
2008-03-04 13:51:02.656250 [Info.][8]: ProcessImages: E:\Program Files\Team MediaPortal\MediaPortal\Thumbs\AnimeThumbs\2510_AniDB_Cover.jpg
2008-03-04 13:51:02.656250 [Info.][8]: ProcessImages: http://img5.anidb.net/pics/anime/3413.jpg
2008-03-04 13:51:02.750000 [Info.][7]: ProcessCommands: Result: FileDoesNotExist
2008-03-04 13:51:02.750000 [Info.][7]: Remove Command: GetEpisodeInfo - K:\HDD7501\Moyashimon [11] 2007 (5305)\Moyashimon - 03 - Bacteria Within (XviD)[BSS]-muxed.mp4
2008-03-04 13:51:05.062500 [Info.][7]: ProcessCommands: GetEpisodeInfo - K:\HDD7501\Moyashimon [11] 2007 (5305)\Moyashimon - 04 - Well multiply (XviD)[BSS]-muxed.mp4
2008-03-04 13:51:05.250000 [Info.][7]: ProcessCommands: Result: FileDoesNotExist
2008-03-04 13:51:05.250000 [Info.][7]: Remove Command: GetEpisodeInfo - K:\HDD7501\Moyashimon [11] 2007 (5305)\Moyashimon - 04 - Well multiply (XviD)[BSS]-muxed.mp4
2008-03-04 13:51:06.093750 [Info.][8]: ProcessImages: E:\Program Files\Team MediaPortal\MediaPortal\Thumbs\AnimeThumbs\2510_AniDB_Cover.jpg
2008-03-04 13:51:06.093750 [Info.][8]: ProcessImages: http://img5.anidb.net/pics/anime/3413.jpg


While these things are done, I'm still getting the "hash..." message, but it seems there is no hashing. And there is no other feedback (no more logging into anidb and checking files, so I can only see "hash..."). Then finally, the plugin will get stuck after the following messages :

2008-03-04 14:09:01.234375 [Info.][7]: ProcessCommands: GetEpisodeInfo - K:\HDD7501\Taiho Shichau zo Second Season [26] 2001 (675)\Youre Under Arrest Season 2 - 10.avi
2008-03-04 14:09:01.406250 [Info.][7]: ProcessCommands: Result: FileDoesNotExist
2008-03-04 14:09:01.406250 [Info.][7]: Remove Command: GetEpisodeInfo - K:\HDD7501\Taiho Shichau zo Second Season [26] 2001 (675)\Youre Under Arrest Season 2 - 10.avi
2008-03-04 14:09:03.218750 [Info.][8]: ProcessImages: E:\Program Files\Team MediaPortal\MediaPortal\Thumbs\AnimeThumbs\384_AniDB_Cover.jpg
2008-03-04 14:09:03.218750 [Info.][8]: ProcessImages: http://img5.anidb.net/pics/anime/2142.jpg
2008-03-04 14:09:03.734375 [Info.][7]: ProcessCommands: Logout -
2008-03-04 14:09:03.906250 [Info.][7]: ProcessCommands: Result: LoggedOut
2008-03-04 14:09:03.906250 [Info.][7]: Remove Command: Logout -
2008-03-04 14:09:08.234375 [Info.][8]: ProcessImages: E:\Program Files\Team MediaPortal\MediaPortal\Thumbs\AnimeThumbs\384_AniDB_Cover.jpg
2008-03-04 14:09:08.234375 [Info.][8]: ProcessImages: http://img5.anidb.net/pics/anime/2142.jpg
2008-03-04 14:09:13.640625 [Info.][8]: ProcessImages: E:\Program Files\Team MediaPortal\MediaPortal\Thumbs\AnimeThumbs\384_AniDB_Cover.jpg
2008-03-04 14:09:13.640625 [Info.][8]: ProcessImages: http://img5.anidb.net/pics/anime/2142.jpg
2008-03-04 14:09:18.484375 [Info.][8]: ProcessImages: E:\Program Files\Team MediaPortal\MediaPortal\Thumbs\AnimeThumbs\384_AniDB_Cover.jpg
2008-03-04 14:09:18.484375 [Info.][8]: ProcessImages: http://img5.anidb.net/pics/anime/2142.jpg
2008-03-04 14:09:23.437500 [Info.][8]: ProcessImages: E:\Program Files\Team MediaPortal\MediaPortal\Thumbs\AnimeThumbs\377_AniDB_Cover.jpg
2008-03-04 14:09:23.437500 [Info.][8]: ProcessImages: http://img5.anidb.net/pics/anime/2134.jpg
2008-03-04 14:09:28.890625 [Info.][8]: ProcessImages: E:\Program Files\Team MediaPortal\MediaPortal\Thumbs\AnimeThumbs\377_AniDB_Cover.jpg
2008-03-04 14:09:28.890625 [Info.][8]: ProcessImages: http://img5.anidb.net/pics/anime/2134.jpg


The last messages with 377_AniDB_Cover.jpg and http://img5.anidb.net/pics/anime/2134.jpg will loop. This is the urusei yatsura cover.

When I moved urusei yatsura somewhere else, it stopped the processImages calls but I can still see "hash...".
 

lwerndly

Portal Pro
January 14, 2008
702
278
Home Country
Australia Australia
Ok, I'll explain a couple of things with the method "UpdateFileDataIfRequired".

This is basically called every time you scan a file. It does the following
- Checks for a file hash in DB
- Checks if we have AniDB info for that file in the DB
- Checks if we have series info for that file in DB
- Check if we have an image for that series

If any of the info is missing it will try to retrieve it.

In your case it seems that some of the episodes in your folders do not match what is on AniDB. So every time you restart it tries to find the file info again. This is quite common when you have thousands of files.

If you see "Hash" down the bottom, it simply means it has finished doing everything. I will remove this at some stage (it is just a placeholder).

The other problem is that one of the images is getting a "403 - Forbidden" error so it is failing to download it.
I can see the problem with the looping of image downloads, so i will fix that.
There is a bit too much Info logging as well, which will slow things down, so I will remove that as well.
 

kazuma6666

Portal Member
March 2, 2008
18
0
Thanks for your fast answers iwerndly. It's good to learn a bit more about how it works.

About this :

If any of the info is missing it will try to retrieve it.

In your case it seems that some of the episodes in your folders do not match what is on AniDB. So every time you restart it tries to find the file info again. This is quite common when you have thousands of files.

How can I correct the data so it doesn't happen each time I restart?
 

lwerndly

Portal Pro
January 14, 2008
702
278
Home Country
Australia Australia
Kazuma6666 - the problem is either with the file itself, not matching the hash AniDB thinks it should be.
Or the AniDB info is wrong (unlikely if you can see lots of people on AniDB who have added the file)
Or the file is not actually on AniDB yet - i have quite a few files in my collection that have never been added to AniDB.

If you can a particular file that the plugin keeps trying to get info for, maybe you can check it against the AniDB records
 

kazuma6666

Portal Member
March 2, 2008
18
0
Ok, I understand now! I was reencoding stuff to go on my mobile device. So I had a few files which had nothing to do with anidb. I moved those reencode somewhere else, and now it's much better :)

Thanks for the info!
 

lwerndly

Portal Pro
January 14, 2008
702
278
Home Country
Australia Australia
New version

Have also attached metadata containing roughly 150 series and 1500 files.
Will save on connections to AniDB if that matters to you.

0.1.7

* Fixed bug regarding apsotrophes in episode names etc
* Fixed bug where it failed to download a series image
* Changed excessive INFO logging to DEBUG logging instead
* Will now try and bind to a local IP Address which contains "192.XXX" rather than first local IP found
--- For users running Vista or virtual network adepters such as LogMeIn Hamachi
+ Added option to add files to AniDB MyList
+ Import Meta Data from XML utility has now been implemented
--- Allows you to import series and file info (database is checked before AniDB)
 

kazuma6666

Portal Member
March 2, 2008
18
0
Nice release!

I put it on my HTPC and I got no problem right now. Well It doesn't work so well on the network, but it is still usable. When I'll get my new HDDs for my HTPC box, I'll just put everything locally.


Thanks a lot for this release and for the bugfixes :)
 

lwerndly

Portal Pro
January 14, 2008
702
278
Home Country
Australia Australia
Thanks, I will do one more release, and then release the source code.
If anyone wants to export the meta data and send me the XML, I would appreciate it.
 

kazuma6666

Portal Member
March 2, 2008
18
0
Will do that tonight!
By the way, what player are you using. I couldn't get all my subtitles to work with the mediaportal player, so I'm using media player classic.
 

yhoogi

MP Donator
  • Premium Supporter
  • March 9, 2008
    599
    47
    Home Country
    Germany Germany
    Just a question by a noob:

    Is it possible to enlarge the pictures & fonts?
    I am using as basic interface a 7" lcd in my HTPC.

    At a distance of 2m its getting problematic to read & see the cover


    Thx
     

    Users who are viewing this thread

    Top Bottom