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
 
LinkBack (1) Thread Tools Display Modes
Old 2008-04-10, 20:32   #11 (permalink)
Portal User
 
Join Date: Apr 2008
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts

Country:


Default

Type: Parsing - Simple
Podcasts
Description:
How to parse a podcast with the numbering scheme 0001-9999. Marks all Seasons of the podcast as Season 1.
Must use String Replacement to insert Season 1 Identifier (Season number identified after -- and before x).
Code:
Example String Replacement

Sample Filenames:
diggnation--0142--2008-03-20hamsters--hd.h264.mov
diggnation--0143--2008-03-27foxnews--hd.h264.mov
diggnation--0144--amsterdamnation2--hd.h264.mov

Replace This: diggnation--
With This: diggnation--1x
Code:
Simple Expression to parse

<series>--<season>x<episode>--<title>.<ext>
djburt is offline   Reply With Quote
Old 2008-05-29, 04:05   #12 (permalink)
Portal Member
 
Join Date: Apr 2008
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts


Default

Type: Parsing - Regex
Amazon Unbox Support
Description:
I just modified a stock regex to account for Amazon using three digits instead of 2 for the episode number. Bad with regular expressions so I don't know how well it will hold up
Series - S##E### - Title.Ext

Code:
^.*?\\?(?<series>[^\\$]+?)(?:s(?<season>[0-1]?\d)e(?<episode>\d\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>[^.]*)$

Last edited by campnic; 2008-05-29 at 20:02.
campnic is offline   Reply With Quote
Old 2008-09-05, 17:45   #13 (permalink)
Portal Member
 
Join Date: Mar 2008
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts


Default

Type: Parsing - Regex
Description: This Regex will properly parse shows that have 3 digit episode numbers like Late Show with David Letterman
so letterman.13104.ep2517.avi will parse out as Season 13 Episode 104


Expression:

Code:
^.*?\\?(?<series>[^\\$]+?)(?:s(?<season>[0-3]?\d)\s?ep?(?<episode>\d\d\d)|(?<season>(?:[0-3]\d|(?<!\d)\d\d))x?(?<episode>\d\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>[^.]*)$
tzuriel is offline   Reply With Quote
Reply

Bookmarks

Tags
exchange, expressions or rules

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 On
Forum Jump

LinkBacks (?)
LinkBack to this Thread: http://forum.team-mediaportal.com/my-tvseries-162/expressions-rules-exchange-21977/
Posted By For Type Date
Extensions-Plugins/MP-TVSeries/Configuration - MediaPortal Documentation This thread Refback 2008-07-21 12:54

Similar Threads
Thread Thread Starter Forum Replies Last Post
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


All times are GMT +1. The time now is 01:13.


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