| | #1 (permalink) |
| Portal Member Join Date: Jun 2006
Posts: 24
Thanks: 0
Thanked 0 Times in 0 Posts
| First off, as most people think... awesome plugin! I'm currently writing a program to update the database with info from TV.com. I know we want to support zsori.com and I will change the program for their needs to automatically grab the info for their database from TV.com too in a while but in the meantime, there's a whole lot of episode info missing from zsori.com so I thought I'd write a little program to grab the data from TV.com and import it into the db4.db3 database whilst we wait for zsori.com to catch up. Anyway, looking at the fields in the online_episodes table, the Episode Index and Season Index fields are the wrong way round (i.e. Episode Index shows season number and Season Index shows episode number). Not that it makes any functional difference at the moment, but just thought I'd point it out in case it does in the future. If you change it, could you post a notice as I'll have to change a few lines of code in my proggy! It should hopefully be done in the next couple of weeks (don't have much spare time, plus 7 week old baby!). |
| | |
| | #2 (permalink) | ||
| Portal Designer | Quote:
Quote:
Anyways, congratulations on your baby! Hope all is well!
__________________ There are only two industries that refer to their customers as "users". - Edward Tufte | ||
| | |
| | #3 (permalink) |
| Portal Member Join Date: Jun 2006
Posts: 24
Thanks: 0
Thanked 0 Times in 0 Posts
| No, you're absolutely right... I feel like a right lemon now!!! The reason was that the columns were automatically sorted by Episode Index for some reason when I was expecting them to be by season: ![]() So it looked like Episode Index was showing the series number and Series Index showing episode number! Don't I look the numpty!! heheRegarding just updating zsori.com... that was the original plan. The online request process for the info to be updated is that a request is put in which then has to be approved by an admin, then finally the info gets updated (don't know if it's manually or not). Could take weeks. As plenty of my shows didn't have the info, and I got tired of filling it in via the web form, I originally was going to write the utility to auto-fill and submit the web forms with data parsed from TV.com. Then I saw the request to keep data transfer down to a minimum, so I changed the premise to be able to update the database from TV.com outside of the website bandwidth, and then upload the amended database for use. I still will do that but am waiting for a reply about the database schema (it's supposed to be available on sourceforge but I can't find it) and also whether it would actually be of any use to them. In the meantime, I just started to code the same thing but to update my personal database because 1) I already know the structure of the database, 2) it would use alot of the same code (parsing TV.com pages etc.) so I thought I'd get started and 3) cos I just felt like it! I totally see your point though and unless a request is made, will keep it to myself. |
| | |
| | #4 (permalink) |
| Portal Designer | No problem. Regarding the update though, yes it is approved manually, but I have done it before and it never took more than 2 days for the info to get there. That said, please feel free to post it (actually, please do post it, but please include the source). This could actually be of great value to us in the future incase zsori should become unavailable. Perhaps you could make it it as general as possible, so people could easily add other providers (have you thought about using MP html parsing classes? You should talk to James about this). That way someone could create (and share) a parser for a website about suaheli tv shows if they like. I could see it getting added to the main source in this case. Who says redundancy is a bad thing? (I know, I know...I did in the first reply...)
__________________ There are only two industries that refer to their customers as "users". - Edward Tufte |
| | |
| | #5 (permalink) |
| Portal Member Join Date: Jun 2006
Posts: 24
Thanks: 0
Thanked 0 Times in 0 Posts
| I had an email back from Scott Zsori - the website database automatically updates from TV.com every day but there are a couple of conditions... the show status needs to be marked as 'Continuing' and the Airs field already filled in. The scripts are in Perl (which I know nothing about) and available on the sourceforge site. Shows that don't meet these conditions need to be updated manually. The chances of anything I do making it into MP code are nil - I program in VB6 (I know, it's old but I don't have the time to learn a new language and it does most of what I want it to do) and can only hack at C#!! I will try and put together a general utility that could parse from a few places and be able to map data to fields and import to whatever (SQLite) database you choose, or even create a new database and tables. I'm sure my code wouldn't be the neatest, fastest or cleverest, but hopefully it will work!!! |
| | |
![]() |
| Bookmarks |
| Tags |
| correction, database |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Movie Database.. The use? | 6point6 | MediaPortal 1 Talk | 19 | 2006-04-23 11:50 |
| All Game Database & Update Database button "quirk&q | gpeters | Plugins | 5 | 2006-01-02 21:30 |
| Database example?? | esajesa | General Development (no feature request here!) | 0 | 2005-12-07 22:38 |
| Per-channel volume correction | cmorant | Improvement Suggestions | 1 | 2005-07-30 12:19 |
| Music Database | Bochi | Improvement Suggestions | 0 | 2005-07-07 17:07 |