NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Add-ons (3rd party plugins, utilities and skins) Old Stuff (Legacy) v
« Previous 1 2 3 4 5 … 125 Next »
EPG/XML parsing: reading Season and Episode data from title

 
  • 0 Vote(s) - 0 Average
EPG/XML parsing: reading Season and Episode data from title
Sykor
Offline

Member

Posts: 182
Threads: 3
Joined: Mar 2009
#1
2009-09-27, 04:31 PM
Maybe one the already available utilities/plugins already does it, but I couldn't find it through my searches. The closest I could find was in old UltraXMLtv's wiki page, about Series/Episode Lookup, but I'm not sure if that's what I'm looking for exactly.

I grab my epg data (for Portugal) through xmltv's tv_grab_pt, and xmltv's source for Portugal, puts the season and episode number in the programmes' title (ex. "Dexter S1 E02").

Is there any utility that can detect and cut that sort of data when available, and paste it to the proper tag, for the Enhancer to read it?
markbb1
Offline

Member

Posts: 155
Threads: 7
Joined: Jul 2006
#2
2009-09-27, 07:13 PM
Sykor Wrote:Maybe one the already available utilities/plugins already does it, but I couldn't find it through my searches. The closest I could find was in old UltraXMLtv's wiki page, about Series/Episode Lookup, but I'm not sure if that's what I'm looking for exactly.

I grab my epg data (for Portugal) through xmltv's tv_grab_pt, and xmltv's source for Portugal, puts the season and episode number in the programmes' title (ex. "Dexter S1 E02").

Is there any utility that can detect and cut that sort of data when available, and paste it to the proper tag, for the Enhancer to read it?
If it has never been done, it probably could. I could probably do it in PERL, but it would be ugly, and you probably don't have PERL for Windows installed. You could try alternate xmltv generators such as mc2xml (if Portugal is supported) or TVXB. TVXB has an ini file that was working as of March this year. Maybe one of those grabbers would tag season and episode data, although there is no guarantee that the data is reliable. For example, the provider for North America uses an episode number something like "EP00353633.0001". Although there is a hash for deciphering it to season and episode number, the algorithm is not included in grabbers.

My recommendation is to try other grabbers and see if the data from them is more useful to you.
Sykor
Offline

Member

Posts: 182
Threads: 3
Joined: Mar 2009
#3
2009-09-27, 11:21 PM
markbb1 Wrote:If it has never been done, it probably could. I could probably do it in PERL, but it would be ugly, and you probably don't have PERL for Windows installed. You could try alternate xmltv generators such as mc2xml (if Portugal is supported) or TVXB. TVXB has an ini file that was working as of March this year. Maybe one of those grabbers would tag season and episode data, although there is no guarantee that the data is reliable. For example, the provider for North America uses an episode number something like "EP00353633.0001". Although there is a hash for deciphering it to season and episode number, the algorithm is not included in grabbers.

My recommendation is to try other grabbers and see if the data from them is more useful to you.

It is an somewhat easy task to accomplish, even for a once-a-year programmer (like me), and I'll probably do just that (write a small app to search those sequences and modify the line in the file), but there would be no point in "reinventing the wheel" if a ready-to-use solution was already available Big Grin
bholio
Offline

Junior Member

Posts: 8
Threads: 1
Joined: Feb 2009
#4
2010-02-15, 04:30 PM
markbb1 Wrote:For example, the provider for North America uses an episode number something like "EP00353633.0001". Although there is a hash for deciphering it to season and episode number, the algorithm is not included in grabbers.
Can someone shed some more light on this algorithm? Where would I begin searching for it? I can't think of a term to enter into google to start looking.

Thanks.
markbb1
Offline

Member

Posts: 155
Threads: 7
Joined: Jul 2006
#5
2010-02-16, 02:14 AM
bholio Wrote:Can someone shed some more light on this algorithm? Where would I begin searching for it? I can't think of a term to enter into google to start looking.

Thanks.
As for the "dd_progid" form of episode data, according to a post at http://forums.digiguide.com/topic.asp?id...agesize=15 ,
"Don't try and parse those fields, Zap2IT says there is no pattern." But there may be a way of resolving the episode number from the data in the "onscreen" ep tags. I can't remember where I got the idea that the "dd_progid" data was resolvable. To get the above URL I did a Google search on "xmltv parse season episode".
whurlston
Offline

Posting Freak

Posts: 7,885
Threads: 102
Joined: Nov 2006
#6
2010-02-16, 03:14 AM
Yeah, the dd_progid is TMS's internal id. The number before the period is the Series ID. The number after the period should be the episode number. The "EP" means it's an episodic show (the show has episodes). So if a show has 10 episodes it's first season and 12 it's second season, Season 2 Episode 3's dd_progid should end with ".0013". The problem is that unless you know how many episodes each season had, there is no way to go from the dd_progid to the Sea # Ep # format. This is where the "onscreen" value comes in. The problem with that is that some shows will number their episodes strangely, like Episode "#X03".
bholio
Offline

Junior Member

Posts: 8
Threads: 1
Joined: Feb 2009
#7
2010-02-16, 04:52 AM
whurlston Wrote:So if a show has 10 episodes it's first season and 12 it's second season, Season 2 Episode 3's dd_progid should end with ".0013". The problem is that unless you know how many episodes each season had, there is no way to go from the dd_progid to the Sea # Ep # format. This is where the "onscreen" value comes in. The problem with that is that some shows will number their episodes strangely, like Episode "#X03".
I just tried manually counting out episodes of '24' and 'family guy' on thetvdb.com and I can't make either of them match the episode number in EPxxxxx.### that shows up in my xmltv. They are close, but not quite right. There are a number of 'special' episodes which might be messing up the count, but I could come up with no algorithm to figure it out.

Its too bad..
whurlston
Offline

Posting Freak

Posts: 7,885
Threads: 102
Joined: Nov 2006
#8
2010-02-16, 05:52 AM
Yeah, things like that never seem work the way they are supposed to. One could include unaired episodes while the other does not. I never really looked into it beyond the theory, sorry.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Mayhem 3 skin - Rules to show meta data for VIDEO folder? vskatusa 8 3,256 2009-02-22, 08:23 AM
Last Post: BekKen
  How to adjust a Title of a Screen? olliw 1 1,379 2008-01-14, 02:34 AM
Last Post: Jaggy
  Hibernate and data corruption jam_zhou 0 1,131 2007-05-07, 07:02 PM
Last Post: jam_zhou
  Sports Scores error parsing MLB data snowmanaxp 0 1,181 2007-03-23, 02:26 AM
Last Post: snowmanaxp
  Showburner title length the_e 9 2,811 2007-03-22, 05:34 PM
Last Post: the_e
  RecTracker. Can the 50-character title limit be increased? Jim_ 5 2,249 2007-03-10, 03:00 PM
Last Post: fla
  Does any plugin allow searching by text in descriptions (not title) thawk 3 1,603 2007-02-26, 03:03 PM
Last Post: Jeff
  XRecord System.Data.OleDb.OleDbConnection threw an exception venkman 4 2,231 2007-02-25, 06:07 PM
Last Post: fla
  Will addEpisode or RenameRecording use XMLTV episode-num system="onscreen" gnutech 5 2,230 2006-12-07, 10:16 AM
Last Post: gnutech
  XRecord manifest error for System.Data.SQLite BobAtTorrey 23 7,853 2006-11-17, 05:59 PM
Last Post: Jim_

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode