Posts: 1,722
Joined: Sep 2009
Reputation:
20
I've got a ton of files with a naming convention like this:
new and Unprocessed (before compression):
C:\Documents and Settings\All Users\Documents\SnapStream\Beyond TV\shows\South Park\South Park-2009-04-15-0.mpg
And
Recorded and processed:
C:\Documents and Settings\All Users\Documents\SnapStream\Beyond TV\shows\Family Guy\Family Guy-(A Picture Is Worth 1,000 Bucks)-2009-10-30-0.wmv
This is the default BeyondTV naming convention. How can I get a scraper to work with these? Right now XBMC does not support BTV file naming conventions.
Posts: 1,722
Joined: Sep 2009
Reputation:
20
Well, I was trying to look at how to develop a scraper for BTV.
Posts: 12,706
Joined: Nov 2003
Reputation:
129
spiff
Team-Kodi Member
Posts: 12,706
just push an expression that matches dates and off you go. has been supported for a while...
Posts: 2,064
Joined: Jan 2009
Reputation:
34
prae5
Team-XBMC Forum Moderator
Posts: 2,064
I looked at something similar for another project a while back, and looking at your files names i don't think it will work.
Using the family guy episode you listed above as an example:
Family Guy-(A Picture Is Worth 1,000 Bucks)-2009-10-30-0.wmv
The date you have in it is 2009-10-30 which I'm assuming is the record date, its not the original air date (2000-04-18), so it will fail on that as you need to lookup using the air date.
Posts: 1,722
Joined: Sep 2009
Reputation:
20
2009-11-02, 16:11
(This post was last modified: 2009-11-02, 16:15 by outleradam.)
so how can I go about building a query easily? I can't get tv rename to work. Isn't there a way to look up show name and episode name, just disregarding the date?
Posts: 12,706
Joined: Nov 2003
Reputation:
129
spiff
Team-Kodi Member
Posts: 12,706
no. they need to either be enumerated using episode numbers or air dates. bark up the beyond tv tree.
Posts: 2,064
Joined: Jan 2009
Reputation:
34
prae5
Team-XBMC Forum Moderator
Posts: 2,064
Sorry missed the windows part. Haven't used windows for along time - maybe possible to do something with mce?
Posts: 1,545
Joined: Oct 2008
Reputation:
31
fekker
Posting Freak
Posts: 1,545
just an idea, you could send it via google to thetvdb
google search for the following
Family Guy-(A Picture Is Worth 1,000 Bucks) site:thetvdb.com
get the episode name from the file name in () and back reference it to \1
then parse the results (where \1 is the backref to just the episode name)
\1.*?(\d{4}-\d{2}-\d{2})
the capture group for that will get the aired date as \1
then you could pass it through the normal channels
Posts: 2,064
Joined: Jan 2009
Reputation:
34
prae5
Team-XBMC Forum Moderator
Posts: 2,064
I was going to suggest something similar, but didn't think it would work after looking at the ep name on tvdb. The actual ep name listed is "A Picture's Worth A Thousand Bucks" so didn't think it would match "A Picture Is Worth 1,000 Bucks", although seems to work going through google.
Might be an idea to test a few other eps that have odd names before spending too much time on it.
Posts: 1,722
Joined: Sep 2009
Reputation:
20
2009-11-03, 16:59
(This post was last modified: 2009-11-03, 17:23 by outleradam.)
so how could that be automated into a scraper?
oh, i see.. I will do the work tonight to ensure 100% reliability.