| | #24 (permalink) |
| Portal Member Join Date: Mar 2007
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Country: | I am using BeyondTV to currently record tv, and I need an expression to convert using their naming conventions, they have 2. Movies: Metropolis-2007-01-14-0.avi TV Series: NUMB3RS-(The Janus List)-2007-05-18-0.avi Any help on a simple or regular expression for these two formats? Thanks! p.s. For the Movies format, would it be possible to make an expression that would classify it as the series 'Movies', and then the episode would be the actual movie title. |
| | |
| | #25 (permalink) | |
| Portal Designer | Quote:
PHP Code: Movies? No, not what this plugin is for. Inker That is an interesting Expression and I see no reason why in theory it shouldn't work. I'll go and give this a try tomorrow to see if i can't figure it out. The plugin just calls the .NET regex engine, so its possible the engine differs a bit from what that tool you used uses.
__________________ There are only two industries that refer to their customers as "users". - Edward Tufte Last edited by Inker; 2007-07-25 at 22:30. Reason: Automerged Doublepost | |
| | |
| | #26 (permalink) |
| Portal Member Join Date: Mar 2007
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Country: | Inker, Thanks for the quick response. I couldn't get the series code to work. Likely it is because that isn't necessarily the first aired date, it is the date the recording took place. Can that expression be modified so that it just ignores the date section, but extracts the series and episode name? Thanks! |
| | |
| | #27 (permalink) | |
| Portal Designer | Quote:
Seriesname + Season + Episodenumber or Seriesname + First Aired Date somewhere in the filename. The expression itself works though, I tried with the sample filename you provided. However if its a recordings date than it can't match it to an actual season/episode so you get no data at all. The title is extracted from the filename though and so is the series, so in theory you should have all your episodes show up in MP, just out of order and with no meta-data. You can try that mediarenamer tool, perhaps it can search by episode title.
__________________ There are only two industries that refer to their customers as "users". - Edward Tufte | |
| | |
| | #28 (permalink) |
| Portal Member Join Date: Mar 2007
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Country: | Thanks, I will work with it a bit. I thought there was an error with the expression because when I used the 'parsing tests' in config, I got no values for any series or titles. I will mess around with it some more on my end. Thanks for your help. I am having some problems getting any results using this regex. I just downloaded a program called 'expresso' to try to figure out what was going on, and it says there is an additional ')'. Can you confirm you pasted your working version in the sample above? Thanks again. Last edited by MojoFlow; 2007-07-26 at 21:17. Reason: Automerged Doublepost |
| | |
| | #29 (permalink) |
| Project Coordinator Join Date: Dec 2004 Location: 127.0.0.1 Age: 28
Posts: 5,960
Thanks: 152
Thanked 113 Times in 79 Posts
Country: | i just noticed that files like: Code: Battlestar Galactica - S03E03 - Exodus part1.avi after adding the following "simple" expression Code: <series> - S<season>E<episode> - <title>.<ext> ![]() maybe a good default expression? keep up the great work! i love the new release. ![]()
__________________ regards chris MediaPortal Project Coordinator Test Team Leader Do not start to moan if something is not working as you want it to be. Remember that MediaPortal is Open Source. YOU can improve it! |
| | |
| | #30 (permalink) | |
| Portal Designer | Quote:
The following default regex matches it: Code: ^.*?\\?(?<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)[^\\]*?(?<HR>HR\.)?[^\\]*?)\.(?<ext>[^.]*)$
__________________ There are only two industries that refer to their customers as "users". - Edward Tufte | |
| | |
![]() |
| Bookmarks |
| Tags |
| expressions or rules, requests |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Expressions/Rules exchange | Inker | My TVSeries | 12 | 2008-09-05 17:45 |
| Default expressions/double episodes | Vergo | My TVSeries | 31 | 2008-09-01 09:32 |
| Regular Expressions question | johnslayer | MediaPortal 1 Talk | 2 | 2006-07-02 18:26 |
| 3 requests | Anonymous | Improvement Suggestions | 0 | 2004-05-09 16:08 |