| | #1 (permalink) |
| Portal Member Join Date: Oct 2007 Location: Memphis, TN Age: 26
Posts: 72
Thanks: 5
Thanked 3 Times in 2 Posts
Country: | the online database has values for season, episode, and absolute episode. most of what i would use this plugin for is anime which doesn't use season/episode numbering style but just a simple absolute number. is it possible to make an regexp that uses the absolute episode numbers instead of the season/episode scheme. |
| | |
| | #3 (permalink) |
| Portal Member Join Date: Oct 2007 Location: Memphis, TN Age: 26
Posts: 72
Thanks: 5
Thanked 3 Times in 2 Posts
Country: | that only works for short run anime shows(<26 episodes) but if you do that with a show like naruto which has 220 episodes, the online database does not have any info for season 1 episode 220. though i'm still having difficulties with episode 220 being detected as season 2 episode 20. thetvdb's wiki says they added the absolute number field in because of anime, maybe there is a way to request season "absolute" , episode "220". if anyone has solve the problem of long animes(Naruto, Bleach, DragonBallz, etc) that doesn't involve relabeling them all to the english "season/episode" standard, please reply with how you accomplished this ![]() |
| | |
| | #4 (permalink) |
| Portal Member | I'm not sure if Inker has added support for absolute numbering but it is requested & made available the same way dvd ordering is requested Naruto for example is returned like http://thetvdb.com/interfaces/GetEpi...order=absolute. So yeah everything is in season 1 but a season number is not required to work with the site although it may be required for this plugin. Paul
__________________ Site Admin thetvdb.com |
| | |
| | #5 (permalink) |
| Portal Member | I only have one anime right now so I wrote a special regex for it. I only have up to episode 100 but it definitely works past 26. here is how I parse Bleach: Code: (?<season>1).*(?<series>bleach)[\s-_]{1,3}(?<episode>\d+)(?:-(?<episode2>\d+))?.*\.(?<ext>[^.]*)
i.e. Bleach\Season 1\[DB]_Bleach_52-53_[069BE2EB].avi Also, since it's sort of a loose filter, I hard coded it to match only bleach and moved it to the top of my expressions list. You could probably just copy it for all similarly formated anime and just change "Bleach" to whatever in the regex. |
| | |
| This User Say Thank You: |
| | #6 (permalink) |
| Portal Designer | Yeah, it'll need to be detected as season 1, there is no "if no season is found assume 1" kind of thing. But for instance 1x220 or the trick by gazpachoking should work fine.
__________________ There are only two industries that refer to their customers as "users". - Edward Tufte |
| | |
| | #7 (permalink) |
| Portal Member Join Date: Oct 2007 Location: Memphis, TN Age: 26
Posts: 72
Thanks: 5
Thanked 3 Times in 2 Posts
Country: | after 20 hours of straight tinkering and backwards engineering i have solved my problem rather nicely thanks for the tip on bleach, it gave me what i needed to make my main regexp my first regexp is for absolute ordered shows (MUST BE FIRST TO WORK RIGHT) Code: Absolute (?<season>[\d])\\(\[[\w\s\-,'`%&!.]+\])*(?<series>[\w\s\-,'`%&!.]+?)(?<episode>[\d]+)(-(?<episode2>[\d]+))?(?<title>[\w\s-,'`%&!.]+)?.*\.(?<ext>[^.]*) notes: "Absolute 1" this regexp only works if Absolute is in the folder name and 1 is required for the season number to make it work <episode2>&<title> are optional and this is my second regexp which is a slightly modified from one of the default ones Code: ^.*?\\?(\[[\w\s\-,'`%&!.]+\])*(?<series>[^\\$]+?)(?:s(?<season>[0-1]?\d)e(?<episode>\d\d)|(?<season>(?:[0-1]\d|(?<!\d)\d))x?(?<episode>\d\d))(?!\d)(?:[ .-]?(?:s\k<season>e?(?<episode2>\d{2}(?!\d))|\k<season>x?(?<episode2>\d{2}(?!\d))|(?<episode2>\d\d(?!\d))|E(?<episode2>\d\d))|)[ -.]*(?<title>(?![^\\]*?sample)[^\\]*?[^\\]*?)\.(?<ext>[^.]*)$
with these 2 codes all my files work as long as they have at least a basic name format Last edited by Mavoc; 2008-07-01 at 20:47. |
| | |
| | #8 (permalink) |
| Portal User Join Date: Aug 2007 Age: 27
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
| I was facing the same problem. I have a lot of Anime series that I wanted to add to the DB, but since they are all named continuously (no seasons) it was impossible. Creating different regxp entries never solved my problem. Looking at the source code of MPTV I realized that the scanning routines needs a season number or the filename is considered invalid. Now I could rename all my files (1000+, no joy) or find a way to add them to the db. Naruto episodes for example are split up into seasons in the online db (I presume because they were aired as seasons in the US). Anyway I needed a way to match absolute episodes to the seasons/episode based index. Therefore I created a program that reads my episodes filenames and then automatically matches them to the season/index system. Manual correction is also possible since there are sometimes things like 3 episodes in one file (3 episodes aired right after one another). After that my program updates the database file (TVSeriesDatabase4.db3) adding the episodes in the correct format (creating the needed entries in the tables"local_episodes", "online_episodes", "local_series", "online_series" and "season"). Then all I have to do is trigger an update in the options dialog and voila I had my Anime imported. (Took me a while to figure out what exactly to write to the DB to trigger an auto update though). This solved my problem, but it’s far from perfect. Every time a new episode comes along I have to use my program to generate a DB entry and trigger an online update. What I would wish for is an option in MPTV to manually set the seasons/episode index if it is necessary. It would also help tremendously if the default season would be set to “1”, so if a file does not have a season, it assumes that you mean season 1. That would allow people to add anime series that span 20+ episodes, like Cowboy Bebop for example. It still doesn’t solve the problem for Naruto with 220 episodes, which is broken down into 9 seasons in the online TV DB. PS: if anyone is interested in the program, send me as message or e-mail. |
| | |
| | #9 (permalink) |
| Portal Member | Hi all! In version 2.0 I can't manage to get the absolute sorting working. I have the episodes saved in this format, suggested in this thread: Bleach\Season 1\Bleach - 173.avi The serie is recognized ok. The episode is parsed correctly, but I get no episode data from the thetvdb.com. Other series in Aired order works great. In the db is stored this: Series ID: 74796 Season index: 1 Episode index: 173 Composite episode ID: 74796_1x173 Is something wrong with my parsing? Is a known bug? for my "not perfect" english ![]() |
| | |
![]() |
| Bookmarks |
| Tags |
| absolute, episode, numbers |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| absolute episode numbering | ohdarklord | My TVSeries | 4 | 2007-04-13 23:00 |
| Changing Channel Numbers | rede96 | Improvement Suggestions | 0 | 2007-03-28 17:07 |
| Weird Numbers Blasting | squidina | MCE Replacement Plugin | 5 | 2007-03-03 03:26 |
| SVN Build Numbers | robomonkey | General Support | 6 | 2006-06-06 09:12 |
| absolute newbie question about hard and software | Anonymous | Hardware Selection Help | 5 | 2005-05-31 21:13 |