- March 10, 2006
- 4,434
- 1,897
- Thread starter
- Moderator
- #141
Re: AW: IMDb+ Scraper (Force English title, Auto-Rename titles to group, and more) v3
Thank you, I've put a lot of work into it so far, but the results on my own HTPC are worth it.
As far a integrating my code into a different system, if the 'other' scraper also uses IMDb tt-IDs as a reference, then it's almost as easy as copy and paste. But if you adjusted it from IMDb tt-ID into OFDb IDs then more changes are needed and I guess that is where things went wrong. What I did with the IMDb+ scraper goes way outside of the scope of scrapers, so a lot of additional conditions have to be met. For example the rename database file has to be in the location defined by the scraper script with the same filename, which I used file="C:\Rename dBase IMDb+ Scraper.xml" for. This file has to be proper XML syntax, so perhaps your rename system messed that up. Use the XML synax checker inside the comments section to verify. You can copy and paste the content of the XML file into the online form and check.
The rest is then pretty logical, I load the contents of the XML file into an array called rename_array. And then via the @nodes I compare the @id (which I use to store the IMDb tt-ID with inside XML file) to the movie.imdb_id, and on a match rename the title and/or sortby field via their respective @nodes. To allow for a change on title, sortby or title+sortby, I added the extra empty string check.
Hi RoChess,
I like this scraper, it works a lot better than the standard imdb scraper. Tested it with 58 movies and it got all of them correct without any assistance or corrections necessary (where as the original scraper got nine movies wrong).
However as I am german I'd like to use ofdb for titles and summaries. I made a small program to update the rename xml file and added some attribute fields for the ofdb id and german titles, then copy pasted the renaming part from the imdb+ scraper to the MoPi ofdb scraper. This however seems to greatly confuse the ofdb scraper, as it stops working completely
Could you give some hints and tips as to what needs to be adjusted to get the ofdb scraper working with the renamer?
Thank you, I've put a lot of work into it so far, but the results on my own HTPC are worth it.
As far a integrating my code into a different system, if the 'other' scraper also uses IMDb tt-IDs as a reference, then it's almost as easy as copy and paste. But if you adjusted it from IMDb tt-ID into OFDb IDs then more changes are needed and I guess that is where things went wrong. What I did with the IMDb+ scraper goes way outside of the scope of scrapers, so a lot of additional conditions have to be met. For example the rename database file has to be in the location defined by the scraper script with the same filename, which I used file="C:\Rename dBase IMDb+ Scraper.xml" for. This file has to be proper XML syntax, so perhaps your rename system messed that up. Use the XML synax checker inside the comments section to verify. You can copy and paste the content of the XML file into the online form and check.
The rest is then pretty logical, I load the contents of the XML file into an array called rename_array. And then via the @nodes I compare the @id (which I use to store the IMDb tt-ID with inside XML file) to the movie.imdb_id, and on a match rename the title and/or sortby field via their respective @nodes. To allow for a change on title, sortby or title+sortby, I added the extra empty string check.