Question about TV.com scraping

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
KodeK Offline
Junior Member
Posts: 5
Joined: Apr 2007
Reputation: 0
Question  Question about TV.com scraping Post: #1
Hi!
(Hopefully this post is in the right place so the right people can read it)

I'm working on a little app to organize my tv shows in my computer, and I keep finding myself reinventing the wheel (xbmc in this case). Hopefully my little app will complement xbmc and not just replicate what it does.

I've been reading the tv.com scraping xml file, but I can't really understand how you guys managed to go from a season number and an episode number to a series episode number (overall episode number).

For example, if you see Prison Break's episode list, episode 2x22 shows up as episode 44.
Also, how did you manage to skip "special" episodes or episodes that were "unaired?" I'm trying to find the most elegant solution, and thought you guys would point me in the right direction.

Anyway, thank you for your time.

KodeK
find quote
spiff Offline
Grumpy Bastard Developer
Posts: 12,186
Joined: Nov 2003
Reputation: 82
Post: #2
skipping is handled by the regexp's.

as for going number -> season, episode the logic is simple. make sure each season starts on ep 1.

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
find quote
KodeK Offline
Junior Member
Posts: 5
Joined: Apr 2007
Reputation: 0
Post: #3
That makes sense. Thanks!

One thing that's not clear, though, is the skipping. I noticed that on Prison Break, there's a "special" episode that's not counted as an actual episode (they go from episode n, to the special episode, to n+1), but on mythbusters, they have special episodes that count as episodes (episode n, special, episode n+2). Does XBMC take this into consideration? If so, how?

Thanks again.

KodeK
find quote
spiff Offline
Grumpy Bastard Developer
Posts: 12,186
Joined: Nov 2003
Reputation: 82
Post: #4
that is not handled unfortunately. hard to find a general logic :/

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
find quote
sho Offline
Team-XBMC Member
Posts: 4,133
Joined: May 2004
Reputation: 3
Post: #5
More on this (I think Smile )

Can it handle specials in the DB, such as the Black Adder specials that are categorized with Season 4 on tv.com
http://www.tv.com/the-black-adder/show/4...dropdown;3

And the Little Britain Specials
http://www.tv.com/little-britain/show/16...=nav_bar;2

I will add this info to the manual if it makes sense.

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
find quote
grote002 Offline
Member
Posts: 94
Joined: Jan 2004
Reputation: 0
Post: #6
I noticed that on quite alot of episodes, some of the cast seem to be missing in the xbmc-database, but are on tv.com as star/guest-star for that episode.
Even after a refresh of the episode-info it doesn't show up.

http://www.tv.com/csi/unbearable/episode...mmary.html , a couple of people are missing from this episode (CSI 5x14 Unbearable). 'Palmer Davis' and 'Sara Foster' for instance don't show up in the database as cast for this episode.

It seems the scraper is missing something, but can't really figure out why it's going wrong.
find quote
egoldy Offline
Junior Member
Posts: 6
Joined: Apr 2007
Reputation: 0
Post: #7
I posted this somewhere else and haven't got an answer in a few weeks so I'm trying it here.

I love the new interface and the support of TV shows - that work for many of the TV shows, but many do NOT seem to recognize the episodes.

I'm following the wiki's naming format:

e.g. \\.....\Penn and Teller\Season 4\01 - Boy Scouts.ISO

Now, I'm using ISO files (as well as some wmv files) - but that shouldn't ben an issue because it works perfectly for some shows (e.g. 24)..

I'm just trying to find out if there is a manual way to enter TV show episode informaiton into the database so that the episodes show up in library mode (currently they are ignored).

Thanks.
find quote
egoldy Offline
Junior Member
Posts: 6
Joined: Apr 2007
Reputation: 0
Post: #8
Played around with this more and I was able to get the shows that were in TV.com to show up in there... Interestingly, the naming convention doesn't seem to work for some reason (e.g. 01 - name of show).. What DID work was doing the following:

Penn and Teller/Season 1/Penn and Teller Bullshit - S01E01 - Name Of Show.ISO

I'd still like to find a way to add shows that are NOT in the tv.com site (e.g. they seem to be missing the third season of high stakes poker - so how do I manually add that into the database....)

Any ideas?
find quote
J_K_M_A_N Offline
Fan
Posts: 443
Joined: Feb 2006
Reputation: 1
Location: Minnesota
Post: #9
You have to remember that the TV scraper and database are in the early stages. I don't believe there is a way to manually add a TV show yet.

Maybe I can check into the star/guest stars not being picked up but I can't promise anything. I got lucky with the IMDB.xml scraper but my luck may have been used up.

J_K_M_A_N
find quote
J_K_M_A_N Offline
Fan
Posts: 443
Joined: Feb 2006
Reputation: 1
Location: Minnesota
Post: #10
I fixed the missing Actors. It was looking for a comma after the actor/roll but the last listing of each actor/roll didn't have a comma. I will submit a patch.

J_K_M_A_N
find quote
Post Reply