Ticket #3184: allocine.diff
File allocine.diff, 7.8 KB (added by , 17 years ago) |
---|
-
modules/_shared/lang/French.lang
71 71 "Album Tracks" 72 72 "Albums" 73 73 "Albums with songs by %s" 74 "ALLOCINETYPE" 75 Allo Ciné 74 76 "All" 75 77 "All Albums" 76 78 "All Categories" … … 316 318 Humidité 317 319 "IMDB" 318 320 Allociné 321 "IMDBTYPE" 322 Imdb 319 323 "Inactive" 320 324 Inactif 321 325 "info: activate recording" … … 825 829 "Visit $1" 826 830 "Watched" 827 831 "Weather" 832 "web_video_imdb_type" 828 833 "web_video_imdb_path" 829 834 "Wednesday" 830 835 Mercredi -
modules/_shared/lang/English.lang
51 51 "Album Tracks" 52 52 "Albums" 53 53 "Albums with songs by %s" 54 "ALLOCINETYPE" 55 Allo Ciné 54 56 "All" 55 57 "All Albums" 56 58 "All Categories" … … 239 241 "hue" 240 242 "Humidity" 241 243 "IMDB" 244 "IMDBTYPE" 245 Imdb 242 246 "Inactive" 243 247 "info: activate recording" 244 248 Force this specific showing to record. … … 683 687 "Weather" 684 688 "web_video_imdb_path" 685 689 Path to imdb.pl on this webserver 690 "web_video_imdb_type" 686 691 "Wednesday" 687 692 "welcome: backend_log" 688 693 Show the server logs. -
modules/video/imdb.php
47 47 // Escape any extra " in the title string 48 48 $title = str_replace('"', '\"', $title); 49 49 // Setup the option list 50 $options = array( 'tv=both', 51 'tv=both\;type=fuzzy' 52 ); 50 $options = array(''); 51 //$options = array( 'tv=both', 52 // 'tv=both\;type=fuzzy' 53 // ); 53 54 foreach ($options as $option) { 54 55 $cmd = "$imdb -M $option \"$title\""; 55 56 exec($cmd, $output, $retval); … … 141 142 { 142 143 $video = new Video($id); 143 144 echo $video->metadata(); 144 } 145 Pas de fin de ligne à la fin du fichier 145 } -
modules/video/set_settings.php
31 31 if (isset($_POST['host'])) 32 32 $_SESSION['settings']['host'] = $_POST['host']; 33 33 34 34 35 if ($_POST['save']) { 35 36 setting('web_video_imdb_path', $_SESSION['settings']['host'], $_POST['web_video_imdb_path']); 37 setting('web_video_imdb_type', $_SESSION['settings']['host'], $_POST['web_video_imdb_type']); 36 38 setting('VideoAggressivePC', $_SESSION['settings']['host'], $_POST['VideoAggressivePC']); 37 39 setting('VideoArtworkDir', $_SESSION['settings']['host'], $_POST['VideoArtworkDir']); 38 40 setting('VideoBrowserNoDB', $_SESSION['settings']['host'], $_POST['VideoBrowserNoDB']); -
modules/video/tmpl/default/set_settings.php
19 19 20 20 <table border="0" cellspacing="0" cellpadding="0"> 21 21 <tr> 22 <?php 23 $imdbType=setting('web_video_imdb_type', $_SESSION['settings']['host']); 24 ?> 25 26 <td><?php echo t('web_video_imdb_type'); ?>:</td> 27 <td><select name="web_video_imdb_type"> 28 <option value="IMDB" <?php if ($imdbType == "IMDB") echo 'SELECTED'; ?> ><?php echo t('IMDBTYPE'); ?></option> 29 <option value="ALLOCINE" <?php if ($imdbType == "ALLOCINE") echo 'SELECTED'; ?> ><?php echo t('ALLOCINETYPE'); ?></option> 30 </select> 31 </td> 32 </tr> 33 <tr> 22 34 <td><?php echo t('web_video_imdb_path'); ?>:</td> 23 35 <td><input type="text" name="web_video_imdb_path" size="60" value="<?php echo $imdb_path; ?>"></td> 24 36 </tr> -
modules/video/tmpl/default/video.php
21 21 22 22 // Print the page header 23 23 require 'modules/_shared/tmpl/'.tmpl.'/header.php'; 24 25 function makeImdbWebUrl($num) { 26 $imdbwebtype = setting('web_video_imdb_type', hostname); 27 if ($imdbwebtype=='IMDB') 28 { 29 return "http://www.imdb.com/Title?".$num; 30 } 31 else if ($imdbwebtype=='ALLOCINE') 32 { 33 return "http://www.allocine.fr/film/fichefilm_gen_cfilm=".$num.".html"; 34 } 35 } 24 36 ?> 25 37 26 38 <SCRIPT LANGUAGE=JAVASCRIPT TYPE="TEXT/JAVASCRIPT"> 27 39 <!--Hide script from old browsers 28 40 41 29 42 function newWindow(newContent) { 30 43 winContent = window.open(newContent, 'nextWin', 'right=0, top=20,width=350,height=440, toolbar=no,scrollbars=no, resizable=yes'); 31 44 } … … 87 100 title_index += 1; 88 101 } 89 102 if (title.length > 0) 90 content.innerHTML += '<br /><a href=" http://www.imdb.com/Title?'+num+'" style="float: right; margin-left: 1em;">(IMDB)<\/a> <a href="javascript:imdb_select(\''+id+'\',\''+num+'\')">'+title+'<\/a>';103 content.innerHTML += '<br /><a href="'.makeImdbWebUrl(num).'" style="float: right; margin-left: 1em;">(IMDB)<\/a> <a href="javascript:imdb_select(\''+id+'\',\''+num+'\')">'+title+'<\/a>'; 91 104 matches_index += 1; 92 105 } 93 106 content.innerHTML += '<br /><a href="javascript: imdb_prompt(\''+id+'\');"><?php echo t('Custom Search'); ?><\/a>'; … … 309 322 <div id="video_<?php echo $show->intid; ?>_genre" class="hidden"><?php if (count($show->genres)) foreach ($show->genres as $genre) echo ' '.$genre.' ';?></div> 310 323 <div id="video_<?php echo $show->intid; ?>_browse" class="hidden"><?php echo $show->browse; ?></div> 311 324 <div id="video_<?php echo $show->intid; ?>-title" class="title"><a href="<?php echo $show->url; ?>"><?php echo htmlentities($show->title); ?></a></div> 312 <div id="video_<?php echo $show->intid; ?>_img"> <img <?php if (show_video_covers && file_exists($show->cover _url)) echo 'src="data/video_covers/'.basename($show->coverfile).'"'; echo ' width="'.video_img_width.'" height="'.video_img_height.'"'; ?> alt="<?php echo t('Missing Cover'); ?>"></div>325 <div id="video_<?php echo $show->intid; ?>_img"> <img <?php if (show_video_covers && file_exists($show->coverfile)) echo 'src="data/video_covers/'.basename($show->coverfile).'"'; echo ' width="'.video_img_width.'" height="'.video_img_height.'"'; ?> alt="<?php echo t('Missing Cover'); ?>"></div> 313 326 <div id="video_<?php echo $show->intid; ?>-category"> <?php echo $Category_String[$show->category]; ?></div> 314 327 <div id="video_<?php echo $show->intid; ?>_playtime"> <?php echo nice_length($show->length * 60); ?></div> 315 <div id="video_<?php echo $show->intid; ?>_imdb"> <?php if ($show->inetref != '00000000') { ?><a href=" http://www.imdb.com/Title?<?php echo $show->inetref; ?>"><?php echo $show->inetref ?></a><?php } ?></div>328 <div id="video_<?php echo $show->intid; ?>_imdb"> <?php if ($show->inetref != '00000000') { ?><a href="<?php echo makeImdbWebUrl($show->inetref); ?>"><?php echo $show->inetref ?></a><?php } ?></div> 316 329 <div class="command"> 317 330 <span class="commands"><a href="javascript:newWindow('<?php echo root ?>video/edit?intid=<?php echo $show->intid ?>')" ><?php echo t('Edit') ?></a></span> 318 331 <span class="commands"><a href="javascript:imdb_lookup('<?php echo $show->intid ?>','<?php echo addslashes($show->title); ?>')">IMDB</a></span>