Remove RottenTomato quality selector, as it is not usable anymore..

This commit is contained in:
Darko
2015-05-07 13:29:56 +02:00
parent 21a18d66ec
commit 1887562afc
7 changed files with 13 additions and 13 deletions
+2
View File
@@ -0,0 +1,2 @@
DELETE FROM site WHERE setting = 'rottentomatoquality';
UPDATE `tmux` SET `value` = '118' WHERE `setting` = 'sqlpatch';
@@ -114,7 +114,7 @@ class TmuxOutput extends Tmux
$buffer = '';
$state = ($this->runVar['settings']['is_running'] == 1) ? 'Running' : 'Disabled';
//$version = $this->_tvers . 'r' . $this->_vers;
$tversion = '0.5r01267';
$tversion = '0.5r01269';
$buffer .= sprintf($this->tmpMasks[2],
"Monitor $state v$tversion @ $this->_tvers [" . $this->_vers ."]: ",
-3
View File
@@ -70,9 +70,6 @@ $page->smarty->assign('yesno_names', array( 'Yes', 'No'));
$page->smarty->assign('passwd_ids', array(1,0));
$page->smarty->assign('passwd_names', array( 'Deep (requires unrar)', 'None'));
$page->smarty->assign('rottentomatoquality_ids', array('thumbnail', 'profile', 'detailed', 'original'));
$page->smarty->assign('rottentomatoquality_names', array('Thumbnail', 'Profile', 'Detailed', 'Original'));
$page->smarty->assign('sabintegrationtype_ids', array(SABnzbd::INTEGRATION_TYPE_USER, SABnzbd::INTEGRATION_TYPE_SITEWIDE, SABnzbd::INTEGRATION_TYPE_NONE));
$page->smarty->assign('sabintegrationtype_names', array( 'User', 'Site-wide', 'None (Off)'));
+7 -5
View File
@@ -53,17 +53,19 @@ if ($data["info"] == "") {
}
/**
* Replace _tmb.jpg with user setting from site edit.
* extract just the cloudfront image url.
*
* @param string $imageURL The url to change.
* @param string $userSetting The users's setting.
*
* @return string
*/
function replace_quality($imageURL, $userSetting)
function replace_url($imageURL)
{
$types = array('thumbnail' => '_tmb.', 'profile' => '_pro.', 'detailed' => '_det.', 'original' => '_ori.');
return preg_replace("#http://resizing\.flixster\.com(/[\w=+-]+){3}\.cloudfront\.net#i", "https://content8.flixster.com", str_replace('_ori.', $types[$userSetting], $imageURL));
return preg_replace(
'/^.*?\/[\d]+x[\d]+\//',
'https://',
$imageURL
);
}
$page->content = $page->smarty->fetch('upcoming.tpl');
@@ -205,7 +205,6 @@
<td style="width:160px;"><label for="rottentomatokey">Rotten Tomatoes Key</label>:</td>
<td>
<input id="rottentomatokey" class="long" name="rottentomatokey" type="text" value="{$fsite->rottentomatokey}" />
{html_options style="width:180px;" id="rottentomatoquality" name='rottentomatoquality' values=$rottentomatoquality_ids output=$rottentomatoquality_names selected=$fsite->rottentomatoquality}
<div class="hint">The api key used for access to rotten tomatoes</div>
</td>
</tr>
@@ -23,8 +23,8 @@
<td class="mid">
<div class="movcover">
<img class="shadow"
src="{replace_quality($result->posters->{$site->rottentomatoquality}, $site->rottentomatoquality)}""
width="120" border="0" alt="{$result->title|escape:"htmlall"}"/>
<img class="shadow" src="{replace_url($result->posters->original)}" width="120"
border="0" alt="{$result->title|escape:"htmlall"}"/>
<div class="movextra">
{if $result->ratings->critics_score > 60}
+1 -1
View File
@@ -36,7 +36,7 @@ if (count($nntpkill) !== 0) {
}
// Check database patch version
if ($patch < 117) {
if ($patch < 118) {
exit($c->error("\nYour database is not up to date. Please update.\nphp ${DIR}lib/DB/patchDB.php\n"));
}