(*************************************************** Ant Movie Catalog importation script www.antp.be/software/moviecatalog/ [Infos] Authors=Draco31.fr Title=DiscountManga Description=Site de vente Manga, DVD, CD & Goodies Site=http://www.discountmanga.com Language=FR Version=0.2 du 03/06/2007 Requires=3.5 Comments=Ce script nécessite les fichiers StringUtils1.pas & ScorEpioNCommonScript.pas|.==.| : ' ( ( ( ( /\ | "==()))))): © ScorEpioN ©| ( ( ( ( \_/ License=This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. | GetInfo=1 [Options] Recherche sur le titre=0|0|0=Traduit|1=Original Type de Lancement=0|0|0=Demande le titre avant de lancer le script|1=Ne demande pas le titre avant de lancer le script|2=Lancement automatique sur l'adresse web Type de recherche=0|4|0= Tout|23=Mangas|1= Mangas VF|2= Mangas Occaz|34= Pack|20= BD Manga|3= Manga X|12= Mangas Jap|24=DVD|4= DVD Animés|5= DVD Occaz|7= DVD X|10= Films Asiatiques|25=Produits dérivés|18= Cosplay|16= Goodies|9= Figurines|13= T Shirt|27= Pin's|28= Peluche|33= Accessoires|29=Artbook|8= Artbook Jap|30= Artbook Français|26=CD|14= CD-Animé (OST)|17= CD-DVD JPOP|22=Cartes à Jouer|21=Jeux Vidéo|19=Vente Flash Affiche=1|1|0=Prend la petite affiche|1=Prend la grande affiche (plus disponible) Format du Titre=3|3|0=Titre en minuscule|1=Titre en majuscule|2=Première lettre du titre en majuscule|3=Première lettre de chaque mot du titre en majuscule|4=Formatage identique au site d'origine ***************************************************) program DiscountManga; //uses // ScorEpioNCommonScript, StringUtils1; const VersionScript = '0.1 du 02/07/2006'; NomScript = 'DiscountManga'; urlDomain = 'http://www.discountmanga.com'; urlDMSearch = 'http://www.discountmanga.com/categories.php?cId='; // cPath=1 pour les Manga VF // cPath=12 pour les Manga Jap // cPath=8 pour les Artbook // cPath=4 pour les DVD urlDMSearchGo = '&search='; timetosleep = 500; var MovieName, Resume, Titre, urlTitre, APage, CPage, Comments,sTypeR : string; CxNote, compteur, premiereExecution, numTemp, lien_URL, Critique, TypeR : Integer; NoteC, NoteM, Note, NumPage: real; listeResultat : TStringList; //--OK-------------------------------------------------------------------------- // ANALYSE RESULTAT DE RECHERCHE //------------------------------------------------------------------------------ procedure AnalyzeSearchPage(urlSearch: string); var Line, PageNo, temp : string; nbchoix, i : integer; begin Line := GetPage(urlSearch); nbchoix := 0; PageNo := ''; if Pos('Votre recherche n''a donné aucun résultat.',Line) > 0 Then ShowInformation('Aucun titre correspondant à "'+MovieName+'" !'+#13#10+'Relancez le script en donnant un autre mot clé !') else begin PickTreeClear; temp := ''; i := 0; urlTitre := ''; Titre := ''; // Récupère le numéro de la page en cours depuis l'url temp := copy(urlSearch,Pos('&page=',urlSearch)+6,length(urlSearch)); i := StrToInt(temp,0); NumPage := i; temp := ''; i := 0; // Supprimme le haut de la page Delete(Line,1,Pos('Résultat de votre recherche',Line)); // Test si existe page suivante i := Pos('[Suivante >>]',Line); if ( i > 0 ) Then begin temp := Line; delete(temp,i+33,length(temp)); temp := copy(temp,LastPos('[Suivante >>]',temp,0); PickTreeMoreLink(urlTitre); PageNo := ' (Page N°'+FloatToStr(NumPage)+')'; temp := ''; end else begin // Test si qu'une seule page de résultats if (NumPage = 1) Then PageNo := '' else PageNo := ' (Dernière Page)'; end // Initialise la fenêtre de résultat PickTreeAdd('Résultat trouvé pour : '+MovieName+PageNo,''); // Condition pour fin de la liste de résultats While (Pos('