Thanks! It works, but not perfect. The rating field is nog correct (rating is always 0.0). Also the category field always containsbad4u wrote:MovieMeter (NL) fixed. I changed two lines within the script :
toCode: Select all
AnalyzeResultsPage('http://www.moviemeter.nl/?search&q='+UrlEncode(MovieName));
andCode: Select all
AnalyzeResultsPage('http://www.moviemeter.nl/film/search/'+UrlEncode(MovieName));
toCode: Select all
Line := TextBetween(Page.Text, 'class="filmresults_row1">', '<form action="http://www.moviemeter.nl/film/search/"');
Maybe you can find a more elegant solution for the second workaround, but you should know that Line := TextBetween(Page.Text, 'class="filmresults_row1 first" >', '<form action="http://www.moviemeter.nl/film/search/"'); will not work with all films!Code: Select all
if Pos('Zoekresultaten in films:', Page.Text) > 0 then Line := TextBetween(Page.Text, 'Zoekresultaten in films:</p>', '<form action="http://www.moviemeter.nl/film/search/"'); if Pos('Alle zoekresultaten in films:', Page.Text) > 0 then Line := TextBetween(Page.Text, 'Alle zoekresultaten in films:</p>', '<form action="http://www.moviemeter.nl/film/search/"'); Line := TextBetween(Line, '</p></div>', '<p><br /></p>');
Download : http://bad4u.saveitfree.com/scripts/Mov ... 8NL%29.ifs
@Antoine: Just want to mention that I set version number from 2.6.1. to 2.6.2 . If you don't like it, you can use it as basis for your own corrections. If you like it, upload it
Code: Select all
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head><title>Queen, The (2006) - MovieMeter.nl</title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<style type="text/css">
<!--
@import url("http://www.moviemeter.nl/includes/stylesheet_v57.css");
-->
</style>
<link rel="shortcut icon" href="http://www.moviemeter.nl/images/favicon_new.gif" />
<script type="text/javascript">
text_move = 'verplaatsen';
text_delete = 'verwijderen';
text_no_results = 'Aan deze map zijn momenteel geen films toegevoegd.';
text_added_open_my_films = 'toegevoegd, open Mijn Films';
text_remove_from_my_updates = 'verwijderen uit Mijn Updates';
text_to_my_updates = 'toevoegen aan Mijn Updates';
text_options = 'opties';
text_actions = 'acties';
text_edit_folder = 'bewerk map';
text_delete_folder = 'verwijder map';
text_new_subfolder = 'nieuwe submap';
text_action_csv_export = 'CSV-export';
text_action_votingtable = 'Stemtabel';
text_delete_folder_sure = 'Weet je zeker dat je deze map en alle eventuele films en submappen wilt verwijderen? Deze actie kan niet ongedaan gemaakt worden.';
allow_url_fopen = 1;
text_description = 'Omschrijving';
text_name = 'Naam';
text_yes = 'ja';
text_no = 'nee';
text_click_here_for_name = 'klik hier om de naam te bewerken';
text_click_here_for_description = 'klik hier om de omschrijving te bewerken';
text_myvote = 'mijn stem';
text_myvote_none = '(geen)';
session_users_id = 0;
session_unique_login_string = '';
// this is of course only used for "low level" mod checks ;)
session_mod_discussions_entities = 0;
session_mod_discussions_forum = 0;
site_color_1 = '#ffeccc';
site_color_2 = '#ffd99b';
site_nd = true;
site_address = 'http://www.moviemeter.nl/';
</script>
<script type="text/javascript" src="http://www.moviemeter.nl/libs/prototype.lite.js"></script>
<script type="text/javascript" src="http://www.moviemeter.nl/libs/moo.fx.js"></script>
<script type="text/javascript" src="http://www.moviemeter.nl/libs/moo.fx.pack.js"></script>
<script type="text/javascript" src="http://www.moviemeter.nl/includes/scripts_v37.js"></script>
<script type="text/javascript" src="http://www.moviemeter.nl/includes/pagemaker_v6.js"></script>
<script type="text/javascript">
//<![CDATA[
search = new quickSearch('2bd3bf46b5d27ef1e13717e5eef01324');
fixstuff = function () {
var h = document.getElementById('centrecontent').clientHeight;
var browser = new Browser();
var h_new = (parseInt(h)-160).toString() + 'px';
document.getElementById('outer').style.height = h_new;
if (browser.isIE && browser.version < 7) {
document.getElementById('outer').paddingBottom = '160px';
document.getElementById('innerwrap').paddingBottom = '160px';
var h_new = (parseInt(h)+160).toString() + 'px';
}
else {
var h_new = (parseInt(h)+148).toString() + 'px';
}
document.getElementById('outer').style.height = h_new;
/* hack to keep XHTML compliance while using "autocomplete" tag */
var sBox = document.getElementById('quicksearch');
if (sBox) {
sBox.setAttribute('autocomplete', 'off');
}
}
try {
window.addEventListener("load", fixstuff, true);
} catch(e){
window.attachEvent("onload", fixstuff);
}
//]]>
</script>
</head>
<body onload="checkImages('Bekijk afbeelding in originele grootte', 588);" >
<div id="outer">
<div id="logo">
<a href="http://www.moviemeter.nl"><img src="http://www.moviemeter.nl/images/logo_new.png" alt="MovieMeter.nl"/></a>
</div>
<div id="ads">
<script type="text/javascript"><!--
google_ad_client = "pub-7153530375565264";
google_alternate_color = "FFFFFF";
google_ad_width = 120;
google_ad_height = 600;
google_ad_format = "120x600_as";
google_ad_type = "text";
//2007-02-04: MovieMeter.nl rechts
google_ad_channel = "7436339213";
google_color_border = "706a54";
google_color_bg = "706a54";
google_color_link = "c7c1a4";
google_color_text = "FFFFFF";
google_color_url = "000000";
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
<div id="searchresults"> </div>
<div id="innerwrap">
<div id="centrecontent">
<div id="crumbs">locatie: <a href="http://www.moviemeter.nl/film/">Films</a> » <a href="http://www.moviemeter.nl/film/34236/">Queen, The (2006)</a> » <a href="http://www.moviemeter.nl/film/34236//">Info</a></div><h1>Queen, The (2006) </h1><p> </p><div id="tabswrapper"><ul id="tabs"><li><a href="http://www.moviemeter.nl/film/34236/info/" class="active">Info</a></li><li><a href="http://www.moviemeter.nl/film/34236/votes/" >Stemmen</a></li><li><a href="http://www.moviemeter.nl/film/34236/stats/" >Statistieken</a></li><li><a href="http://www.moviemeter.nl/film/34236/message/new/" >Nieuw bericht</a></li><li><a href="http://www.moviemeter.nl/film/34236/search/" >Zoek bericht</a></li><li><a href="http://www.moviemeter.nl/film/34236/correct/" >Corrigeren</a></li></ul></div><div style="height: 52px;"> </div> <div class="sponsored"><a href="http://www.directmovie.nl?from=www.moviemeter.nl" target="directmovie" onclick="externalClick('24.132.114.67', 'directmovie', 34236, 0);"><span class="sponsored_link">Directmovie.nl</span> online film kijken zonder downloaden!</a>
Oh, the script also doesn't fill in the movie playtime, country and cover image :P