MediaPortal Forums HTPC/MediaCenter

Go Back   MediaPortal Forum » MediaPortal 1 » Community Skins and Plugins » Plugins » Hot Plugins » My TVSeries


My TVSeries MediaPortal MyTV-Series plugin

Reply
 
Thread Tools Display Modes
Old 2007-07-24, 08:01   #21 (permalink)
Portal Member
 
Join Date: Dec 2005
Age: 41
Posts: 18
Thanks: 5
Thanked 0 Times in 0 Posts

Country:

My System

Default

Quote:
Originally Posted by scythelt View Post

Quote:
Originally Posted by scma View Post
At the moment I'm renaming them to something like this: World.Series.Of.Poker - 2007x01 - No Limit.avi
Sorry can't help you with a regex, but you could simply try adding an "S" to the front of the 2007 and it should match correctly.
Unfortunatly that didn't work. I think the regex's expect the season's to be two figures
scma is offline   Reply With Quote
Old 2007-07-24, 14:13   #22 (permalink)
Portal Member
 
Join Date: Apr 2007
Age: 25
Posts: 19
Thanks: 0
Thanked 7 Times in 6 Posts

Country:


Default

try something like
[\w:\\ ]*\\(?<series>[^\d]*)(?<season>[0-9]{1,4})\.E(?<episode>[0-9]{1,2})\.[\w]*\.(?<ext>[^.]*)
JonJon is offline   Reply With Quote
This User Say Thank You:
Old 2007-07-25, 09:23   #23 (permalink)
Portal Member
 
Join Date: Dec 2005
Age: 41
Posts: 18
Thanks: 5
Thanked 0 Times in 0 Posts

Country:

My System

Smile

Quote:
Originally Posted by JonJon View Post
try something like
[\w:\\ ]*\\(?<series>[^\d]*)(?<season>[0-9]{1,4})\.E(?<episode>[0-9]{1,2})\.[\w]*\.(?<ext>[^.]*)
Thanks! That worked like a charm!
scma is offline   Reply With Quote
Old 2007-07-25, 21:39   #24 (permalink)
Portal Member
 
Join Date: Mar 2007
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts

Country:


Default

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.
MojoFlow is offline   Reply With Quote
Old 2007-07-25, 22:09   #25 (permalink)
Portal Designer
 
Inker's Avatar
 
Join Date: Dec 2004
Posts: 1,550
Thanks: 34
Thanked 133 Times in 57 Posts

My System

Default

Quote:
Originally Posted by MojoFlow View Post
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.
For Series:
PHP Code:
(?<series>[^$]+)?-+?.*((?<title>.*[^]?))-?(?<FirstAired>((19|20)(d{2})(.|-|/)([0-3]d)(.|-|/)([0-3]d))).*.(?<ext>[^.]*)$ 
but only if the date is the original "first airdate" according to the online DB. Otherwise its not going to work (reruns etc.)

Movies? No, not what this plugin is for.

Inker

Quote:
Originally Posted by ToonGeneral View Post
Hi guys,
.......
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
Inker is offline   Reply With Quote
Old 2007-07-26, 02:26   #26 (permalink)
Portal Member
 
Join Date: Mar 2007
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts

Country:


Default

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!
MojoFlow is offline   Reply With Quote
Old 2007-07-26, 07:07   #27 (permalink)
Portal Designer
 
Inker's Avatar
 
Join Date: Dec 2004
Posts: 1,550
Thanks: 34
Thanked 133 Times in 57 Posts

My System

Default

Quote:
Originally Posted by MojoFlow View Post
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!
No, it needs either:
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
Inker is offline   Reply With Quote
Old 2007-07-26, 14:45   #28 (permalink)
Portal Member
 
Join Date: Mar 2007
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts

Country:


Default

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
MojoFlow is offline   Reply With Quote
Old 2007-07-29, 17:12   #29 (permalink)
Project Coordinator
 
infinityloop's Avatar
 
Join Date: Dec 2004
Location: 127.0.0.1
Age: 28
Posts: 5,960
Thanks: 152
Thanked 113 Times in 79 Posts

Country:

My System

Default

i just noticed that files like:
Code:
Battlestar Galactica - S03E03 - Exodus part1.avi
can not be parsed.

after adding the following "simple" expression
Code:
<series> - S<season>E<episode> - <title>.<ext>
all works fine.

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!
infinityloop is online now   Reply With Quote
Old 2007-07-29, 17:27   #30 (permalink)
Portal Designer
 
Inker's Avatar
 
Join Date: Dec 2004
Posts: 1,550
Thanks: 34
Thanked 133 Times in 57 Posts

My System

Default

Quote:
Originally Posted by infinityloop View Post
i just noticed that files like:
Code:
Battlestar Galactica - S03E03 - Exodus part1.avi
can not be parsed.

after adding the following "simple" expression
Code:
<series> - S<season>E<episode> - <title>.<ext>
all works fine.

maybe a good default expression?

keep up the great work! i love the new release.
That had me puzzled, so I just tested that filename and it works just fine.
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>[^.]*)$
Could you make sure you have that one enabled?
__________________

There are only two industries that refer to their customers as "users".
- Edward Tufte
Inker is offline   Reply With Quote
Reply

Bookmarks

Tags
expressions or rules, requests

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

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


All times are GMT +1. The time now is 14:12.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 Protected by Akismet Blog with WordPress